diff mbox series

[RFC,2/5] net/igc: decouple dependency from superseded structures

Message ID 20200929074835.39854-1-chenxux.di@intel.com (mailing list archive)
State Superseded, archived
Delegated to: Qi Zhang
Headers show
Series [RFC,1/5] net/i40e: decouple dependency from superseded structures | expand

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Chenxu Di Sept. 29, 2020, 7:48 a.m. UTC
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 mbox series

Patch

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,