From: Andrey Chilikin Date: Wed, 30 Sep 2015 13:43:03 +0000 (+0100) Subject: ixgbe: check for supported flow director behaviors X-Git-Tag: spdx-start~8113 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=23c0e3306b46d66559eb954af9cecd4cd4472179;p=dpdk.git ixgbe: check for supported flow director behaviors Handle only supported flow director behaviors. Signed-off-by: Andrey Chilikin Acked-by: Jingjing Wu --- 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;