Commit 545eb370 authored by Dhananjay Phadke's avatar Dhananjay Phadke Committed by David S. Miller

netxen: fix vlan tso case

Fix the calculation of remaining header length in TSO
over vlan device case. This was inadvertently missed
out in patch 028afe71 ("netxen: add vlan
tx acceleration support").
Signed-off-by: default avatarDhananjay Phadke <dhananjay@netxen.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 839b04c4
...@@ -1450,7 +1450,7 @@ netxen_tso_check(struct net_device *netdev, ...@@ -1450,7 +1450,7 @@ netxen_tso_check(struct net_device *netdev,
skb_copy_from_linear_data_offset(skb, 12, skb_copy_from_linear_data_offset(skb, 12,
(char *)vh + 16, copy_len - 16); (char *)vh + 16, copy_len - 16);
copied = copy_len; copied = copy_len - VLAN_HLEN;
offset = 0; offset = 0;
producer = get_next_index(producer, tx_ring->num_desc); producer = get_next_index(producer, tx_ring->num_desc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment