07 Jan, 2011

12 commits

  • Signed-off-by: Ferenc Wagner
    Signed-off-by: David S. Miller

    Ferenc Wagner
     
  • The new firmware interface requires each Slow Path Queue (SPQ) message's
    type field to include the function number. The existing code does not
    do this consistently. We fix this by OR'ing in the function number
    into the type field centrally in cnic_submit_kwqe_16().

    Signed-off-by: Michael Chan
    Signed-off-by: David S. Miller

    Michael Chan
     
  • In 1ae4de0cdf855305765592647025bde55e85e451, the secctx was exported
    via the /proc/net/netfilter/nf_conntrack and ctnetlink interfaces
    instead of the secmark.

    That patch introduced the use of security_secid_to_secctx() which may
    return a non-zero value on error.

    In one of my setups, I have NF_CONNTRACK_SECMARK enabled but no
    security modules. Thus, security_secid_to_secctx() returns a negative
    value that results in the breakage of the /proc and `conntrack -L'
    outputs. To fix this, we skip the inclusion of secctx if the
    aforementioned function fails.

    This patch also fixes the dynamic netlink message size calculation
    if security_secid_to_secctx() returns an error, since its logic is
    also wrong.

    This problem exists in Linux kernel >= 2.6.37.

    Signed-off-by: Pablo Neira Ayuso
    Signed-off-by: David S. Miller

    Pablo Neira Ayuso
     
  • Since nf_ct_expect_dst_hash() may be called without nf_conntrack_lock
    locked, nf_ct_expect_hash_rnd should be initialized in the atomic way.

    In this patch, we use nf_conntrack_hash_rnd instead of
    nf_ct_expect_hash_rnd.

    Signed-off-by: Changli Gao
    Acked-by: Eric Dumazet
    Signed-off-by: David S. Miller

    Changli Gao
     
  • RFC3168 (The Addition of Explicit Congestion Notification to IP)
    states :

    5.3. Fragmentation

    ECN-capable packets MAY have the DF (Don't Fragment) bit set.
    Reassembly of a fragmented packet MUST NOT lose indications of
    congestion. In other words, if any fragment of an IP packet to be
    reassembled has the CE codepoint set, then one of two actions MUST be
    taken:

    * Set the CE codepoint on the reassembled packet. However, this
    MUST NOT occur if any of the other fragments contributing to
    this reassembly carries the Not-ECT codepoint.

    * The packet is dropped, instead of being reassembled, for any
    other reason.

    This patch implements this requirement for IPv4, choosing the first
    action :

    If one fragment had NO-ECT codepoint
    reassembled frame has NO-ECT
    ElIf one fragment had CE codepoint
    reassembled frame has CE

    Signed-off-by: Eric Dumazet
    Signed-off-by: David S. Miller

    Eric Dumazet
     
  • Return -ENOMEM instead of 0 for the case of mdiobus_alloc and kmalloc failure.

    Signed-off-by: Axel Lin
    Acked-by: Florian Fainelli
    Signed-off-by: David S. Miller

    Axel Lin
     
  • The original code has a use after free bug because it's not using the
    _safe() version of the list_for_each_entry() macro.

    Signed-off-by: Dan Carpenter
    Signed-off-by: David S. Miller

    Dan Carpenter
     
  • There is a "goto nla_put_failure" hidden inside the NLA_PUT() macro, but
    we're holding the dcb_lock so we need to unlock first.

    Signed-off-by: Dan Carpenter
    Signed-off-by: David S. Miller

    Dan Carpenter
     
  • Return PTR_ERR(port->phydev) instead of 1 if phy_connect failed.

    Signed-off-by: Axel Lin
    Acked-by: Krzysztof Halasa
    Signed-off-by: David S. Miller

    Axel Lin
     
  • Ethertype used by HPNA control protocols (LARQ, rate, link, etc) and by
    Broadcom wlan drivers for local signalling.

    Signed-off-by: Henry Ptasinski
    Signed-off-by: David S. Miller

    Henry Ptasinski
     
  • David S. Miller
     
  • Leonardo Chiquitto found poll() could block forever on tcp sockets and
    Urgent data was received, if the event flag only contains POLLPRI.

    He did a bisection and found commit 4938d7e0233 (poll: avoid extra
    wakeups in select/poll) was the source of the problem.

    Problem is TCP sockets use standard sock_def_readable() function for
    their sk_data_ready() handler, and sock_def_readable() doesnt signal
    POLLPRI.

    Only TCP is affected by the problem. Adding POLLPRI to the list of flags
    might trigger unnecessary schedules, but URGENT handling is such a
    seldom used feature this seems a good compromise.

    Thanks a lot to Leonardo for providing the bisection result and a test
    program as well.

    Reference : http://www.spinics.net/lists/netdev/msg151793.html

    Reported-and-bisected-by: Leonardo Chiquitto
    Signed-off-by: Eric Dumazet
    Tested-by: Eric Dumazet
    Signed-off-by: David S. Miller

    Eric Dumazet
     

06 Jan, 2011

10 commits


05 Jan, 2011

18 commits