]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: Fix offset when clearing filter byte counters
authorGanji Aravind <ganji.aravind@chelsio.com>
Fri, 4 Sep 2020 10:28:18 +0000 (15:58 +0530)
committerJakub Kicinski <kuba@kernel.org>
Sat, 5 Sep 2020 22:48:42 +0000 (15:48 -0700)
commitddf61eddbcefe02b62d39183ec4b15f003196257
tree74c83a3bb3893b1861d953519f622fd75aa731b0
parentbb1fa7042b6ef26ededbba18c81b71d93cdeba46
cxgb4: Fix offset when clearing filter byte counters

Pass the correct offset to clear the stale filter hit
bytes counter. Otherwise, the counter starts incrementing
from the stale information, instead of 0.

Fixes: a38fd82082d1 ("cxgb4: add support to create hash filters")
Signed-off-by: Ganji Aravind <ganji.aravind@chelsio.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c