summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorSunil Kumar Kori <skori@marvell.com>2019-10-03 12:02:29 +0530
committerFerruh Yigit <ferruh.yigit@intel.com>2019-10-08 12:14:31 +0200
commitdba99cd6f8899a5679a1f718d45ac4cc980d169c (patch)
treeb1d50cbac158a614ab819b52be0cc097d0df2829 /drivers/net
parent7dde68cf0e1329fe4b9cee20e820cf41aefc54e6 (diff)
downloaddpdk-dba99cd6f8899a5679a1f718d45ac4cc980d169c.zip
dpdk-dba99cd6f8899a5679a1f718d45ac4cc980d169c.tar.gz
dpdk-dba99cd6f8899a5679a1f718d45ac4cc980d169c.tar.xz
net/octeontx2: fix checksum flag translation
NPC errors were incorrectly translated to ol_flag as error code enum was not in sync with NPC profile. Fixes: 371d3212cbed ("common/octeontx2: add build infrastructure and HW definition") Cc: stable@dpdk.org Signed-off-by: Sunil Kumar Kori <skori@marvell.com> Acked-by: Jerin Jacob <jerinj@marvell.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/octeontx2/otx2_lookup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/octeontx2/otx2_lookup.c b/drivers/net/octeontx2/otx2_lookup.c
index 9bb93ea..f832558 100644
--- a/drivers/net/octeontx2/otx2_lookup.c
+++ b/drivers/net/octeontx2/otx2_lookup.c
@@ -277,13 +277,13 @@ nix_create_rx_ol_flags_array(void *mem)
val |= PKT_RX_IP_CKSUM_GOOD;
break;
case NPC_ERRLEV_NIX:
+ val |= PKT_RX_IP_CKSUM_GOOD;
if (errcode == NIX_RX_PERRCODE_OL4_CHK) {
val |= PKT_RX_OUTER_L4_CKSUM_BAD;
val |= PKT_RX_L4_CKSUM_BAD;
} else if (errcode == NIX_RX_PERRCODE_IL4_CHK) {
val |= PKT_RX_L4_CKSUM_BAD;
} else {
- val |= PKT_RX_IP_CKSUM_GOOD;
val |= PKT_RX_L4_CKSUM_GOOD;
}
break;