]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: fix delete filter entry fail in unload path
authorShahjada Abul Husain <shahjada@chelsio.com>
Fri, 13 Mar 2020 09:02:57 +0000 (14:32 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Mar 2020 07:12:33 +0000 (00:12 -0700)
commit83cc0ad578df7ac5680828ba44e178fdbe6e6dab
tree76fd1c54196190facbb62c326fa818d48f393925
parent16db191e3ef6944505da23b1a00d196ea957e920
cxgb4: fix delete filter entry fail in unload path

Currently, the hardware TID index is assumed to start from index 0.
However, with the following changeset,

commit 28c42dd06bb9 ("cxgb4: add support for high priority filters")

hardware TID index can start after the high priority region, which
has introduced a regression resulting in remove filters entry
failure for cxgb4 unload path. This patch fix that.

Fixes: 28c42dd06bb9 ("cxgb4: add support for high priority filters")
Signed-off-by: Shahjada Abul Husain <shahjada@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c