]> asedeno.scripts.mit.edu Git - linux.git/commit
qed: Do not add VLAN 0 tag to untagged frames in multi-function mode.
authorSudarsana Reddy Kalluru <sudarsana.kalluru@cavium.com>
Thu, 20 Sep 2018 04:59:11 +0000 (21:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Sep 2018 06:12:24 +0000 (23:12 -0700)
commit0216da9413afa546627a1b0d319dfd17fef34050
tree5af7a3b09f3a98afdfb3a723c4ce832b342f4b1b
parent50fdf60181b01b7383b85d4b9acbb842263d96a2
qed: Do not add VLAN 0 tag to untagged frames in multi-function mode.

In certain multi-function switch dependent modes, firmware adds vlan tag 0
to the untagged frames. This leads to double tagging for the traffic
if the dcbx is enabled, which is not the desired behavior. To avoid this,
driver needs to set "dcb_dont_add_vlan0" flag.

Fixes: cac6f691 ("qed: Add support for Unified Fabric Port")
Signed-off-by: Sudarsana Reddy Kalluru <Sudarsana.Kalluru@cavium.com>
Signed-off-by: Tomer Tayar <Tomer.Tayar@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_dcbx.c
drivers/net/ethernet/qlogic/qed/qed_dcbx.h