[kernel] r11979 - in dists/sid/linux-2.6/debian: . patches/features/all patches/series

Martin Michlmayr tbm at alioth.debian.org
Thu Aug 7 13:52:51 UTC 2008


Author: tbm
Date: Thu Aug  7 13:52:29 2008
New Revision: 11979

Log:
net: use software GSO for SG+CSUM capable netdevices


Added:
   dists/sid/linux-2.6/debian/patches/features/all/net-use-gso.patch
Modified:
   dists/sid/linux-2.6/debian/changelog
   dists/sid/linux-2.6/debian/patches/series/2

Modified: dists/sid/linux-2.6/debian/changelog
==============================================================================
--- dists/sid/linux-2.6/debian/changelog	(original)
+++ dists/sid/linux-2.6/debian/changelog	Thu Aug  7 13:52:29 2008
@@ -100,6 +100,7 @@
   [ Martin Michlmayr ]
   * METH: fix MAC address setup
   * Export the reset button of the QNAP TS-409.
+  * net: use software GSO for SG+CSUM capable netdevices (Lennert Buytenhek)
 
   [ dann frazier ]
   * device_create interface changed between 2.6.26 and 2.6.27; adjust hpilo

Added: dists/sid/linux-2.6/debian/patches/features/all/net-use-gso.patch
==============================================================================
--- (empty file)
+++ dists/sid/linux-2.6/debian/patches/features/all/net-use-gso.patch	Thu Aug  7 13:52:29 2008
@@ -0,0 +1,38 @@
+From: Lennert Buytenhek <buytenh at marvell.com>
+Date: Sun, 3 Aug 2008 08:23:10 +0000 (-0700)
+Subject: net: use software GSO for SG+CSUM capable netdevices
+X-Git-Url: http://git.marvell.com/?p=orion.git;a=commitdiff_plain;h=06206b07209eec23005b6596ddfd0ddae9eea673
+
+net: use software GSO for SG+CSUM capable netdevices
+
+If a netdevice does not support hardware GSO, allowing the stack to
+use GSO anyway and then splitting the GSO skb into MSS-sized pieces
+as it is handed to the netdevice for transmitting is likely still
+a win as far as throughput and/or CPU usage are concerned, since it
+reduces the number of trips through the output path.
+
+This patch enables the use of GSO on any netdevice that supports SG.
+If a GSO skb is then sent to a netdevice that supports SG but does not
+support hardware GSO, net/core/dev.c:dev_hard_start_xmit() will take
+care of doing the necessary GSO segmentation in software.
+
+Signed-off-by: Lennert Buytenhek <buytenh at marvell.com>
+Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au>
+Signed-off-by: David S. Miller <davem at davemloft.net>
+---
+
+diff --git a/net/core/dev.c b/net/core/dev.c
+index fca23a3..8548125 100644
+--- a/net/core/dev.c
++++ b/net/core/dev.c
+@@ -3806,6 +3806,10 @@ int register_netdevice(struct net_device *dev)
+ 		}
+ 	}
+ 
++	/* Enable software GSO if SG is supported. */
++	if (dev->features & NETIF_F_SG)
++		dev->features |= NETIF_F_GSO;
++
+ 	netdev_initialize_kobject(dev);
+ 	ret = netdev_register_kobject(dev);
+ 	if (ret)

Modified: dists/sid/linux-2.6/debian/patches/series/2
==============================================================================
--- dists/sid/linux-2.6/debian/patches/series/2	(original)
+++ dists/sid/linux-2.6/debian/patches/series/2	Thu Aug  7 13:52:29 2008
@@ -5,3 +5,4 @@
 + features/x86/drivers-hp_ilo-fixup.patch
 + bugfix/all/stable/2.6.26.2.patch
 + bugfix/all/stable/2.6.26.2-abi-1.patch
++ features/all/net-use-gso.patch



More information about the Kernel-svn-changes mailing list