summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWei Zhao <wei.zhao1@intel.com>2017-04-27 14:34:06 +0800
committerFerruh Yigit <ferruh.yigit@intel.com>2017-04-28 14:46:18 +0200
commit0e2fa44641bd0a7c6cbc5302663358fe5f31e3a8 (patch)
tree2fcf1243d49912cf5999150bfbf215edde0a8c7c
parent3d54a4d9cec1df1fa88fdffeda74d948fc1c2a6a (diff)
downloaddpdk-stable-0e2fa44641bd0a7c6cbc5302663358fe5f31e3a8.zip
dpdk-stable-0e2fa44641bd0a7c6cbc5302663358fe5f31e3a8.tar.gz
dpdk-stable-0e2fa44641bd0a7c6cbc5302663358fe5f31e3a8.tar.xz
net/ixgbe: fix type check for flow type
The type check for flow_type should be IXGBE_ATR_FLOW_TYPE_IPV4 in special card not RTE_ETH_FLOW_NONFRAG_IPV4_OTHER. Fixes: dc0c16105d2 ("ixgbe: fix X550 flow director check") Cc: stable@dpdk.org Signed-off-by: Wei Zhao <wei.zhao1@intel.com> Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
-rw-r--r--drivers/net/ixgbe/ixgbe_fdir.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ixgbe/ixgbe_fdir.c b/drivers/net/ixgbe/ixgbe_fdir.c
index 3b9d60c..d6e48e9 100644
--- a/drivers/net/ixgbe/ixgbe_fdir.c
+++ b/drivers/net/ixgbe/ixgbe_fdir.c
@@ -1232,7 +1232,7 @@ ixgbe_fdir_filter_program(struct rte_eth_dev *dev,
/*
* Sanity check for x550.
- * When adding a new filter with flow type set to IPv4-other,
+ * When adding a new filter with flow type set to IPv4,
* the flow director mask should be configed before,
* and the L4 protocol and ports are masked.
*/
@@ -1241,11 +1241,11 @@ ixgbe_fdir_filter_program(struct rte_eth_dev *dev,
hw->mac.type == ixgbe_mac_X550EM_x ||
hw->mac.type == ixgbe_mac_X550EM_a) &&
(rule->ixgbe_fdir.formatted.flow_type ==
- RTE_ETH_FLOW_NONFRAG_IPV4_OTHER) &&
+ IXGBE_ATR_FLOW_TYPE_IPV4) &&
(info->mask.src_port_mask != 0 ||
info->mask.dst_port_mask != 0)) {
PMD_DRV_LOG(ERR, "By this device,"
- " IPv4-other is not supported without"
+ " IPv4 is not supported without"
" L4 protocol and ports masked!");
return -ENOTSUP;
}