diff options
-rw-r--r-- | drivers/net/bnx2.c | 4 | ||||
-rw-r--r-- | drivers/net/bnx2x_main.c | 4 | ||||
-rw-r--r-- | drivers/net/cassini.c | 2 | ||||
-rw-r--r-- | drivers/net/ixgbevf/ixgbevf_main.c | 18 | ||||
-rw-r--r-- | drivers/net/meth.c | 3 | ||||
-rw-r--r-- | drivers/staging/wlags49_h2/wl_netdev.c | 6 |
6 files changed, 5 insertions, 32 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c index a7b6b12c1c05..5917b941aca2 100644 --- a/drivers/net/bnx2.c +++ b/drivers/net/bnx2.c | |||
@@ -7668,7 +7668,7 @@ bnx2_change_mtu(struct net_device *dev, int new_mtu) | |||
7668 | return (bnx2_change_ring_size(bp, bp->rx_ring_size, bp->tx_ring_size)); | 7668 | return (bnx2_change_ring_size(bp, bp->rx_ring_size, bp->tx_ring_size)); |
7669 | } | 7669 | } |
7670 | 7670 | ||
7671 | #if defined(HAVE_POLL_CONTROLLER) || defined(CONFIG_NET_POLL_CONTROLLER) | 7671 | #ifdef CONFIG_NET_POLL_CONTROLLER |
7672 | static void | 7672 | static void |
7673 | poll_bnx2(struct net_device *dev) | 7673 | poll_bnx2(struct net_device *dev) |
7674 | { | 7674 | { |
@@ -8280,7 +8280,7 @@ static const struct net_device_ops bnx2_netdev_ops = { | |||
8280 | #ifdef BCM_VLAN | 8280 | #ifdef BCM_VLAN |
8281 | .ndo_vlan_rx_register = bnx2_vlan_rx_register, | 8281 | .ndo_vlan_rx_register = bnx2_vlan_rx_register, |
8282 | #endif | 8282 | #endif |
8283 | #if defined(HAVE_POLL_CONTROLLER) || defined(CONFIG_NET_POLL_CONTROLLER) | 8283 | #ifdef CONFIG_NET_POLL_CONTROLLER |
8284 | .ndo_poll_controller = poll_bnx2, | 8284 | .ndo_poll_controller = poll_bnx2, |
8285 | #endif | 8285 | #endif |
8286 | }; | 8286 | }; |
diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c index ca4ed634d55e..ffc7381969ae 100644 --- a/drivers/net/bnx2x_main.c +++ b/drivers/net/bnx2x_main.c | |||
@@ -11731,7 +11731,7 @@ static void bnx2x_vlan_rx_register(struct net_device *dev, | |||
11731 | 11731 | ||
11732 | #endif | 11732 | #endif |
11733 | 11733 | ||
11734 | #if defined(HAVE_POLL_CONTROLLER) || defined(CONFIG_NET_POLL_CONTROLLER) | 11734 | #ifdef CONFIG_NET_POLL_CONTROLLER |
11735 | static void poll_bnx2x(struct net_device *dev) | 11735 | static void poll_bnx2x(struct net_device *dev) |
11736 | { | 11736 | { |
11737 | struct bnx2x *bp = netdev_priv(dev); | 11737 | struct bnx2x *bp = netdev_priv(dev); |
@@ -11755,7 +11755,7 @@ static const struct net_device_ops bnx2x_netdev_ops = { | |||
11755 | #ifdef BCM_VLAN | 11755 | #ifdef BCM_VLAN |
11756 | .ndo_vlan_rx_register = bnx2x_vlan_rx_register, | 11756 | .ndo_vlan_rx_register = bnx2x_vlan_rx_register, |
11757 | #endif | 11757 | #endif |
11758 | #if defined(HAVE_POLL_CONTROLLER) || defined(CONFIG_NET_POLL_CONTROLLER) | 11758 | #ifdef CONFIG_NET_POLL_CONTROLLER |
11759 | .ndo_poll_controller = poll_bnx2x, | 11759 | .ndo_poll_controller = poll_bnx2x, |
11760 | #endif | 11760 | #endif |
11761 | }; | 11761 | }; |
diff --git a/drivers/net/cassini.c b/drivers/net/cassini.c index b3a038c23af1..ad47e5126fde 100644 --- a/drivers/net/cassini.c +++ b/drivers/net/cassini.c | |||
@@ -106,7 +106,7 @@ | |||
106 | #define cas_page_unmap(x) kunmap_atomic((x), KM_SKB_DATA_SOFTIRQ) | 106 | #define cas_page_unmap(x) kunmap_atomic((x), KM_SKB_DATA_SOFTIRQ) |
107 | #define CAS_NCPUS num_online_cpus() | 107 | #define CAS_NCPUS num_online_cpus() |
108 | 108 | ||
109 | #if defined(CONFIG_CASSINI_NAPI) && defined(HAVE_NETDEV_POLL) | 109 | #ifdef CONFIG_CASSINI_NAPI |
110 | #define USE_NAPI | 110 | #define USE_NAPI |
111 | #define cas_skb_release(x) netif_receive_skb(x) | 111 | #define cas_skb_release(x) netif_receive_skb(x) |
112 | #else | 112 | #else |
diff --git a/drivers/net/ixgbevf/ixgbevf_main.c b/drivers/net/ixgbevf/ixgbevf_main.c index 7b3af107ca84..b9f10d05049d 100644 --- a/drivers/net/ixgbevf/ixgbevf_main.c +++ b/drivers/net/ixgbevf/ixgbevf_main.c | |||
@@ -3262,7 +3262,6 @@ static void ixgbevf_shutdown(struct pci_dev *pdev) | |||
3262 | pci_disable_device(pdev); | 3262 | pci_disable_device(pdev); |
3263 | } | 3263 | } |
3264 | 3264 | ||
3265 | #ifdef HAVE_NET_DEVICE_OPS | ||
3266 | static const struct net_device_ops ixgbe_netdev_ops = { | 3265 | static const struct net_device_ops ixgbe_netdev_ops = { |
3267 | .ndo_open = &ixgbevf_open, | 3266 | .ndo_open = &ixgbevf_open, |
3268 | .ndo_stop = &ixgbevf_close, | 3267 | .ndo_stop = &ixgbevf_close, |
@@ -3278,29 +3277,12 @@ static const struct net_device_ops ixgbe_netdev_ops = { | |||
3278 | .ndo_vlan_rx_add_vid = &ixgbevf_vlan_rx_add_vid, | 3277 | .ndo_vlan_rx_add_vid = &ixgbevf_vlan_rx_add_vid, |
3279 | .ndo_vlan_rx_kill_vid = &ixgbevf_vlan_rx_kill_vid, | 3278 | .ndo_vlan_rx_kill_vid = &ixgbevf_vlan_rx_kill_vid, |
3280 | }; | 3279 | }; |
3281 | #endif /* HAVE_NET_DEVICE_OPS */ | ||
3282 | 3280 | ||
3283 | static void ixgbevf_assign_netdev_ops(struct net_device *dev) | 3281 | static void ixgbevf_assign_netdev_ops(struct net_device *dev) |
3284 | { | 3282 | { |
3285 | struct ixgbevf_adapter *adapter; | 3283 | struct ixgbevf_adapter *adapter; |
3286 | adapter = netdev_priv(dev); | 3284 | adapter = netdev_priv(dev); |
3287 | #ifdef HAVE_NET_DEVICE_OPS | ||
3288 | dev->netdev_ops = &ixgbe_netdev_ops; | 3285 | dev->netdev_ops = &ixgbe_netdev_ops; |
3289 | #else /* HAVE_NET_DEVICE_OPS */ | ||
3290 | dev->open = &ixgbevf_open; | ||
3291 | dev->stop = &ixgbevf_close; | ||
3292 | |||
3293 | dev->hard_start_xmit = &ixgbevf_xmit_frame; | ||
3294 | |||
3295 | dev->get_stats = &ixgbevf_get_stats; | ||
3296 | dev->set_multicast_list = &ixgbevf_set_rx_mode; | ||
3297 | dev->set_mac_address = &ixgbevf_set_mac; | ||
3298 | dev->change_mtu = &ixgbevf_change_mtu; | ||
3299 | dev->tx_timeout = &ixgbevf_tx_timeout; | ||
3300 | dev->vlan_rx_register = &ixgbevf_vlan_rx_register; | ||
3301 | dev->vlan_rx_add_vid = &ixgbevf_vlan_rx_add_vid; | ||
3302 | dev->vlan_rx_kill_vid = &ixgbevf_vlan_rx_kill_vid; | ||
3303 | #endif /* HAVE_NET_DEVICE_OPS */ | ||
3304 | ixgbevf_set_ethtool_ops(dev); | 3286 | ixgbevf_set_ethtool_ops(dev); |
3305 | dev->watchdog_timeo = 5 * HZ; | 3287 | dev->watchdog_timeo = 5 * HZ; |
3306 | } | 3288 | } |
diff --git a/drivers/net/meth.c b/drivers/net/meth.c index 2af81735386b..9f72cb45f4af 100644 --- a/drivers/net/meth.c +++ b/drivers/net/meth.c | |||
@@ -51,14 +51,11 @@ | |||
51 | 51 | ||
52 | static const char *meth_str="SGI O2 Fast Ethernet"; | 52 | static const char *meth_str="SGI O2 Fast Ethernet"; |
53 | 53 | ||
54 | #define HAVE_TX_TIMEOUT | ||
55 | /* The maximum time waited (in jiffies) before assuming a Tx failed. (400ms) */ | 54 | /* The maximum time waited (in jiffies) before assuming a Tx failed. (400ms) */ |
56 | #define TX_TIMEOUT (400*HZ/1000) | 55 | #define TX_TIMEOUT (400*HZ/1000) |
57 | 56 | ||
58 | #ifdef HAVE_TX_TIMEOUT | ||
59 | static int timeout = TX_TIMEOUT; | 57 | static int timeout = TX_TIMEOUT; |
60 | module_param(timeout, int, 0); | 58 | module_param(timeout, int, 0); |
61 | #endif | ||
62 | 59 | ||
63 | /* | 60 | /* |
64 | * This structure is private to each device. It is used to pass | 61 | * This structure is private to each device. It is used to pass |
diff --git a/drivers/staging/wlags49_h2/wl_netdev.c b/drivers/staging/wlags49_h2/wl_netdev.c index ac3890247965..0d22e3692fe5 100644 --- a/drivers/staging/wlags49_h2/wl_netdev.c +++ b/drivers/staging/wlags49_h2/wl_netdev.c | |||
@@ -1194,9 +1194,7 @@ static const struct net_device_ops wl_netdev_ops = | |||
1194 | .ndo_stop = &wl_adapter_close, | 1194 | .ndo_stop = &wl_adapter_close, |
1195 | .ndo_do_ioctl = &wl_ioctl, | 1195 | .ndo_do_ioctl = &wl_ioctl, |
1196 | 1196 | ||
1197 | #ifdef HAVE_TX_TIMEOUT | ||
1198 | .ndo_tx_timeout = &wl_tx_timeout, | 1197 | .ndo_tx_timeout = &wl_tx_timeout, |
1199 | #endif | ||
1200 | 1198 | ||
1201 | #ifdef CONFIG_NET_POLL_CONTROLLER | 1199 | #ifdef CONFIG_NET_POLL_CONTROLLER |
1202 | .ndo_poll_controller = wl_poll, | 1200 | .ndo_poll_controller = wl_poll, |
@@ -1270,9 +1268,7 @@ struct net_device * wl_device_alloc( void ) | |||
1270 | dev->stop = &wl_adapter_close; | 1268 | dev->stop = &wl_adapter_close; |
1271 | dev->do_ioctl = &wl_ioctl; | 1269 | dev->do_ioctl = &wl_ioctl; |
1272 | 1270 | ||
1273 | #ifdef HAVE_TX_TIMEOUT | ||
1274 | dev->tx_timeout = &wl_tx_timeout; | 1271 | dev->tx_timeout = &wl_tx_timeout; |
1275 | #endif | ||
1276 | 1272 | ||
1277 | #ifdef CONFIG_NET_POLL_CONTROLLER | 1273 | #ifdef CONFIG_NET_POLL_CONTROLLER |
1278 | dev->poll_controller = wl_poll; | 1274 | dev->poll_controller = wl_poll; |
@@ -1280,9 +1276,7 @@ struct net_device * wl_device_alloc( void ) | |||
1280 | 1276 | ||
1281 | #endif // (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30)) | 1277 | #endif // (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30)) |
1282 | 1278 | ||
1283 | #ifdef HAVE_TX_TIMEOUT | ||
1284 | dev->watchdog_timeo = TX_TIMEOUT; | 1279 | dev->watchdog_timeo = TX_TIMEOUT; |
1285 | #endif | ||
1286 | 1280 | ||
1287 | dev->ethtool_ops = &wl_ethtool_ops; | 1281 | dev->ethtool_ops = &wl_ethtool_ops; |
1288 | 1282 | ||