]> 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)
commit3de291def6e4103f5aac6460748e4ac67d0215cc
tree74c83a3bb3893b1861d953519f622fd75aa731b0
parentd0cefd56e975e648f55ff73b72f21e937908d986
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: 8d82304a0d36 ("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