[RFC,2/5] net/igc: decouple dependency from superseded structures
Checks
Commit Message
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(-)
@@ -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)
@@ -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,