Skip to contentSkip to conversation

i40e: Disable hw-tc-offload feature on driver load.

PATCH New Mateusz Palczewski 1 participant 1 message Dec 13, 2021

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

PATCH 1/2 i40e: Disable hw-tc-offload feature on driver load.

After loading driver hw-tc-offload is enabled by default. Change the behaviour of driver to disable hw-tc-offload by default.

---
 drivers/net/ethernet/intel/i40e/i40e_main.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/ethernet/intel/i40e/i40e_main.c +2 -0
index 5322f44..a7db6db 100644
@@ -13476,6 +13476,8 @@ static int i40e_config_netdev(struct i40e_vsi *vsi)
 	netdev->features |= hw_features | NETIF_F_HW_VLAN_CTAG_FILTER;
 	netdev->hw_enc_features |= NETIF_F_TSO_MANGLEID;
 
+	netdev->features &= ~NETIF_F_HW_TC;
+
 	if (vsi->type == I40E_VSI_MAIN) {
 		SET_NETDEV_DEV(netdev, &pf->pdev->dev);
 		ether_addr_copy(mac_addr, hw->mac.perm_addr);
Signature · 1 line
2.27.0