Commit 921ddc19 authored by Anton Blanchard's avatar Anton Blanchard Committed by David S. Miller

ehea: Dont check NETIF_F_TSO in TX path

It seems like the ehea xmit routine and an ethtool change of TSO
mode could race, resulting in corrupt packets. Checking gso_size
is enough and we can use the helper function.
Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
Signed-off-by: default avatarThadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 723f28e4
...@@ -1787,7 +1787,7 @@ static inline void write_swqe2_data(struct sk_buff *skb, struct net_device *dev, ...@@ -1787,7 +1787,7 @@ static inline void write_swqe2_data(struct sk_buff *skb, struct net_device *dev,
swqe->descriptors = 0; swqe->descriptors = 0;
sg1entry_contains_frag_data = 0; sg1entry_contains_frag_data = 0;
if ((dev->features & NETIF_F_TSO) && skb_shinfo(skb)->gso_size) if (skb_is_gso(skb))
write_swqe2_TSO(skb, swqe, lkey); write_swqe2_TSO(skb, swqe, lkey);
else else
write_swqe2_nonTSO(skb, swqe, lkey); write_swqe2_nonTSO(skb, swqe, lkey);
......
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