diff options
author | Michal Swiatkowski <michal.swiatkowski@linux.intel.com> | 2022-04-25 08:27:55 +0200 |
---|---|---|
committer | Tony Nguyen <anthony.l.nguyen@intel.com> | 2022-06-08 17:47:50 +0200 |
commit | cede04b35258faaa5acc3932ac07ab855d59e5f3 (patch) | |
tree | b3fa8fa76492c354203e4cb33ba771942d40f689 /drivers/dma | |
parent | net: ethernet: mtk_eth_soc: enable rx cksum offload for MTK_NETSYS_V2 (diff) | |
download | linux-cede04b35258faaa5acc3932ac07ab855d59e5f3.tar.xz linux-cede04b35258faaa5acc3932ac07ab855d59e5f3.zip |
ice: don't set VF VLAN caps in switchdev
In switchdev mode any VLAN manipulation from VF side isn't allowed.
In order to prevent parsing VLAN commands don't set VF VLAN caps.
This will result in removing VLAN specific opcodes from allowlist.
If VF send any VLAN specific opcode PF driver will answer with not
supported error.
With this approach VF driver know that VLAN caps aren't supported so it
shouldn't send VLAN specific opcodes. Thanks to that, some ugly errors
will not show up in dmesg (ex. on creating VFs in switchdev mode
there are errors about not supported VLAN insertion and stripping)
Move setting VLAN caps to separate function, including
switchdev mode specific code.
Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Tested-by: Sandeep Penigalapati <sandeep.penigalapati@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'drivers/dma')
0 files changed, 0 insertions, 0 deletions