From: John Daley Date: Fri, 8 Jul 2016 22:22:01 +0000 (-0700) Subject: net/enic: increment filter failure counter X-Git-Tag: spdx-start~6156 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0473ffe33832b8803f2653bc97eaa094b30ee5bb;p=dpdk.git 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 --- diff --git a/drivers/net/enic/enic_clsf.c b/drivers/net/enic/enic_clsf.c index 3365176aa4..e6f57bead2 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; }