diff options
author | Shahjada Abul Husain <shahjada@chelsio.com> | 2019-12-17 07:42:08 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-12-18 07:33:54 +0100 |
commit | 3646ae0de90eb271ef48ec1fa75e63873ab20fc6 (patch) | |
tree | 81d2c7bd7e33e98c1dad584edfb89a5edce359a2 /drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_matchall.c | |
parent | net: dsa: Make PHYLINK related function static again (diff) | |
download | linux-3646ae0de90eb271ef48ec1fa75e63873ab20fc6.tar.xz linux-3646ae0de90eb271ef48ec1fa75e63873ab20fc6.zip |
cxgb4: fix missed high priority region calculation
commit c21939998802 ("cxgb4: add support for high priority filters")
has missed considering high priority region calculation in some code
paths. This patch fixes them.
Fixes: c21939998802 ("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>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_matchall.c')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_matchall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_matchall.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_matchall.c index 53e8db8b2546..24c3c2dc7171 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_matchall.c +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_matchall.c @@ -137,7 +137,7 @@ static int cxgb4_matchall_alloc_filter(struct net_device *dev, * -1 here. 1 slot is enough to create a wildcard matchall * VIID rule. */ - if (cls->common.prio <= adap->tids.nftids) + if (cls->common.prio <= (adap->tids.nftids + adap->tids.nhpftids)) fidx = cls->common.prio - 1; else fidx = cxgb4_get_free_ftid(dev, PF_INET); |