Commit e18405d
net: sched: track device in tcf_block_get/put_ext() only for clsact binder types
Clsact/ingress qdisc is not the only one using shared block,
red is also using it. The device tracking was originally introduced
by commit 913b47d ("net/sched: Introduce tc block netdev
tracking infra") for clsact/ingress only. Commit 94e2557 ("net:
sched: move block device tracking into tcf_block_get/put_ext()")
mistakenly enabled that for red as well.
Fix that by adding a check for the binder type being clsact when adding
device to the block->ports xarray.
Reported-by: Ido Schimmel <idosch@idosch.org>
Closes: https://lore.kernel.org/all/ZZ6JE0odnu1lLPtu@shredder/
Fixes: 94e2557 ("net: sched: move block device tracking into tcf_block_get/put_ext()")
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Tested-by: Ido Schimmel <idosch@nvidia.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Tested-by: Victor Nogueira <victor@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 482521d commit e18405d
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1424 | 1424 | | |
1425 | 1425 | | |
1426 | 1426 | | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
| 1434 | + | |
1427 | 1435 | | |
1428 | 1436 | | |
1429 | 1437 | | |
| |||
1462 | 1470 | | |
1463 | 1471 | | |
1464 | 1472 | | |
1465 | | - | |
| 1473 | + | |
1466 | 1474 | | |
1467 | 1475 | | |
1468 | 1476 | | |
| |||
1516 | 1524 | | |
1517 | 1525 | | |
1518 | 1526 | | |
1519 | | - | |
| 1527 | + | |
1520 | 1528 | | |
1521 | 1529 | | |
1522 | 1530 | | |
| |||
0 commit comments