From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Daley Subject: [PATCH] net/enic: increment filter failure counter Date: Fri, 8 Jul 2016 15:22:01 -0700 Message-ID: <1468016521-20280-2-git-send-email-johndale@cisco.com> References: <1468016521-20280-1-git-send-email-johndale@cisco.com> Cc: bruce.richardson@intel.com, John Daley To: dev@dpdk.org Return-path: Received: from rcdn-iport-5.cisco.com (rcdn-iport-5.cisco.com [173.37.86.76]) by dpdk.org (Postfix) with ESMTP id D74CB9AC7 for ; Sat, 9 Jul 2016 00:22:04 +0200 (CEST) In-Reply-To: <1468016521-20280-1-git-send-email-johndale@cisco.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- drivers/net/enic/enic_clsf.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.7.0