/[linux-patches]/genpatches-2.6/trunk/2.6.14/1065_5_vlan-hardware-checksum.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.14/1065_5_vlan-hardware-checksum.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 235 - (show annotations) (download) (as text)
Thu Dec 29 16:17:24 2005 UTC (14 years, 11 months ago) by dsd
File MIME type: text/x-diff
File size: 1105 byte(s)
2.6.14.5 thanks to kerframil
1 From: Stephen Hemminger <shemminger@osdl.org>
2 Date: Thu, 15 Dec 2005 00:29:02 +0000 (-0800)
3 Subject: [PATCH] Fix hardware rx csum errors
4 X-Git-Url: http://kernel.org/git/?p=linux/kernel/git/gregkh/linux-2.6.14.y.git;a=commitdiff;h=ed67d6e838c2203a64d815596e400822d5283875
5
6 [PATCH] Fix hardware rx csum errors
7
8 Receiving VLAN packets over a device (without VLAN assist) that is
9 doing hardware checksumming (CHECKSUM_HW), causes errors because the
10 VLAN code forgets to adjust the hardware checksum.
11
12 Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
13 Signed-off-by: David S. Miller <davem@davemloft.net>
14 Signed-off-by: Chris Wright <chrisw@redhat.com>
15 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
16 ---
17
18 --- a/net/8021q/vlan_dev.c
19 +++ b/net/8021q/vlan_dev.c
20 @@ -165,6 +165,9 @@ int vlan_skb_recv(struct sk_buff *skb, s
21
22 skb_pull(skb, VLAN_HLEN); /* take off the VLAN header (4 bytes currently) */
23
24 + /* Need to correct hardware checksum */
25 + skb_postpull_rcsum(skb, vhdr, VLAN_HLEN);
26 +
27 /* Ok, lets check to make sure the device (dev) we
28 * came in on is what this VLAN is attached to.
29 */

  ViewVC Help
Powered by ViewVC 1.1.20