]> git.itanic.dy.fi Git - linux-stable/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)
commita27fb314cba8cb84cd6456a4699c3330a83c326d
treefa7b8bc322e38f9e897f8f81f08e3d3d843b2951
parente03101824d256c73f21d0672b75175c01cc64fac
cxgb4: fix regression with HASH tc prio value update

commit db43b30cd89c ("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: db43b30cd89c ("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