From: Shreyansh Jain Date: Tue, 19 Mar 2019 13:10:55 +0000 (+0000) Subject: net/dpaa2: accept packets with checksum error X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=34356a5da9206416e919bc4bdc7cd6d875996369;p=dpdk.git net/dpaa2: accept packets with checksum error Until now, DPAA2 driver was configured to drop any packet which was marked as malformed by hardware - which included those with wrong checksum. With this patch, that configuration has been removed - hereafter, all packets arriving on a DPMAC link would be forwarded to a DPNI and further processing would be done as configured for a standard packet path. Signed-off-by: Shreyansh Jain --- diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index a8f0e3002e..c92edecf3d 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -879,6 +879,7 @@ dpaa2_dev_start(struct rte_eth_dev *dev) /*checksum errors, send them to normal path and set it in annotation */ err_cfg.errors = DPNI_ERROR_L3CE | DPNI_ERROR_L4CE; + err_cfg.errors |= DPNI_ERROR_PHE; err_cfg.error_action = DPNI_ERROR_ACTION_CONTINUE; err_cfg.set_frame_annotation = true;