From: Junyu Jiang <junyux.ji...@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.ji...@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