]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: fix wrong ethtool n-tuple rule lookup
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Sat, 12 Jun 2021 13:50:44 +0000 (19:20 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Jun 2021 19:17:57 +0000 (12:17 -0700)
commit9b82296aa019cbb9e6df683cd0b3b87b28bc6612
treedc97a16e34df3784b776a13e19000d94b08c6b9f
parent05febc6685ee4713daf9a80b715bf496913ae4db
cxgb4: fix wrong ethtool n-tuple rule lookup

The TID returned during successful filter creation is relative to
the region in which the filter is created. Using it directly always
returns Hi Prio/Normal filter region's entry for the first couple of
entries, even though the rule is actually inserted in Hash region.
Fix by analyzing in which region the filter has been inserted and
save the absolute TID to be used for lookup later.

Fixes: 5e06d848d296 ("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_ethtool.c