summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2017-01-08 12:17:57 +0200
committerHanoh Haim <hhaim@cisco.com>2017-01-08 12:17:57 +0200
commit6f23ea20b5ca2c74fbfc18c639bf9865799b87bb (patch)
tree9bd3854efd4896f622fa0262ae8fba8c2d97dc2c /src
parent79323b2d27bd2a3703a18594f1bb7fefd0d67514 (diff)
fix sign of filter return value
Signed-off-by: Hanoh Haim <hhaim@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/main_dpdk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main_dpdk.cpp b/src/main_dpdk.cpp
index 24cb93d7..5c78013b 100644
--- a/src/main_dpdk.cpp
+++ b/src/main_dpdk.cpp
@@ -6833,7 +6833,7 @@ void CTRexExtendedDriverBaseMlnx5G::add_del_rules(enum rte_filter_op op, uint8_t
ret = rte_eth_dev_filter_ctrl(port_id, RTE_ETH_FILTER_FDIR, op, (void*)&filter);
if ( ret != 0 ) {
- if (((op == RTE_ETH_FILTER_ADD) && (ret == EEXIST)) || ((op == RTE_ETH_FILTER_DELETE) && (ret == ENOENT)))
+ if (((op == RTE_ETH_FILTER_ADD) && (ret == -EEXIST)) || ((op == RTE_ETH_FILTER_DELETE) && (ret == -ENOENT)))
return;
rte_exit(EXIT_FAILURE, "rte_eth_dev_filter_ctrl: err=%d, port=%u\n",