DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [RFC 2/5] net/igc: decouple dependency from superseded structures
@ 2020-09-29  7:48 Chenxu Di
  2020-09-29  7:48 ` [dpdk-dev] [RFC 3/5] net/e1000: " Chenxu Di
  2020-09-29  7:48 ` [dpdk-dev] [RFC 4/5] net/ixgbe: " Chenxu Di
  0 siblings, 2 replies; 3+ messages in thread
From: Chenxu Di @ 2020-09-29  7:48 UTC (permalink / raw)
  To: dev; +Cc: junyux.jiang, shougangx.wang, Jeff Guo, Haiyue Wang

From: Junyu Jiang <junyux.jiang@intel.com>

The legacy filter API will be removed, the associated rte_eth_ctrl.h
will also be removed. This patch replaces these superseded structures
by the PMD internal structures.

Signed-off-by: Junyu Jiang <junyux.jiang@intel.com>
---
 drivers/net/igc/igc_filter.c | 2 +-
 drivers/net/igc/igc_filter.h | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/net/igc/igc_filter.c b/drivers/net/igc/igc_filter.c
index 836621d4c..7b6f52a4c 100644
--- a/drivers/net/igc/igc_filter.c
+++ b/drivers/net/igc/igc_filter.c
@@ -216,7 +216,7 @@ igc_enable_tuple_filter(struct rte_eth_dev *dev,
 		ttqf &= ~IGC_TTQF_MASK_ENABLE;
 
 	/* TCP flags bits setting. */
-	if (info->tcp_flags & RTE_NTUPLE_TCP_FLAGS_MASK) {
+	if (info->tcp_flags & IGC_NTUPLE_TCP_FLAGS_MASK) {
 		if (info->tcp_flags & RTE_TCP_URG_FLAG)
 			imir_ext |= IGC_IMIREXT_CTRL_URG;
 		if (info->tcp_flags & RTE_TCP_ACK_FLAG)
diff --git a/drivers/net/igc/igc_filter.h b/drivers/net/igc/igc_filter.h
index 79951504f..34bc0a7e3 100644
--- a/drivers/net/igc/igc_filter.h
+++ b/drivers/net/igc/igc_filter.h
@@ -16,6 +16,8 @@
 extern "C" {
 #endif
 
+#define IGC_NTUPLE_TCP_FLAGS_MASK 0x3F /**< TCP flags filter can match. */
+
 int igc_add_ethertype_filter(struct rte_eth_dev *dev,
 		const struct igc_ethertype_filter *filter);
 int igc_del_ethertype_filter(struct rte_eth_dev *dev,
-- 
2.17.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-09-29  8:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-29  7:48 [dpdk-dev] [RFC 2/5] net/igc: decouple dependency from superseded structures Chenxu Di
2020-09-29  7:48 ` [dpdk-dev] [RFC 3/5] net/e1000: " Chenxu Di
2020-09-29  7:48 ` [dpdk-dev] [RFC 4/5] net/ixgbe: " Chenxu Di

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).