]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: fix regression with HASH tc prio value update
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Wed, 2 Jun 2021 14:08:59 +0000 (19:38 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Jun 2021 22:12:42 +0000 (15:12 -0700)
commitd7435be998269cf30dc64ba22b414342768702a1
treefa7b8bc322e38f9e897f8f81f08e3d3d843b2951
parentf8d347eeee476434b53781147fa5664f5f845f3a
cxgb4: fix regression with HASH tc prio value update

commit 42d720081612 ("cxgb4: add ethtool n-tuple filter deletion")
has moved searching for next highest priority HASH filter rule to
cxgb4_flow_rule_destroy(), which searches the rhashtable before the
the rule is removed from it and hence always finds at least 1 entry.
Fix by removing the rule from rhashtable first before calling
cxgb4_flow_rule_destroy() and hence avoid fetching stale info.

Fixes: 42d720081612 ("cxgb4: add ethtool n-tuple filter deletion")
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c