diff options
author | Brett Creeley <[email protected]> | 2019-11-08 06:23:19 -0800 |
---|---|---|
committer | Jeff Kirsher <[email protected]> | 2019-11-22 13:06:34 -0800 |
commit | d4bc4e2d6b57712206abfc4e7751ff629b713070 (patch) | |
tree | cd00498fa4e411fb57e2e303b39d3d09c82001b3 /scripts/gdb/linux/tasks.py | |
parent | 9164f761c99493a947dcbf3889a157943b46e738 (diff) |
ice: Disallow VF VLAN opcodes if VLAN offloads disabled
Currently if the host disables VLAN offloads on the VF by
not setting the VIRTCHNL_VF_OFFLOAD_VLAN capability bit
we will still honor VF VLAN configuration messages over
VIRTCHNL. These messages (i.e. enable/disable VLAN stripping
and VLAN filtering) should be blocked when the feature
is not supported. Fix that by adding a helper function to
determine if the VF is allowed to do VLAN operations based
on the host's VF configuration.
Also, mirror the VF communicated capabilities in the host's
VF configuration.
Signed-off-by: Brett Creeley <[email protected]>
Tested-by: Andrew Bowers <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions