Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3415e8ce authored by Greg Rose's avatar Greg Rose Committed by Jeff Kirsher
Browse files

i40evf: Enable the ndo_set_features netdev op



Set netdev->hw_features to enable the ndo_set_features netdev op.

Change-Id: I5a086fbfa5a089de5adba2800c4d0b3a73747b11
Signed-off-by: default avatarGreg Rose <gregory.v.rose@intel.com>
Tested-by: default avatarSibai Li <sibai.li@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 28f084cc
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2036,6 +2036,7 @@ static void i40evf_init_task(struct work_struct *work)
			    NETIF_F_IPV6_CSUM |
			    NETIF_F_TSO |
			    NETIF_F_TSO6 |
			    NETIF_F_RXCSUM |
			    NETIF_F_GRO;

	if (adapter->vf_res->vf_offload_flags
@@ -2046,6 +2047,10 @@ static void i40evf_init_task(struct work_struct *work)
				    NETIF_F_HW_VLAN_CTAG_FILTER;
	}

	/* copy netdev features into list of user selectable features */
	netdev->hw_features |= netdev->features;
	netdev->hw_features &= ~NETIF_F_RXCSUM;

	if (!is_valid_ether_addr(adapter->hw.mac.addr)) {
		dev_info(&pdev->dev, "Invalid MAC address %pMAC, using random\n",
			 adapter->hw.mac.addr);