aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/myri10ge/myri10ge.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/drivers/net/myri10ge/myri10ge.c b/drivers/net/myri10ge/myri10ge.c
index c724d96fd1e5..3b7a303cca60 100644
--- a/drivers/net/myri10ge/myri10ge.c
+++ b/drivers/net/myri10ge/myri10ge.c
@@ -3731,6 +3731,17 @@ abort_with_fw:
3731 myri10ge_load_firmware(mgp, 0); 3731 myri10ge_load_firmware(mgp, 0);
3732} 3732}
3733 3733
3734static const struct net_device_ops myri10ge_netdev_ops = {
3735 .ndo_open = myri10ge_open,
3736 .ndo_stop = myri10ge_close,
3737 .ndo_start_xmit = myri10ge_xmit,
3738 .ndo_get_stats = myri10ge_get_stats,
3739 .ndo_validate_addr = eth_validate_addr,
3740 .ndo_change_mtu = myri10ge_change_mtu,
3741 .ndo_set_multicast_list = myri10ge_set_multicast_list,
3742 .ndo_set_mac_address = myri10ge_set_mac_address,
3743};
3744
3734static int myri10ge_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 3745static int myri10ge_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
3735{ 3746{
3736 struct net_device *netdev; 3747 struct net_device *netdev;
@@ -3862,15 +3873,10 @@ static int myri10ge_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
3862 myri10ge_initial_mtu = MYRI10GE_MAX_ETHER_MTU - ETH_HLEN; 3873 myri10ge_initial_mtu = MYRI10GE_MAX_ETHER_MTU - ETH_HLEN;
3863 if ((myri10ge_initial_mtu + ETH_HLEN) < 68) 3874 if ((myri10ge_initial_mtu + ETH_HLEN) < 68)
3864 myri10ge_initial_mtu = 68; 3875 myri10ge_initial_mtu = 68;
3876
3877 netdev->netdev_ops = &myri10ge_netdev_ops;
3865 netdev->mtu = myri10ge_initial_mtu; 3878 netdev->mtu = myri10ge_initial_mtu;
3866 netdev->open = myri10ge_open;
3867 netdev->stop = myri10ge_close;
3868 netdev->hard_start_xmit = myri10ge_xmit;
3869 netdev->get_stats = myri10ge_get_stats;
3870 netdev->base_addr = mgp->iomem_base; 3879 netdev->base_addr = mgp->iomem_base;
3871 netdev->change_mtu = myri10ge_change_mtu;
3872 netdev->set_multicast_list = myri10ge_set_multicast_list;
3873 netdev->set_mac_address = myri10ge_set_mac_address;
3874 netdev->features = mgp->features; 3880 netdev->features = mgp->features;
3875 3881
3876 if (dac_enabled) 3882 if (dac_enabled)