git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e3ef77
)
net/netvsc: report checksum failures
author
Stephen Hemminger
<sthemmin@microsoft.com>
Mon, 6 Aug 2018 18:22:44 +0000
(11:22 -0700)
committer
Thomas Monjalon
<thomas@monjalon.net>
Tue, 7 Aug 2018 12:42:16 +0000
(14:42 +0200)
The host will notify netvsc device about failed UDP and TCP
checksum. Propagate that information into the mbuf.
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
drivers/net/netvsc/hn_rxtx.c
patch
|
blob
|
history
diff --git
a/drivers/net/netvsc/hn_rxtx.c
b/drivers/net/netvsc/hn_rxtx.c
index
25c97ea
..
02ef27e
100644
(file)
--- a/
drivers/net/netvsc/hn_rxtx.c
+++ b/
drivers/net/netvsc/hn_rxtx.c
@@
-513,6
+513,9
@@
static void hn_rxpkt(struct hn_rx_queue *rxq, struct hn_rx_bufinfo *rxb,
if (info->csum_info & (NDIS_RXCSUM_INFO_UDPCS_OK
| NDIS_RXCSUM_INFO_TCPCS_OK))
m->ol_flags |= PKT_RX_L4_CKSUM_GOOD;
+ else if (info->csum_info & (NDIS_RXCSUM_INFO_TCPCS_FAILED
+ | NDIS_RXCSUM_INFO_UDPCS_FAILED))
+ m->ol_flags |= PKT_RX_L4_CKSUM_BAD;
}
if (info->hash_info != HN_NDIS_HASH_INFO_INVALID) {