19 Oct, 2011

1 commit

  • To ease skb->truesize sanitization, its better to be able to localize
    all references to skb frags size.

    Define accessors : skb_frag_size() to fetch frag size, and
    skb_frag_size_{set|add|sub}() to manipulate it.

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

    Eric Dumazet
     

25 Aug, 2011

1 commit


22 Jul, 2011

3 commits


23 Apr, 2011

1 commit


24 Nov, 2009

1 commit

  • On Sun, 2009-11-22 at 16:31 -0800, David Miller wrote:
    > It should be of the form:
    > if (x &&
    > y)
    >
    > or:
    > if (x && y)
    >
    > Fix patches, rather than complaints, for existing cases where things
    > do not follow this pattern are certainly welcome.

    Also collapsed some multiple tabs to single space.

    Signed-off-by: Joe Perches
    Signed-off-by: David S. Miller

    Joe Perches
     

20 Nov, 2008

1 commit


28 Jun, 2008

1 commit

  • When an SKB cannot be chained to a session, the current code attempts
    to "restore" its ip_summed field from lro_mgr->ip_summed. However,
    lro_mgr->ip_summed does not hold the original value; in fact, we'd
    better not touch skb->ip_summed since it is not modified by the code
    in the path leading to a failure to chain it. Also use a cleaer
    comment to the describe the ip_summed field of struct net_lro_mgr.

    Issue raised by Or Gerlitz

    Signed-off-by: Eli Cohen
    Signed-off-by: David S. Miller

    Eli Cohen
     

09 Jan, 2008

1 commit

  • lro_mgr->features contains a bitmask of LRO_F_* values which are
    defined as power of two, not as bit indexes.
    They must be checked with x&LRO_F_FOO, not with test_bit(LRO_F_FOO,&x).

    Signed-off-by: Brice Goglin
    Acked-by: Andrew Gallatin
    Signed-off-by: David S. Miller

    Brice Goglin
     

05 Dec, 2007

1 commit

  • Add a field to the lro_mgr struct so that drivers can specify how much
    padding is required to align layer 3 headers when a packet is copied
    into a freshly allocated skb by inet_lro.c:lro_gen_skb(). Without
    padding, skbs generated by LRO will cause alignment warnings on
    architectures which require strict alignment (seen on sparc64).

    Myri10GE is updated to use this field.

    Signed-off-by: Andrew Gallatin
    Signed-off-by: David S. Miller

    Andrew Gallatin
     

15 Oct, 2007

2 commits


11 Oct, 2007

2 commits

  • Fix a bunch of sparse warnings. Mostly about 0 used as
    NULL pointer, and shadowed variable declarations.
    One notable case was that hash size should have been unsigned.

    Signed-off-by: Stephen Hemminger
    Signed-off-by: David S. Miller

    Stephen Hemminger
     
  • This patch provides generic Large Receive Offload (LRO) functionality
    for IPv4/TCP traffic.

    LRO combines received tcp packets to a single larger tcp packet and
    passes them then to the network stack in order to increase performance
    (throughput). The interface supports two modes: Drivers can either
    pass SKBs or fragment lists to the LRO engine.

    Signed-off-by: Jan-Bernd Themann
    Signed-off-by: David S. Miller

    Jan-Bernd Themann