summaryrefslogtreecommitdiff
path: root/drivers/net/bnxt/bnxt_rxr.c
diff options
context:
space:
mode:
authorOlivier Matz <olivier.matz@6wind.com>2018-02-06 14:39:31 +0100
committerFerruh Yigit <ferruh.yigit@intel.com>2018-02-08 13:31:41 +0100
commit0fc49cbb2cab782bf44e1a29e7c8e1c22af576c8 (patch)
treef0673acf08ff94f29bbe5b157d2aaa1029b58c1e /drivers/net/bnxt/bnxt_rxr.c
parentcb7e68da630abe7bb7b69885cc2a1a8e6d705943 (diff)
downloaddpdk-next-eventdev-0fc49cbb2cab782bf44e1a29e7c8e1c22af576c8.zip
dpdk-next-eventdev-0fc49cbb2cab782bf44e1a29e7c8e1c22af576c8.tar.gz
dpdk-next-eventdev-0fc49cbb2cab782bf44e1a29e7c8e1c22af576c8.tar.xz
net/bnxt: fix Rx checksum flags
Fix the Rx offload flags when the IP or L4 checksum is seen as incorrect by the hardware. In this case, the proper value is PKT_RX_IP_CKSUM_BAD. PKT_RX_IP_CKSUM_NONE means that the checksum may be incorrect in the packet headers, but the integrity of the IP header is verified. This is mostly useful for virtual drivers. Fixes: 7ec39d8c524b ("net/bnxt: update status of Rx IP/L4 CKSUM") Cc: stable@dpdk.org Signed-off-by: Olivier Matz <olivier.matz@6wind.com> Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Diffstat (limited to 'drivers/net/bnxt/bnxt_rxr.c')
-rw-r--r--drivers/net/bnxt/bnxt_rxr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/bnxt/bnxt_rxr.c b/drivers/net/bnxt/bnxt_rxr.c
index 6a5d8c1..b384b6e 100644
--- a/drivers/net/bnxt/bnxt_rxr.c
+++ b/drivers/net/bnxt/bnxt_rxr.c
@@ -475,12 +475,12 @@ static int bnxt_rx_pkt(struct rte_mbuf **rx_pkt,
if (likely(RX_CMP_IP_CS_OK(rxcmp1)))
mbuf->ol_flags |= PKT_RX_IP_CKSUM_GOOD;
else
- mbuf->ol_flags |= PKT_RX_IP_CKSUM_NONE;
+ mbuf->ol_flags |= PKT_RX_IP_CKSUM_BAD;
if (likely(RX_CMP_L4_CS_OK(rxcmp1)))
mbuf->ol_flags |= PKT_RX_L4_CKSUM_GOOD;
else
- mbuf->ol_flags |= PKT_RX_L4_CKSUM_NONE;
+ mbuf->ol_flags |= PKT_RX_L4_CKSUM_BAD;
mbuf->packet_type = bnxt_parse_pkt_type(rxcmp, rxcmp1);