1. 18 Feb, 2008 1 commit
  2. 04 Feb, 2008 1 commit
  3. 31 Jan, 2008 1 commit
  4. 28 Jan, 2008 3 commits
  5. 26 Nov, 2007 1 commit
    • Herbert Xu's avatar
      [SKBUFF]: Free old skb properly in skb_morph · 2d4baff8
      Herbert Xu authored
      
      
      The skb_morph function only freed the data part of the dst skb, but leaked
      the auxiliary data such as the netfilter fields.  This patch fixes this by
      moving the relevant parts from __kfree_skb to skb_release_all and calling
      it in skb_morph.
      
      It also makes kfree_skbmem static since it's no longer called anywhere else
      and it now no longer does skb_release_data.
      
      Thanks to Yasuyuki KOZAKAI for finding this problem and posting a patch for
      it.
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      2d4baff8
  6. 10 Nov, 2007 1 commit
    • Chuck Lever's avatar
      [NET]: Fix skb_truesize_check() assertion · 78608ba0
      Chuck Lever authored
      
      
      The intent of the assertion in skb_truesize_check() is to check
      for skb->truesize being decremented too much by other code,
      resulting in a wraparound below zero.
      
      The type of the right side of the comparison causes the compiler to
      promote the left side to an unsigned type, despite the presence of an
      explicit type cast.  This defeats the check for negativity.
      
      Ensure both sides of the comparison are a signed type to prevent the
      implicit type conversion.
      Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      78608ba0
  7. 23 Oct, 2007 1 commit
  8. 22 Oct, 2007 3 commits
  9. 15 Oct, 2007 2 commits
  10. 16 Sep, 2007 1 commit
  11. 31 Jul, 2007 1 commit
  12. 15 Jul, 2007 1 commit
  13. 10 Jul, 2007 4 commits
    • Herbert Xu's avatar
      [NET]: Update comments for skb checksums · c6c6e3e0
      Herbert Xu authored
      
      
      Rusty (whose comments we should all study and emulate :) pointed
      out that our comments for skb checksums are no longer up-to-date.
      So here is a patch to
      
      1) add the case of partial checksums on input;
      2) update partial checksum case to mention csum_start/csum_offset;
      3) mention the new IPv6 feature bit.
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c6c6e3e0
    • Jozsef Kadlecsik's avatar
      [NETFILTER]: x_tables: add TRACE target · ba9dda3a
      Jozsef Kadlecsik authored
      
      
      The TRACE target can be used to follow IP and IPv6 packets through
      the ruleset.
      Signed-off-by: default avatarJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
      Signed-off-by: default avatarPatrick NcHardy <kaber@trash.net>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      ba9dda3a
    • Peter P Waskiewicz Jr's avatar
      [CORE] Stack changes to add multiqueue hardware support API · f25f4e44
      Peter P Waskiewicz Jr authored
      
      
      Add the multiqueue hardware device support API to the core network
      stack.  Allow drivers to allocate multiple queues and manage them at
      the netdev level if they choose to do so.
      
      Added a new field to sk_buff, namely queue_mapping, for drivers to
      know which tx_ring to select based on OS classification of the flow.
      Signed-off-by: default avatarPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
      Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      f25f4e44
    • Patrick McHardy's avatar
      [SKBUFF]: Keep track of writable header len of headerless clones · 334a8132
      Patrick McHardy authored
      
      
      Currently NAT (and others) that want to modify cloned skbs copy them,
      even if in the vast majority of cases its not necessary because the
      skb is a clone made by TCP and the portion NAT wants to modify is
      actually writable because TCP release the header reference before
      cloning.
      
      The problem is that there is no clean way for NAT to find out how
      long the writable header area is, so this patch introduces skb->hdr_len
      to hold this length. When a headerless skb is cloned skb->hdr_len
      is set to the current headroom, for regular clones it is copied from
      the original. A new function skb_clone_writable(skb, len) returns
      whether the skb is writable up to len bytes from skb->data. To avoid
      enlarging the skb the mac_len field is reduced to 16 bit and the
      new hdr_len field is put in the remaining 16 bit.
      
      I've done a few rough benchmarks of NAT (not with this exact patch,
      but a very similar one). As expected it saves huge amounts of system
      time in case of sendfile, bringing it down to basically the same
      amount as without NAT, with sendmsg it only helps on loopback,
      probably because of the large MTU.
      
      Transmit a 1GB file using sendfile/sendmsg over eth0/lo with and
      without NAT:
      
      - sendfile eth0, no NAT:	sys     0m0.388s
      - sendfile eth0, NAT:		sys     0m1.835s
      - sendfile eth0: NAT + path:	sys     0m0.370s	(~ -80%)
      
      - sendfile lo, no NAT:		sys     0m0.258s
      - sendfile lo, NAT:		sys     0m2.609s
      - sendfile lo, NAT + patch:	sys     0m0.260s	(~ -90%)
      
      - sendmsg eth0, no NAT:		sys     0m2.508s
      - sendmsg eth0, NAT:		sys     0m2.539s
      - sendmsg eth0, NAT + patch:	sys     0m2.445s	(no change)
      
      - sendmsg lo, no NAT:		sys	0m2.151s
      - sendmsg lo, NAT:		sys     0m3.557s
      - sendmsg lo, NAT + patch:	sys     0m2.159s	(~ -40%)
      
      I expect other users can see a similar performance improvement,
      packet mangling iptables targets, ipip and ip_gre come to mind ..
      Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      334a8132
  14. 15 Jun, 2007 1 commit
  15. 03 May, 2007 1 commit
  16. 30 Apr, 2007 1 commit
  17. 25 Apr, 2007 16 commits