aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/mlx4/en_netdev.c
diff options
context:
space:
mode:
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>2011-04-15 00:50:49 -0400
committerDavid S. Miller <davem@davemloft.net>2011-04-15 18:50:41 -0400
commitc8c64cff2c88b17fdd7402dd06288d7415896430 (patch)
treeb089cdcda51dd22560da97abea15afdc656ab777 /drivers/net/mlx4/en_netdev.c
parent569e146396cb3b378d2957b94671bf30cd777c67 (diff)
net: mlx4: convert to hw_features
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/mlx4/en_netdev.c')
-rw-r--r--drivers/net/mlx4/en_netdev.c26
1 files changed, 10 insertions, 16 deletions
diff --git a/drivers/net/mlx4/en_netdev.c b/drivers/net/mlx4/en_netdev.c
index 77063f91c564..61850adae6f7 100644
--- a/drivers/net/mlx4/en_netdev.c
+++ b/drivers/net/mlx4/en_netdev.c
@@ -1083,7 +1083,6 @@ int mlx4_en_init_netdev(struct mlx4_en_dev *mdev, int port,
1083 priv->prof = prof; 1083 priv->prof = prof;
1084 priv->port = port; 1084 priv->port = port;
1085 priv->port_up = false; 1085 priv->port_up = false;
1086 priv->rx_csum = 1;
1087 priv->flags = prof->flags; 1086 priv->flags = prof->flags;
1088 priv->tx_ring_num = prof->tx_ring_num; 1087 priv->tx_ring_num = prof->tx_ring_num;
1089 priv->rx_ring_num = prof->rx_ring_num; 1088 priv->rx_ring_num = prof->rx_ring_num;
@@ -1141,21 +1140,16 @@ int mlx4_en_init_netdev(struct mlx4_en_dev *mdev, int port,
1141 /* 1140 /*
1142 * Set driver features 1141 * Set driver features
1143 */ 1142 */
1144 dev->features |= NETIF_F_SG; 1143 dev->hw_features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM;
1145 dev->vlan_features |= NETIF_F_SG; 1144 if (mdev->LSO_support)
1146 dev->features |= NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM; 1145 dev->hw_features |= NETIF_F_TSO | NETIF_F_TSO6;
1147 dev->vlan_features |= NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM; 1146
1148 dev->features |= NETIF_F_HIGHDMA; 1147 dev->vlan_features = dev->hw_features;
1149 dev->features |= NETIF_F_HW_VLAN_TX | 1148
1150 NETIF_F_HW_VLAN_RX | 1149 dev->hw_features |= NETIF_F_RXCSUM;
1151 NETIF_F_HW_VLAN_FILTER; 1150 dev->features = dev->hw_features | NETIF_F_HIGHDMA |
1152 dev->features |= NETIF_F_GRO; 1151 NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX |
1153 if (mdev->LSO_support) { 1152 NETIF_F_HW_VLAN_FILTER;
1154 dev->features |= NETIF_F_TSO;
1155 dev->features |= NETIF_F_TSO6;
1156 dev->vlan_features |= NETIF_F_TSO;
1157 dev->vlan_features |= NETIF_F_TSO6;
1158 }
1159 1153
1160 mdev->pndev[port] = dev; 1154 mdev->pndev[port] = dev;
1161 1155