Skip to contentSkip to conversation

i40e: fix vlan inside vxlan

PATCH Superseded Jesse Brandeburg 2 participants 2 messages Sep 22, 2015 – Sep 24, 2015

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i40e: fix vlan inside vxlan

Previously to this patch, the hardware was removing vlan tags from the inner header of vxlan packets. The hardware configuration can be changed to leave the packet alone since that is what the linux stack expects for this type of vlan in vxlan packet.

---
 drivers/net/ethernet/intel/i40e/i40e_main.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/ethernet/intel/i40e/i40e_main.c +2 -1
index 9295768..3410fb3 100644
@@ -2613,7 +2613,8 @@ static int i40e_configure_rx_ring(struct i40e_ring *ring)
 		rx_ctx.lrxqthresh = 2;
 	rx_ctx.crcstrip = 1;
 	rx_ctx.l2tsel = 1;
-	rx_ctx.showiv = 1;
+	/* this controls whether VLAN is stripped from inner headers */
+	rx_ctx.showiv = 0;
 #ifdef I40E_FCOE
 	rx_ctx.fc_ena = (vsi->type == I40E_VSI_FCOE);
 #endif
#1 lore raw

PATCH 1/1 i40e: fix vlan inside vxlan

Quoted 10 lines · Jesse Brandeburg

Previously to this patch, the hardware was removing vlan tags from the inner header of vxlan packets. The hardware configuration can be changed to leave the packet alone since that is what the linux stack expects for this type of vlan in vxlan packet.

---
 drivers/net/ethernet/intel/i40e/i40e_main.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

CC: stable <[email protected]>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.osuosl.org/pipermail/intel-wired-lan/attachments/20150924/f5f12e8b/attachment-0001.asc>