diff options
author | hayeswang <hayeswang@realtek.com> | 2014-07-11 04:48:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-11 17:51:21 -0400 |
commit | a91d45f1a343188793d6f2bdf1a72c64015a8255 (patch) | |
tree | de442588027c3bc6129745f22090a0237370f3d2 | |
parent | 4cad9f3b61c7268fa89ab8096e23202300399b5d (diff) |
r8152: fix r8152_csum_workaround function
The transport offset of the IPv4 packet should be fixed and wouldn't
be out of the hw limitation, so the r8152_csum_workaround() should
be used for IPv6 packets.
Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/usb/r8152.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index a795ecf8d5b6..7bad2d316637 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c | |||
@@ -1359,7 +1359,7 @@ static void r8152_csum_workaround(struct r8152 *tp, struct sk_buff *skb, | |||
1359 | struct sk_buff_head seg_list; | 1359 | struct sk_buff_head seg_list; |
1360 | struct sk_buff *segs, *nskb; | 1360 | struct sk_buff *segs, *nskb; |
1361 | 1361 | ||
1362 | features &= ~(NETIF_F_IP_CSUM | NETIF_F_SG | NETIF_F_TSO); | 1362 | features &= ~(NETIF_F_SG | NETIF_F_IPV6_CSUM | NETIF_F_TSO6); |
1363 | segs = skb_gso_segment(skb, features); | 1363 | segs = skb_gso_segment(skb, features); |
1364 | if (IS_ERR(segs) || !segs) | 1364 | if (IS_ERR(segs) || !segs) |
1365 | goto drop; | 1365 | goto drop; |