]> Git Repo - linux.git/commit
ice: Block switchdev mode when ADQ is active and vice versa
authorMarcin Szycik <[email protected]>
Wed, 16 Aug 2023 19:34:05 +0000 (12:34 -0700)
committerJakub Kicinski <[email protected]>
Thu, 17 Aug 2023 18:55:40 +0000 (11:55 -0700)
commit43d00e102d9ecbe2635d7e3f2e14d2e90183d6af
treebc2d66283bd5a93ef30dace98b964970894f5449
parent2eb9625a3a32251ecea470cd576659a3a03b4e59
ice: Block switchdev mode when ADQ is active and vice versa

ADQ and switchdev are not supported simultaneously. Enabling both at the
same time can result in nullptr dereference.

To prevent this, check if ADQ is active when changing devlink mode to
switchdev mode, and check if switchdev is active when enabling ADQ.

Fixes: fbc7b27af0f9 ("ice: enable ndo_setup_tc support for mqprio_qdisc")
Signed-off-by: Marcin Szycik <[email protected]>
Reviewed-by: Przemek Kitszel <[email protected]>
Tested-by: Sujai Buvaneswaran <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
drivers/net/ethernet/intel/ice/ice_eswitch.c
drivers/net/ethernet/intel/ice/ice_main.c
This page took 0.047269 seconds and 4 git commands to generate.