]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Forbid trusted VFs in switchdev mode
authorWojciech Drewek <wojciech.drewek@intel.com>
Fri, 15 Oct 2021 08:27:19 +0000 (10:27 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 19 Oct 2021 17:53:26 +0000 (10:53 -0700)
commit7d63237b89b744aab993a8d3507731de6169ed7b
treeee50f2a2781ea41e5d9688874bbc997743df2ec9
parent9c3501f5dee97462d4d690edb6eba3baeee21977
ice: Forbid trusted VFs in switchdev mode

Merge issues caused the check for switchdev mode has been inserted
in wrong place. It should be in ice_set_vf_trust not in ice_set_vf_mac.

Trusted VFs are forbidden in switchdev mode because they should
be configured only from the host side.

Fixes: 19e46441d850 ("ice: enable/disable switchdev when managing VFs")
Signed-off-by: Wojciech Drewek <wojciech.drewek@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c