Code Review
/
trex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
79323b2
)
fix sign of filter return value
33/5233/1
author
Hanoh Haim
<
[email protected]
>
Sun, 8 Jan 2017 10:17:57 +0000
(12:17 +0200)
committer
Hanoh Haim
<
[email protected]
>
Sun, 8 Jan 2017 10:17:57 +0000
(12:17 +0200)
Signed-off-by: Hanoh Haim <
[email protected]
>
src/main_dpdk.cpp
patch
|
blob
|
history
diff --git
a/src/main_dpdk.cpp
b/src/main_dpdk.cpp
index
24cb93d
..
5c78013
100644
(file)
--- 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",