[dpdk-dev] [PATCH 1/3 v2] ethdev: add rx offload to drop error packets

nipun.gupta at nxp.com nipun.gupta at nxp.com
Mon Oct 5 09:15:04 CEST 2020


From: Nipun Gupta <nipun.gupta at nxp.com>

This change adds a RX offload capability, which once enabled,
hardware will drop the packets in case there of any error in
the packet such as L3 checksum error or L4 checksum.

Signed-off-by: Nipun Gupta <nipun.gupta at nxp.com>
Signed-off-by: Rohit Raj <rohit.raj at nxp.com>
---
These patches are based over series:
https://patchwork.dpdk.org/patch/78630/

Changes in v2:
 - Add support in DPAA1 driver (patch 2/3)
 - Add support and config parameter in testpmd (patch 3/3)

 lib/librte_ethdev/rte_ethdev.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h
index 645a18664..314d06c74 100644
--- a/lib/librte_ethdev/rte_ethdev.h
+++ b/lib/librte_ethdev/rte_ethdev.h
@@ -1260,6 +1260,7 @@ struct rte_eth_conf {
 #define DEV_RX_OFFLOAD_SCTP_CKSUM	0x00020000
 #define DEV_RX_OFFLOAD_OUTER_UDP_CKSUM  0x00040000
 #define DEV_RX_OFFLOAD_RSS_HASH		0x00080000
+#define DEV_RX_OFFLOAD_ERR_PKT_DROP	0x00100000
 
 #define DEV_RX_OFFLOAD_CHECKSUM (DEV_RX_OFFLOAD_IPV4_CKSUM | \
 				 DEV_RX_OFFLOAD_UDP_CKSUM | \
-- 
2.17.1



More information about the dev mailing list