aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/ulp/ipoib/ipoib_main.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_main.c b/drivers/infiniband/ulp/ipoib/ipoib_main.c
index 0bd2a4ff0842..ca837b0a889b 100644
--- a/drivers/infiniband/ulp/ipoib/ipoib_main.c
+++ b/drivers/infiniband/ulp/ipoib/ipoib_main.c
@@ -1016,18 +1016,22 @@ static void ipoib_lro_setup(struct ipoib_dev_priv *priv)
1016 priv->lro.lro_mgr.ip_summed_aggr = CHECKSUM_UNNECESSARY; 1016 priv->lro.lro_mgr.ip_summed_aggr = CHECKSUM_UNNECESSARY;
1017} 1017}
1018 1018
1019static const struct net_device_ops ipoib_netdev_ops = {
1020 .ndo_open = ipoib_open,
1021 .ndo_stop = ipoib_stop,
1022 .ndo_change_mtu = ipoib_change_mtu,
1023 .ndo_start_xmit = ipoib_start_xmit,
1024 .ndo_tx_timeout = ipoib_timeout,
1025 .ndo_set_multicast_list = ipoib_set_mcast_list,
1026 .ndo_neigh_setup = ipoib_neigh_setup_dev,
1027};
1028
1019static void ipoib_setup(struct net_device *dev) 1029static void ipoib_setup(struct net_device *dev)
1020{ 1030{
1021 struct ipoib_dev_priv *priv = netdev_priv(dev); 1031 struct ipoib_dev_priv *priv = netdev_priv(dev);
1022 1032
1023 dev->open = ipoib_open; 1033 dev->netdev_ops = &ipoib_netdev_ops;
1024 dev->stop = ipoib_stop;
1025 dev->change_mtu = ipoib_change_mtu;
1026 dev->hard_start_xmit = ipoib_start_xmit;
1027 dev->tx_timeout = ipoib_timeout;
1028 dev->header_ops = &ipoib_header_ops; 1034 dev->header_ops = &ipoib_header_ops;
1029 dev->set_multicast_list = ipoib_set_mcast_list;
1030 dev->neigh_setup = ipoib_neigh_setup_dev;
1031 1035
1032 ipoib_set_ethtool_ops(dev); 1036 ipoib_set_ethtool_ops(dev);
1033 1037