diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-03-20 15:35:32 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-21 22:19:14 -0400 |
commit | fe8114e8e1d15ba07ddcaebc4741957a1546f307 (patch) | |
tree | ad557d7d4183497ff2537bf80f41cbd3b1e9c275 /drivers/infiniband | |
parent | d0929553bebcac828b612e7d6d239559e08feaf4 (diff) |
infiniband: convert ipoib to net_device_ops
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib_main.c | 18 |
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 | ||
1019 | static 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 | |||
1019 | static void ipoib_setup(struct net_device *dev) | 1029 | static 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 | ||