Home Home > GIT Browse > SLE15-SP1
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2019-05-10 14:13:58 +0200
committerJiri Slaby <jslaby@suse.cz>2019-05-16 08:27:59 +0200
commitbb26a26dd8f76917cae6b4705ef62c3f0d255b05 (patch)
tree65c42e9b3d22fedeb55c135f0a4a2134e2a36b1e
parent4b88152211b03ef2c7be6593e6327874f2cc39d3 (diff)
net: aquantia: fix rx checksum offload for UDP/TCP over IPv6
(networking-stable-19_03_28). suse-commit: 3543e330c1abf499d6bb90761f28d0ef47766bd6
-rw-r--r--drivers/net/ethernet/aquantia/atlantic/aq_ring.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/ethernet/aquantia/atlantic/aq_ring.c b/drivers/net/ethernet/aquantia/atlantic/aq_ring.c
index d6f924cdcda4..e0c6299fff92 100644
--- a/drivers/net/ethernet/aquantia/atlantic/aq_ring.c
+++ b/drivers/net/ethernet/aquantia/atlantic/aq_ring.c
@@ -231,11 +231,12 @@ int aq_ring_rx_clean(struct aq_ring_s *self, int *work_done, int budget)
} else {
if (buff->is_ip_cso) {
__skb_incr_checksum_unnecessary(skb);
- if (buff->is_udp_cso || buff->is_tcp_cso)
- __skb_incr_checksum_unnecessary(skb);
} else {
skb->ip_summed = CHECKSUM_NONE;
}
+
+ if (buff->is_udp_cso || buff->is_tcp_cso)
+ __skb_incr_checksum_unnecessary(skb);
}
skb_set_hash(skb, buff->rss_hash,