netxen: fix vlan tso case
authorDhananjay Phadke <dhananjay@netxen.com>
Wed, 5 Aug 2009 07:34:07 +0000 (07:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Aug 2009 19:40:14 +0000 (12:40 -0700)
Fix the calculation of remaining header length in TSO
over vlan device case. This was inadvertently missed
out in patch 028afe719855a157e32450c ("netxen: add vlan
tx acceleration support").

Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/netxen/netxen_nic_main.c

index 40549a0e9ff0c79713b891220945381e280e7536..c91e02245815753fccf74c0013e35db04f19872a 100644 (file)
@@ -1450,7 +1450,7 @@ netxen_tso_check(struct net_device *netdev,
                skb_copy_from_linear_data_offset(skb, 12,
                                (char *)vh + 16, copy_len - 16);
 
-               copied = copy_len;
+               copied = copy_len - VLAN_HLEN;
                offset = 0;
 
                producer = get_next_index(producer, tx_ring->num_desc);