From 23c0e3306b46d66559eb954af9cecd4cd4472179 Mon Sep 17 00:00:00 2001 From: Andrey Chilikin Date: Wed, 30 Sep 2015 14:43:03 +0100 Subject: [PATCH] ixgbe: check for supported flow director behaviors Handle only supported flow director behaviors. Signed-off-by: Andrey Chilikin Acked-by: Jingjing Wu --- drivers/net/ixgbe/ixgbe_fdir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/ixgbe_fdir.c b/drivers/net/ixgbe/ixgbe_fdir.c index 2b4c46af97..e03219b15e 100644 --- a/drivers/net/ixgbe/ixgbe_fdir.c +++ b/drivers/net/ixgbe/ixgbe_fdir.c @@ -1148,7 +1148,8 @@ ixgbe_add_del_fdir_filter(struct rte_eth_dev *dev, " signature mode."); return -EINVAL; } - } else if (fdir_filter->action.rx_queue < IXGBE_MAX_RX_QUEUE_NUM) + } else if (fdir_filter->action.behavior == RTE_ETH_FDIR_ACCEPT && + fdir_filter->action.rx_queue < IXGBE_MAX_RX_QUEUE_NUM) queue = (uint8_t)fdir_filter->action.rx_queue; else return -EINVAL; -- 2.20.1