[dpdk-dev] [PATCH 3/3] ixgbe: add check for supported flow director behaviors
Andrey Chilikin
andrey.chilikin at intel.com
Tue Sep 29 16:26:40 CEST 2015
Handle only supported flow director behaviors
Signed-off-by: Andrey Chilikin <andrey.chilikin at intel.com>
---
drivers/net/ixgbe/ixgbe_fdir.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/net/ixgbe/ixgbe_fdir.c b/drivers/net/ixgbe/ixgbe_fdir.c
index 5c8b833..cf0e8be 100644
--- a/drivers/net/ixgbe/ixgbe_fdir.c
+++ b/drivers/net/ixgbe/ixgbe_fdir.c
@@ -959,7 +959,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;
--
1.7.4.1
More information about the dev
mailing list