projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28f084c
)
i40evf: Enable the ndo_set_features netdev op
author
Greg Rose
<
[email protected]
>
Thu, 30 Jan 2014 12:40:27 +0000
(12:40 +0000)
committer
Jeff Kirsher
<
[email protected]
>
Fri, 7 Mar 2014 01:47:08 +0000
(17:47 -0800)
Set netdev->hw_features to enable the ndo_set_features netdev op.
Change-Id: I5a086fbfa5a089de5adba2800c4d0b3a73747b11
Signed-off-by: Greg Rose <
[email protected]
>
Tested-by: Sibai Li <
[email protected]
>
Signed-off-by: Jeff Kirsher <
[email protected]
>
drivers/net/ethernet/intel/i40evf/i40evf_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/intel/i40evf/i40evf_main.c
b/drivers/net/ethernet/intel/i40evf/i40evf_main.c
index b2c03bca79295253a5bdfbb9872b79e5787c0871..3d3ab14c0d979c94e137254914d7bed918dfdae0 100644
(file)
--- a/
drivers/net/ethernet/intel/i40evf/i40evf_main.c
+++ b/
drivers/net/ethernet/intel/i40evf/i40evf_main.c
@@
-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);