git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da24f6f
)
net/enic: increment filter failure counter
author
John Daley
<johndale@cisco.com>
Fri, 8 Jul 2016 22:22:01 +0000
(15:22 -0700)
committer
Thomas Monjalon
<thomas.monjalon@6wind.com>
Fri, 15 Jul 2016 21:37:13 +0000
(23:37 +0200)
One instance of a filter add failure was not incrementing the
the fail counter.
Fixes:
4c2c7bf41f5a
("net/enic: fix negative array index write")
Signed-off-by: John Daley <johndale@cisco.com>
drivers/net/enic/enic_clsf.c
patch
|
blob
|
history
diff --git
a/drivers/net/enic/enic_clsf.c
b/drivers/net/enic/enic_clsf.c
index
3365176
..
e6f57be
100644
(file)
--- a/
drivers/net/enic/enic_clsf.c
+++ b/
drivers/net/enic/enic_clsf.c
@@
-218,6
+218,7
@@
int enic_fdir_add_fltr(struct enic *enic, struct rte_eth_fdir_filter *params)
pos = rte_hash_add_key(enic->fdir.hash, params);
if (pos < 0) {
+ enic->fdir.stats.f_add++;
dev_err(enic, "Add hash key failed\n");
return pos;
}