]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[VLAN]: Fix hardware rx csum errors
authorStephen Hemminger <shemminger@osdl.org>
Thu, 15 Dec 2005 00:23:16 +0000 (16:23 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Dec 2005 00:23:16 +0000 (16:23 -0800)
Receiving VLAN packets over a device (without VLAN assist) that is
doing hardware checksumming (CHECKSUM_HW), causes errors because the
VLAN code forgets to adjust the hardware checksum.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan_dev.c

index b7486488967074b9b40c4b5916533f0b969f265c..f2a8750bbf1d7555633c1b2562883dcd02b800bc 100644 (file)
@@ -165,6 +165,9 @@ int vlan_skb_recv(struct sk_buff *skb, struct net_device *dev,
 
        skb_pull(skb, VLAN_HLEN); /* take off the VLAN header (4 bytes currently) */
 
+       /* Need to correct hardware checksum */
+       skb_postpull_rcsum(skb, vhdr, VLAN_HLEN);
+
        /* Ok, lets check to make sure the device (dev) we
         * came in on is what this VLAN is attached to.
         */