diff options
Diffstat (limited to 'drivers/net/chelsio')
-rw-r--r-- | drivers/net/chelsio/cxgb2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/chelsio/cxgb2.c b/drivers/net/chelsio/cxgb2.c index 482741797ebf..9b6011e7678e 100644 --- a/drivers/net/chelsio/cxgb2.c +++ b/drivers/net/chelsio/cxgb2.c | |||
@@ -915,7 +915,7 @@ static int t1_set_mac_addr(struct net_device *dev, void *p) | |||
915 | } | 915 | } |
916 | 916 | ||
917 | #if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE) | 917 | #if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE) |
918 | static void vlan_rx_register(struct net_device *dev, | 918 | static void t1_vlan_rx_register(struct net_device *dev, |
919 | struct vlan_group *grp) | 919 | struct vlan_group *grp) |
920 | { | 920 | { |
921 | struct adapter *adapter = dev->ml_priv; | 921 | struct adapter *adapter = dev->ml_priv; |
@@ -1013,6 +1013,7 @@ void t1_fatal_err(struct adapter *adapter) | |||
1013 | static const struct net_device_ops cxgb_netdev_ops = { | 1013 | static const struct net_device_ops cxgb_netdev_ops = { |
1014 | .ndo_open = cxgb_open, | 1014 | .ndo_open = cxgb_open, |
1015 | .ndo_stop = cxgb_close, | 1015 | .ndo_stop = cxgb_close, |
1016 | .ndo_start_xmit = t1_start_xmit, | ||
1016 | .ndo_get_stats = t1_get_stats, | 1017 | .ndo_get_stats = t1_get_stats, |
1017 | .ndo_validate_addr = eth_validate_addr, | 1018 | .ndo_validate_addr = eth_validate_addr, |
1018 | .ndo_set_multicast_list = t1_set_rxmode, | 1019 | .ndo_set_multicast_list = t1_set_rxmode, |
@@ -1020,7 +1021,7 @@ static const struct net_device_ops cxgb_netdev_ops = { | |||
1020 | .ndo_change_mtu = t1_change_mtu, | 1021 | .ndo_change_mtu = t1_change_mtu, |
1021 | .ndo_set_mac_address = t1_set_mac_addr, | 1022 | .ndo_set_mac_address = t1_set_mac_addr, |
1022 | #if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE) | 1023 | #if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE) |
1023 | .ndo_vlan_rx_register = vlan_rx_register, | 1024 | .ndo_vlan_rx_register = t1_vlan_rx_register, |
1024 | #endif | 1025 | #endif |
1025 | #ifdef CONFIG_NET_POLL_CONTROLLER | 1026 | #ifdef CONFIG_NET_POLL_CONTROLLER |
1026 | .ndo_poll_controller = t1_netpoll, | 1027 | .ndo_poll_controller = t1_netpoll, |
@@ -1157,7 +1158,6 @@ static int __devinit init_one(struct pci_dev *pdev, | |||
1157 | } | 1158 | } |
1158 | 1159 | ||
1159 | netdev->netdev_ops = &cxgb_netdev_ops; | 1160 | netdev->netdev_ops = &cxgb_netdev_ops; |
1160 | netdev->hard_start_xmit = t1_start_xmit; | ||
1161 | netdev->hard_header_len += (adapter->flags & TSO_CAPABLE) ? | 1161 | netdev->hard_header_len += (adapter->flags & TSO_CAPABLE) ? |
1162 | sizeof(struct cpl_tx_pkt_lso) : sizeof(struct cpl_tx_pkt); | 1162 | sizeof(struct cpl_tx_pkt_lso) : sizeof(struct cpl_tx_pkt); |
1163 | 1163 | ||