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:
3f20780
)
ixgbevf: set vlan_features in a single write instead of several ORs
author
Emil Tantilov
<
[email protected]
>
Wed, 28 Jan 2015 03:21:13 +0000
(
03:21
+0000)
committer
Jeff Kirsher
<
[email protected]
>
Fri, 6 Feb 2015 03:58:42 +0000
(19:58 -0800)
Clean up the setting of vlan_features by enabling all features at once.
Signed-off-by: Emil Tantilov <
[email protected]
>
Tested-by: Phil Schmitt <
[email protected]
>
Signed-off-by: Jeff Kirsher <
[email protected]
>
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
index a5735263b1de1140eb96a7b76dfa10d65108351c..6d24aa57ce3c13e73018be0adebc1239f57ee07a 100644
(file)
--- a/
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
+++ b/
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
@@
-3873,11
+3873,11
@@
static int ixgbevf_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
NETIF_F_HW_VLAN_CTAG_RX |
NETIF_F_HW_VLAN_CTAG_FILTER;
- netdev->vlan_features |= NETIF_F_TSO
;
- netdev->vlan_features |= NETIF_F_TSO6;
- netdev->vlan_features |= NETIF_F_IP_CSUM;
- netdev->vlan_features |= NETIF_F_IPV6_CSUM;
-
netdev->vlan_features |=
NETIF_F_SG;
+ netdev->vlan_features |= NETIF_F_TSO
|
+ NETIF_F_TSO6 |
+ NETIF_F_IP_CSUM |
+ NETIF_F_IPV6_CSUM |
+
NETIF_F_SG;
if (pci_using_dac)
netdev->features |= NETIF_F_HIGHDMA;