Skip to contentSkip to conversation

liquidio VF: indicate that disabling rx vlan offload is not allowed

PATCH Applied Felix Manlunas 2 participants 2 messages May 1, 2018 – May 2, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 liquidio VF: indicate that disabling rx vlan offload is not allowed

From: Raghu Vatsavayi <[email protected]>

NIC firmware does not support disabling rx vlan offload, but the VF driver incorrectly indicates that it is supported. The PF driver already does the correct indication by clearing the NETIF_F_HW_VLAN_CTAG_RX bit in its netdev->hw_features. So just do the same thing in the VF.

---
 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/cavium/liquidio/lio_vf_main.c +1 -0
index 08b682b..6295eee 100644
@@ -2100,6 +2100,7 @@ static int setup_nic_devices(struct octeon_device *octeon_dev)
 		netdev->features = (lio->dev_capability & ~NETIF_F_LRO);
 
 		netdev->hw_features = lio->dev_capability;
+		netdev->hw_features &= ~NETIF_F_HW_VLAN_CTAG_RX;
 
 		/* MTU range: 68 - 16000 */
 		netdev->min_mtu = LIO_MIN_MTU_SIZE;
maintainer Applied
#1 lore raw

From: Felix Manlunas <[email protected]>
Date: Tue, 1 May 2018 10:32:10 -0700

Quoted 10 lines

From: Raghu Vatsavayi <[email protected]>

NIC firmware does not support disabling rx vlan offload, but the VF driver incorrectly indicates that it is supported. The PF driver already does the correct indication by clearing the NETIF_F_HW_VLAN_CTAG_RX bit in its netdev->hw_features. So just do the same thing in the VF.

Applied, thanks.