From: Xiao Wang Date: Tue, 6 Sep 2016 01:27:30 +0000 (+0800) Subject: net/e1000: implement new Rx checksum flag X-Git-Tag: spdx-start~5525 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4e2e0e33b1ef5f60a915c16e0756d5b5afb011fd;p=dpdk.git net/e1000: implement new Rx checksum flag Add CKSUM_GOOD flag to distinguish a good checksum from an unknown one. Signed-off-by: Xiao Wang Acked-by: Jing Chen --- diff --git a/drivers/net/e1000/igb_rxtx.c b/drivers/net/e1000/igb_rxtx.c index e8f9933c74..dbd37acc31 100644 --- a/drivers/net/e1000/igb_rxtx.c +++ b/drivers/net/e1000/igb_rxtx.c @@ -747,7 +747,9 @@ rx_desc_error_to_pkt_flags(uint32_t rx_status) */ static uint64_t error_to_pkt_flags_map[4] = { - 0, PKT_RX_L4_CKSUM_BAD, PKT_RX_IP_CKSUM_BAD, + PKT_RX_IP_CKSUM_GOOD | PKT_RX_L4_CKSUM_GOOD, + PKT_RX_IP_CKSUM_GOOD | PKT_RX_L4_CKSUM_BAD, + PKT_RX_IP_CKSUM_BAD | PKT_RX_L4_CKSUM_GOOD, PKT_RX_IP_CKSUM_BAD | PKT_RX_L4_CKSUM_BAD }; return error_to_pkt_flags_map[(rx_status >>