summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJohn Daley <johndale@cisco.com>2016-07-08 15:22:01 -0700
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-07-15 23:37:13 +0200
commit0473ffe33832b8803f2653bc97eaa094b30ee5bb (patch)
tree80bcab2e0e498a31e8eba7f5d1eee93cce663ede /drivers
parentda24f6f658fb7892606b3796a5ed03a5dff688af (diff)
downloaddpdk-0473ffe33832b8803f2653bc97eaa094b30ee5bb.zip
dpdk-0473ffe33832b8803f2653bc97eaa094b30ee5bb.tar.gz
dpdk-0473ffe33832b8803f2653bc97eaa094b30ee5bb.tar.xz
net/enic: increment filter failure counter
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/enic/enic_clsf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/enic/enic_clsf.c b/drivers/net/enic/enic_clsf.c
index 3365176..e6f57be 100644
--- 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;
}