From: Brick Yang <[email protected]>

Also receive packets with HW parser length errors.
Thus this option allows HW to not drop packets for any kind of parser
errors.

Fixes: 4690a6114ff6 ("net/dpaa2: enable error queues optionally")
Cc: [email protected]

Signed-off-by: Brick Yang <[email protected]>
---
 drivers/net/dpaa2/dpaa2_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c
index 41678ce09b..0fd577c448 100644
--- a/drivers/net/dpaa2/dpaa2_ethdev.c
+++ b/drivers/net/dpaa2/dpaa2_ethdev.c
@@ -1240,7 +1240,7 @@ dpaa2_dev_start(struct rte_eth_dev *dev)
                err_cfg.errors = DPNI_ERROR_L3CE | DPNI_ERROR_L4CE;
 
                /* if packet with parse error are not to be dropped */
-               err_cfg.errors |= DPNI_ERROR_PHE;
+               err_cfg.errors |= DPNI_ERROR_PHE | DPNI_ERROR_BLE;
 
                err_cfg.error_action = DPNI_ERROR_ACTION_CONTINUE;
        }
-- 
2.43.0

Reply via email to