From 37c11ed57dac7ad2e01822a3baea4bc324272421 Mon Sep 17 00:00:00 2001 From: Wei Zhao Date: Mon, 5 Jun 2017 13:40:57 +0800 Subject: [PATCH] net/e1000: add support 2-tuple filter on i210/i211 Add support of i210 and i211 type nic in 2-tuple filter. Signed-off-by: Wei Zhao Acked-by: Wenzhuo Lu --- drivers/net/e1000/igb_ethdev.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/net/e1000/igb_ethdev.c index 6a592fe1aa..935893a05d 100644 --- a/drivers/net/e1000/igb_ethdev.c +++ b/drivers/net/e1000/igb_ethdev.c @@ -4436,7 +4436,9 @@ igb_add_del_ntuple_filter(struct rte_eth_dev *dev, break; case RTE_2TUPLE_FLAGS: case (RTE_2TUPLE_FLAGS | RTE_NTUPLE_FLAGS_TCP_FLAG): - if (hw->mac.type != e1000_82580 && hw->mac.type != e1000_i350) + if (hw->mac.type != e1000_82580 && hw->mac.type != e1000_i350 && + hw->mac.type != e1000_i210 && + hw->mac.type != e1000_i211) return -ENOTSUP; if (add) ret = igb_add_2tuple_filter(dev, ntuple_filter); -- 2.20.1