diff options
author | Jarod Wilson <jarod@redhat.com> | 2016-10-07 22:04:34 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-10-13 09:36:57 -0400 |
commit | a52ad514fdf3b8a57ca4322c92d2d8d5c6182485 (patch) | |
tree | d5c763c23ce3faa611fa00b386f9a095ad364315 | |
parent | 61e84623ace35ce48975e8f90bbbac7557c43d61 (diff) |
net: deprecate eth_change_mtu, remove usage
With centralized MTU checking, there's nothing productive done by
eth_change_mtu that isn't already done in dev_set_mtu, so mark it as
deprecated and remove all usage of it in the kernel. All callers have been
audited for calls to alloc_etherdev* or ether_setup directly, which means
they all have a valid dev->min_mtu and dev->max_mtu. Now eth_change_mtu
prints out a netdev_warn about being deprecated, for the benefit of
out-of-tree drivers that might be utilizing it.
Of note, dvb_net.c actually had dev->mtu = 4096, while using
eth_change_mtu, meaning that if you ever tried changing it's mtu, you
couldn't set it above 1500 anymore. It's now getting dev->max_mtu also set
to 4096 to remedy that.
v2: fix up lantiq_etop, missed breakage due to drive not compiling on x86
CC: netdev@vger.kernel.org
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
143 files changed, 16 insertions, 156 deletions
diff --git a/arch/m68k/emu/nfeth.c b/arch/m68k/emu/nfeth.c index a0985fd088d1..fc4be028c418 100644 --- a/arch/m68k/emu/nfeth.c +++ b/arch/m68k/emu/nfeth.c | |||
@@ -184,7 +184,6 @@ static const struct net_device_ops nfeth_netdev_ops = { | |||
184 | .ndo_start_xmit = nfeth_xmit, | 184 | .ndo_start_xmit = nfeth_xmit, |
185 | .ndo_tx_timeout = nfeth_tx_timeout, | 185 | .ndo_tx_timeout = nfeth_tx_timeout, |
186 | .ndo_validate_addr = eth_validate_addr, | 186 | .ndo_validate_addr = eth_validate_addr, |
187 | .ndo_change_mtu = eth_change_mtu, | ||
188 | .ndo_set_mac_address = eth_mac_addr, | 187 | .ndo_set_mac_address = eth_mac_addr, |
189 | }; | 188 | }; |
190 | 189 | ||
diff --git a/drivers/isdn/hysdn/hysdn_net.c b/drivers/isdn/hysdn/hysdn_net.c index 5609deee7cd3..b93a4e9a8d34 100644 --- a/drivers/isdn/hysdn/hysdn_net.c +++ b/drivers/isdn/hysdn/hysdn_net.c | |||
@@ -232,7 +232,6 @@ static const struct net_device_ops hysdn_netdev_ops = { | |||
232 | .ndo_open = net_open, | 232 | .ndo_open = net_open, |
233 | .ndo_stop = net_close, | 233 | .ndo_stop = net_close, |
234 | .ndo_start_xmit = net_send_packet, | 234 | .ndo_start_xmit = net_send_packet, |
235 | .ndo_change_mtu = eth_change_mtu, | ||
236 | .ndo_set_mac_address = eth_mac_addr, | 235 | .ndo_set_mac_address = eth_mac_addr, |
237 | .ndo_validate_addr = eth_validate_addr, | 236 | .ndo_validate_addr = eth_validate_addr, |
238 | }; | 237 | }; |
diff --git a/drivers/media/dvb-core/dvb_net.c b/drivers/media/dvb-core/dvb_net.c index 9914f69a4a02..0da622f5fe69 100644 --- a/drivers/media/dvb-core/dvb_net.c +++ b/drivers/media/dvb-core/dvb_net.c | |||
@@ -1198,7 +1198,6 @@ static const struct net_device_ops dvb_netdev_ops = { | |||
1198 | .ndo_start_xmit = dvb_net_tx, | 1198 | .ndo_start_xmit = dvb_net_tx, |
1199 | .ndo_set_rx_mode = dvb_net_set_multicast_list, | 1199 | .ndo_set_rx_mode = dvb_net_set_multicast_list, |
1200 | .ndo_set_mac_address = dvb_net_set_mac, | 1200 | .ndo_set_mac_address = dvb_net_set_mac, |
1201 | .ndo_change_mtu = eth_change_mtu, | ||
1202 | .ndo_validate_addr = eth_validate_addr, | 1201 | .ndo_validate_addr = eth_validate_addr, |
1203 | }; | 1202 | }; |
1204 | 1203 | ||
@@ -1209,6 +1208,7 @@ static void dvb_net_setup(struct net_device *dev) | |||
1209 | dev->header_ops = &dvb_header_ops; | 1208 | dev->header_ops = &dvb_header_ops; |
1210 | dev->netdev_ops = &dvb_netdev_ops; | 1209 | dev->netdev_ops = &dvb_netdev_ops; |
1211 | dev->mtu = 4096; | 1210 | dev->mtu = 4096; |
1211 | dev->max_mtu = 4096; | ||
1212 | 1212 | ||
1213 | dev->flags |= IFF_NOARP; | 1213 | dev->flags |= IFF_NOARP; |
1214 | } | 1214 | } |
diff --git a/drivers/net/appletalk/ipddp.c b/drivers/net/appletalk/ipddp.c index e90c6a7333d7..31f89f1c6123 100644 --- a/drivers/net/appletalk/ipddp.c +++ b/drivers/net/appletalk/ipddp.c | |||
@@ -59,7 +59,6 @@ static int ipddp_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd); | |||
59 | static const struct net_device_ops ipddp_netdev_ops = { | 59 | static const struct net_device_ops ipddp_netdev_ops = { |
60 | .ndo_start_xmit = ipddp_xmit, | 60 | .ndo_start_xmit = ipddp_xmit, |
61 | .ndo_do_ioctl = ipddp_ioctl, | 61 | .ndo_do_ioctl = ipddp_ioctl, |
62 | .ndo_change_mtu = eth_change_mtu, | ||
63 | .ndo_set_mac_address = eth_mac_addr, | 62 | .ndo_set_mac_address = eth_mac_addr, |
64 | .ndo_validate_addr = eth_validate_addr, | 63 | .ndo_validate_addr = eth_validate_addr, |
65 | }; | 64 | }; |
diff --git a/drivers/net/cris/eth_v10.c b/drivers/net/cris/eth_v10.c index 221f5f011ff9..e128826aa117 100644 --- a/drivers/net/cris/eth_v10.c +++ b/drivers/net/cris/eth_v10.c | |||
@@ -264,7 +264,6 @@ static const struct net_device_ops e100_netdev_ops = { | |||
264 | .ndo_do_ioctl = e100_ioctl, | 264 | .ndo_do_ioctl = e100_ioctl, |
265 | .ndo_set_mac_address = e100_set_mac_address, | 265 | .ndo_set_mac_address = e100_set_mac_address, |
266 | .ndo_validate_addr = eth_validate_addr, | 266 | .ndo_validate_addr = eth_validate_addr, |
267 | .ndo_change_mtu = eth_change_mtu, | ||
268 | .ndo_set_config = e100_set_config, | 267 | .ndo_set_config = e100_set_config, |
269 | #ifdef CONFIG_NET_POLL_CONTROLLER | 268 | #ifdef CONFIG_NET_POLL_CONTROLLER |
270 | .ndo_poll_controller = e100_netpoll, | 269 | .ndo_poll_controller = e100_netpoll, |
diff --git a/drivers/net/ethernet/3com/3c509.c b/drivers/net/ethernet/3com/3c509.c index 91ada52f776b..9f9a5f440e2f 100644 --- a/drivers/net/ethernet/3com/3c509.c +++ b/drivers/net/ethernet/3com/3c509.c | |||
@@ -508,7 +508,6 @@ static const struct net_device_ops netdev_ops = { | |||
508 | .ndo_get_stats = el3_get_stats, | 508 | .ndo_get_stats = el3_get_stats, |
509 | .ndo_set_rx_mode = set_multicast_list, | 509 | .ndo_set_rx_mode = set_multicast_list, |
510 | .ndo_tx_timeout = el3_tx_timeout, | 510 | .ndo_tx_timeout = el3_tx_timeout, |
511 | .ndo_change_mtu = eth_change_mtu, | ||
512 | .ndo_set_mac_address = eth_mac_addr, | 511 | .ndo_set_mac_address = eth_mac_addr, |
513 | .ndo_validate_addr = eth_validate_addr, | 512 | .ndo_validate_addr = eth_validate_addr, |
514 | #ifdef CONFIG_NET_POLL_CONTROLLER | 513 | #ifdef CONFIG_NET_POLL_CONTROLLER |
diff --git a/drivers/net/ethernet/3com/3c515.c b/drivers/net/ethernet/3com/3c515.c index b26e038b4a0e..b9f4c463e516 100644 --- a/drivers/net/ethernet/3com/3c515.c +++ b/drivers/net/ethernet/3com/3c515.c | |||
@@ -570,7 +570,6 @@ static const struct net_device_ops netdev_ops = { | |||
570 | .ndo_tx_timeout = corkscrew_timeout, | 570 | .ndo_tx_timeout = corkscrew_timeout, |
571 | .ndo_get_stats = corkscrew_get_stats, | 571 | .ndo_get_stats = corkscrew_get_stats, |
572 | .ndo_set_rx_mode = set_rx_mode, | 572 | .ndo_set_rx_mode = set_rx_mode, |
573 | .ndo_change_mtu = eth_change_mtu, | ||
574 | .ndo_set_mac_address = eth_mac_addr, | 573 | .ndo_set_mac_address = eth_mac_addr, |
575 | .ndo_validate_addr = eth_validate_addr, | 574 | .ndo_validate_addr = eth_validate_addr, |
576 | }; | 575 | }; |
diff --git a/drivers/net/ethernet/3com/3c574_cs.c b/drivers/net/ethernet/3com/3c574_cs.c index b88afd759307..9359a37fedc0 100644 --- a/drivers/net/ethernet/3com/3c574_cs.c +++ b/drivers/net/ethernet/3com/3c574_cs.c | |||
@@ -254,7 +254,6 @@ static const struct net_device_ops el3_netdev_ops = { | |||
254 | .ndo_get_stats = el3_get_stats, | 254 | .ndo_get_stats = el3_get_stats, |
255 | .ndo_do_ioctl = el3_ioctl, | 255 | .ndo_do_ioctl = el3_ioctl, |
256 | .ndo_set_rx_mode = set_multicast_list, | 256 | .ndo_set_rx_mode = set_multicast_list, |
257 | .ndo_change_mtu = eth_change_mtu, | ||
258 | .ndo_set_mac_address = eth_mac_addr, | 257 | .ndo_set_mac_address = eth_mac_addr, |
259 | .ndo_validate_addr = eth_validate_addr, | 258 | .ndo_validate_addr = eth_validate_addr, |
260 | }; | 259 | }; |
diff --git a/drivers/net/ethernet/3com/3c589_cs.c b/drivers/net/ethernet/3com/3c589_cs.c index 71396e4b87e3..e28254a00599 100644 --- a/drivers/net/ethernet/3com/3c589_cs.c +++ b/drivers/net/ethernet/3com/3c589_cs.c | |||
@@ -188,7 +188,6 @@ static const struct net_device_ops el3_netdev_ops = { | |||
188 | .ndo_set_config = el3_config, | 188 | .ndo_set_config = el3_config, |
189 | .ndo_get_stats = el3_get_stats, | 189 | .ndo_get_stats = el3_get_stats, |
190 | .ndo_set_rx_mode = set_multicast_list, | 190 | .ndo_set_rx_mode = set_multicast_list, |
191 | .ndo_change_mtu = eth_change_mtu, | ||
192 | .ndo_set_mac_address = eth_mac_addr, | 191 | .ndo_set_mac_address = eth_mac_addr, |
193 | .ndo_validate_addr = eth_validate_addr, | 192 | .ndo_validate_addr = eth_validate_addr, |
194 | }; | 193 | }; |
diff --git a/drivers/net/ethernet/3com/3c59x.c b/drivers/net/ethernet/3com/3c59x.c index 9133e7926da5..3ecf61382269 100644 --- a/drivers/net/ethernet/3com/3c59x.c +++ b/drivers/net/ethernet/3com/3c59x.c | |||
@@ -1062,7 +1062,6 @@ static const struct net_device_ops boomrang_netdev_ops = { | |||
1062 | .ndo_do_ioctl = vortex_ioctl, | 1062 | .ndo_do_ioctl = vortex_ioctl, |
1063 | #endif | 1063 | #endif |
1064 | .ndo_set_rx_mode = set_rx_mode, | 1064 | .ndo_set_rx_mode = set_rx_mode, |
1065 | .ndo_change_mtu = eth_change_mtu, | ||
1066 | .ndo_set_mac_address = eth_mac_addr, | 1065 | .ndo_set_mac_address = eth_mac_addr, |
1067 | .ndo_validate_addr = eth_validate_addr, | 1066 | .ndo_validate_addr = eth_validate_addr, |
1068 | #ifdef CONFIG_NET_POLL_CONTROLLER | 1067 | #ifdef CONFIG_NET_POLL_CONTROLLER |
@@ -1080,7 +1079,6 @@ static const struct net_device_ops vortex_netdev_ops = { | |||
1080 | .ndo_do_ioctl = vortex_ioctl, | 1079 | .ndo_do_ioctl = vortex_ioctl, |
1081 | #endif | 1080 | #endif |
1082 | .ndo_set_rx_mode = set_rx_mode, | 1081 | .ndo_set_rx_mode = set_rx_mode, |
1083 | .ndo_change_mtu = eth_change_mtu, | ||
1084 | .ndo_set_mac_address = eth_mac_addr, | 1082 | .ndo_set_mac_address = eth_mac_addr, |
1085 | .ndo_validate_addr = eth_validate_addr, | 1083 | .ndo_validate_addr = eth_validate_addr, |
1086 | #ifdef CONFIG_NET_POLL_CONTROLLER | 1084 | #ifdef CONFIG_NET_POLL_CONTROLLER |
diff --git a/drivers/net/ethernet/3com/typhoon.c b/drivers/net/ethernet/3com/typhoon.c index 8f8418d2ac4a..506b507b4158 100644 --- a/drivers/net/ethernet/3com/typhoon.c +++ b/drivers/net/ethernet/3com/typhoon.c | |||
@@ -2255,7 +2255,6 @@ static const struct net_device_ops typhoon_netdev_ops = { | |||
2255 | .ndo_get_stats = typhoon_get_stats, | 2255 | .ndo_get_stats = typhoon_get_stats, |
2256 | .ndo_validate_addr = eth_validate_addr, | 2256 | .ndo_validate_addr = eth_validate_addr, |
2257 | .ndo_set_mac_address = eth_mac_addr, | 2257 | .ndo_set_mac_address = eth_mac_addr, |
2258 | .ndo_change_mtu = eth_change_mtu, | ||
2259 | }; | 2258 | }; |
2260 | 2259 | ||
2261 | static int | 2260 | static int |
diff --git a/drivers/net/ethernet/8390/8390.c b/drivers/net/ethernet/8390/8390.c index 5db1f55abef4..a43544af257b 100644 --- a/drivers/net/ethernet/8390/8390.c +++ b/drivers/net/ethernet/8390/8390.c | |||
@@ -64,7 +64,6 @@ const struct net_device_ops ei_netdev_ops = { | |||
64 | .ndo_set_rx_mode = ei_set_multicast_list, | 64 | .ndo_set_rx_mode = ei_set_multicast_list, |
65 | .ndo_validate_addr = eth_validate_addr, | 65 | .ndo_validate_addr = eth_validate_addr, |
66 | .ndo_set_mac_address = eth_mac_addr, | 66 | .ndo_set_mac_address = eth_mac_addr, |
67 | .ndo_change_mtu = eth_change_mtu, | ||
68 | #ifdef CONFIG_NET_POLL_CONTROLLER | 67 | #ifdef CONFIG_NET_POLL_CONTROLLER |
69 | .ndo_poll_controller = ei_poll, | 68 | .ndo_poll_controller = ei_poll, |
70 | #endif | 69 | #endif |
diff --git a/drivers/net/ethernet/8390/8390p.c b/drivers/net/ethernet/8390/8390p.c index e8fc2e87e840..46d2257c4430 100644 --- a/drivers/net/ethernet/8390/8390p.c +++ b/drivers/net/ethernet/8390/8390p.c | |||
@@ -69,7 +69,6 @@ const struct net_device_ops eip_netdev_ops = { | |||
69 | .ndo_set_rx_mode = eip_set_multicast_list, | 69 | .ndo_set_rx_mode = eip_set_multicast_list, |
70 | .ndo_validate_addr = eth_validate_addr, | 70 | .ndo_validate_addr = eth_validate_addr, |
71 | .ndo_set_mac_address = eth_mac_addr, | 71 | .ndo_set_mac_address = eth_mac_addr, |
72 | .ndo_change_mtu = eth_change_mtu, | ||
73 | #ifdef CONFIG_NET_POLL_CONTROLLER | 72 | #ifdef CONFIG_NET_POLL_CONTROLLER |
74 | .ndo_poll_controller = eip_poll, | 73 | .ndo_poll_controller = eip_poll, |
75 | #endif | 74 | #endif |
diff --git a/drivers/net/ethernet/8390/ax88796.c b/drivers/net/ethernet/8390/ax88796.c index 39ca9350d1b2..b0a3b85fc6f8 100644 --- a/drivers/net/ethernet/8390/ax88796.c +++ b/drivers/net/ethernet/8390/ax88796.c | |||
@@ -536,7 +536,6 @@ static const struct net_device_ops ax_netdev_ops = { | |||
536 | .ndo_set_rx_mode = ax_ei_set_multicast_list, | 536 | .ndo_set_rx_mode = ax_ei_set_multicast_list, |
537 | .ndo_validate_addr = eth_validate_addr, | 537 | .ndo_validate_addr = eth_validate_addr, |
538 | .ndo_set_mac_address = eth_mac_addr, | 538 | .ndo_set_mac_address = eth_mac_addr, |
539 | .ndo_change_mtu = eth_change_mtu, | ||
540 | #ifdef CONFIG_NET_POLL_CONTROLLER | 539 | #ifdef CONFIG_NET_POLL_CONTROLLER |
541 | .ndo_poll_controller = ax_ei_poll, | 540 | .ndo_poll_controller = ax_ei_poll, |
542 | #endif | 541 | #endif |
diff --git a/drivers/net/ethernet/8390/axnet_cs.c b/drivers/net/ethernet/8390/axnet_cs.c index 4ea717d68c95..1d84a0544ace 100644 --- a/drivers/net/ethernet/8390/axnet_cs.c +++ b/drivers/net/ethernet/8390/axnet_cs.c | |||
@@ -134,7 +134,6 @@ static const struct net_device_ops axnet_netdev_ops = { | |||
134 | .ndo_tx_timeout = axnet_tx_timeout, | 134 | .ndo_tx_timeout = axnet_tx_timeout, |
135 | .ndo_get_stats = get_stats, | 135 | .ndo_get_stats = get_stats, |
136 | .ndo_set_rx_mode = set_multicast_list, | 136 | .ndo_set_rx_mode = set_multicast_list, |
137 | .ndo_change_mtu = eth_change_mtu, | ||
138 | .ndo_set_mac_address = eth_mac_addr, | 137 | .ndo_set_mac_address = eth_mac_addr, |
139 | .ndo_validate_addr = eth_validate_addr, | 138 | .ndo_validate_addr = eth_validate_addr, |
140 | }; | 139 | }; |
diff --git a/drivers/net/ethernet/8390/etherh.c b/drivers/net/ethernet/8390/etherh.c index d686b9cac29f..11cbf22ad201 100644 --- a/drivers/net/ethernet/8390/etherh.c +++ b/drivers/net/ethernet/8390/etherh.c | |||
@@ -654,7 +654,6 @@ static const struct net_device_ops etherh_netdev_ops = { | |||
654 | .ndo_set_rx_mode = __ei_set_multicast_list, | 654 | .ndo_set_rx_mode = __ei_set_multicast_list, |
655 | .ndo_validate_addr = eth_validate_addr, | 655 | .ndo_validate_addr = eth_validate_addr, |
656 | .ndo_set_mac_address = eth_mac_addr, | 656 | .ndo_set_mac_address = eth_mac_addr, |
657 | .ndo_change_mtu = eth_change_mtu, | ||
658 | #ifdef CONFIG_NET_POLL_CONTROLLER | 657 | #ifdef CONFIG_NET_POLL_CONTROLLER |
659 | .ndo_poll_controller = __ei_poll, | 658 | .ndo_poll_controller = __ei_poll, |
660 | #endif | 659 | #endif |
diff --git a/drivers/net/ethernet/8390/hydra.c b/drivers/net/ethernet/8390/hydra.c index 0fe19d609c2e..8ae249195301 100644 --- a/drivers/net/ethernet/8390/hydra.c +++ b/drivers/net/ethernet/8390/hydra.c | |||
@@ -105,7 +105,6 @@ static const struct net_device_ops hydra_netdev_ops = { | |||
105 | .ndo_set_rx_mode = __ei_set_multicast_list, | 105 | .ndo_set_rx_mode = __ei_set_multicast_list, |
106 | .ndo_validate_addr = eth_validate_addr, | 106 | .ndo_validate_addr = eth_validate_addr, |
107 | .ndo_set_mac_address = eth_mac_addr, | 107 | .ndo_set_mac_address = eth_mac_addr, |
108 | .ndo_change_mtu = eth_change_mtu, | ||
109 | #ifdef CONFIG_NET_POLL_CONTROLLER | 108 | #ifdef CONFIG_NET_POLL_CONTROLLER |
110 | .ndo_poll_controller = __ei_poll, | 109 | .ndo_poll_controller = __ei_poll, |
111 | #endif | 110 | #endif |
diff --git a/drivers/net/ethernet/8390/mac8390.c b/drivers/net/ethernet/8390/mac8390.c index b9283901136e..9497f18eaba0 100644 --- a/drivers/net/ethernet/8390/mac8390.c +++ b/drivers/net/ethernet/8390/mac8390.c | |||
@@ -483,7 +483,6 @@ static const struct net_device_ops mac8390_netdev_ops = { | |||
483 | .ndo_set_rx_mode = __ei_set_multicast_list, | 483 | .ndo_set_rx_mode = __ei_set_multicast_list, |
484 | .ndo_validate_addr = eth_validate_addr, | 484 | .ndo_validate_addr = eth_validate_addr, |
485 | .ndo_set_mac_address = eth_mac_addr, | 485 | .ndo_set_mac_address = eth_mac_addr, |
486 | .ndo_change_mtu = eth_change_mtu, | ||
487 | #ifdef CONFIG_NET_POLL_CONTROLLER | 486 | #ifdef CONFIG_NET_POLL_CONTROLLER |
488 | .ndo_poll_controller = __ei_poll, | 487 | .ndo_poll_controller = __ei_poll, |
489 | #endif | 488 | #endif |
diff --git a/drivers/net/ethernet/8390/mcf8390.c b/drivers/net/ethernet/8390/mcf8390.c index e1c055574a11..4bb967bc879e 100644 --- a/drivers/net/ethernet/8390/mcf8390.c +++ b/drivers/net/ethernet/8390/mcf8390.c | |||
@@ -308,7 +308,6 @@ static const struct net_device_ops mcf8390_netdev_ops = { | |||
308 | .ndo_set_rx_mode = __ei_set_multicast_list, | 308 | .ndo_set_rx_mode = __ei_set_multicast_list, |
309 | .ndo_validate_addr = eth_validate_addr, | 309 | .ndo_validate_addr = eth_validate_addr, |
310 | .ndo_set_mac_address = eth_mac_addr, | 310 | .ndo_set_mac_address = eth_mac_addr, |
311 | .ndo_change_mtu = eth_change_mtu, | ||
312 | #ifdef CONFIG_NET_POLL_CONTROLLER | 311 | #ifdef CONFIG_NET_POLL_CONTROLLER |
313 | .ndo_poll_controller = __ei_poll, | 312 | .ndo_poll_controller = __ei_poll, |
314 | #endif | 313 | #endif |
diff --git a/drivers/net/ethernet/8390/ne2k-pci.c b/drivers/net/ethernet/8390/ne2k-pci.c index 57e97910c728..07355302443d 100644 --- a/drivers/net/ethernet/8390/ne2k-pci.c +++ b/drivers/net/ethernet/8390/ne2k-pci.c | |||
@@ -209,7 +209,6 @@ static const struct net_device_ops ne2k_netdev_ops = { | |||
209 | .ndo_set_rx_mode = ei_set_multicast_list, | 209 | .ndo_set_rx_mode = ei_set_multicast_list, |
210 | .ndo_validate_addr = eth_validate_addr, | 210 | .ndo_validate_addr = eth_validate_addr, |
211 | .ndo_set_mac_address = eth_mac_addr, | 211 | .ndo_set_mac_address = eth_mac_addr, |
212 | .ndo_change_mtu = eth_change_mtu, | ||
213 | #ifdef CONFIG_NET_POLL_CONTROLLER | 212 | #ifdef CONFIG_NET_POLL_CONTROLLER |
214 | .ndo_poll_controller = ei_poll, | 213 | .ndo_poll_controller = ei_poll, |
215 | #endif | 214 | #endif |
diff --git a/drivers/net/ethernet/8390/pcnet_cs.c b/drivers/net/ethernet/8390/pcnet_cs.c index 2f79d29f17f2..63079a6e20d9 100644 --- a/drivers/net/ethernet/8390/pcnet_cs.c +++ b/drivers/net/ethernet/8390/pcnet_cs.c | |||
@@ -227,7 +227,6 @@ static const struct net_device_ops pcnet_netdev_ops = { | |||
227 | .ndo_do_ioctl = ei_ioctl, | 227 | .ndo_do_ioctl = ei_ioctl, |
228 | .ndo_set_rx_mode = ei_set_multicast_list, | 228 | .ndo_set_rx_mode = ei_set_multicast_list, |
229 | .ndo_tx_timeout = ei_tx_timeout, | 229 | .ndo_tx_timeout = ei_tx_timeout, |
230 | .ndo_change_mtu = eth_change_mtu, | ||
231 | .ndo_set_mac_address = eth_mac_addr, | 230 | .ndo_set_mac_address = eth_mac_addr, |
232 | .ndo_validate_addr = eth_validate_addr, | 231 | .ndo_validate_addr = eth_validate_addr, |
233 | #ifdef CONFIG_NET_POLL_CONTROLLER | 232 | #ifdef CONFIG_NET_POLL_CONTROLLER |
diff --git a/drivers/net/ethernet/8390/smc-ultra.c b/drivers/net/ethernet/8390/smc-ultra.c index 139385dcdaa7..364b6514f65f 100644 --- a/drivers/net/ethernet/8390/smc-ultra.c +++ b/drivers/net/ethernet/8390/smc-ultra.c | |||
@@ -195,7 +195,6 @@ static const struct net_device_ops ultra_netdev_ops = { | |||
195 | .ndo_set_rx_mode = ei_set_multicast_list, | 195 | .ndo_set_rx_mode = ei_set_multicast_list, |
196 | .ndo_validate_addr = eth_validate_addr, | 196 | .ndo_validate_addr = eth_validate_addr, |
197 | .ndo_set_mac_address = eth_mac_addr, | 197 | .ndo_set_mac_address = eth_mac_addr, |
198 | .ndo_change_mtu = eth_change_mtu, | ||
199 | #ifdef CONFIG_NET_POLL_CONTROLLER | 198 | #ifdef CONFIG_NET_POLL_CONTROLLER |
200 | .ndo_poll_controller = ultra_poll, | 199 | .ndo_poll_controller = ultra_poll, |
201 | #endif | 200 | #endif |
diff --git a/drivers/net/ethernet/8390/wd.c b/drivers/net/ethernet/8390/wd.c index dd7d816bde52..ad019cbc698f 100644 --- a/drivers/net/ethernet/8390/wd.c +++ b/drivers/net/ethernet/8390/wd.c | |||
@@ -156,7 +156,6 @@ static const struct net_device_ops wd_netdev_ops = { | |||
156 | .ndo_set_rx_mode = ei_set_multicast_list, | 156 | .ndo_set_rx_mode = ei_set_multicast_list, |
157 | .ndo_validate_addr = eth_validate_addr, | 157 | .ndo_validate_addr = eth_validate_addr, |
158 | .ndo_set_mac_address = eth_mac_addr, | 158 | .ndo_set_mac_address = eth_mac_addr, |
159 | .ndo_change_mtu = eth_change_mtu, | ||
160 | #ifdef CONFIG_NET_POLL_CONTROLLER | 159 | #ifdef CONFIG_NET_POLL_CONTROLLER |
161 | .ndo_poll_controller = ei_poll, | 160 | .ndo_poll_controller = ei_poll, |
162 | #endif | 161 | #endif |
diff --git a/drivers/net/ethernet/8390/zorro8390.c b/drivers/net/ethernet/8390/zorro8390.c index 8308728fad05..6d93956b293b 100644 --- a/drivers/net/ethernet/8390/zorro8390.c +++ b/drivers/net/ethernet/8390/zorro8390.c | |||
@@ -284,7 +284,6 @@ static const struct net_device_ops zorro8390_netdev_ops = { | |||
284 | .ndo_set_rx_mode = __ei_set_multicast_list, | 284 | .ndo_set_rx_mode = __ei_set_multicast_list, |
285 | .ndo_validate_addr = eth_validate_addr, | 285 | .ndo_validate_addr = eth_validate_addr, |
286 | .ndo_set_mac_address = eth_mac_addr, | 286 | .ndo_set_mac_address = eth_mac_addr, |
287 | .ndo_change_mtu = eth_change_mtu, | ||
288 | #ifdef CONFIG_NET_POLL_CONTROLLER | 287 | #ifdef CONFIG_NET_POLL_CONTROLLER |
289 | .ndo_poll_controller = __ei_poll, | 288 | .ndo_poll_controller = __ei_poll, |
290 | #endif | 289 | #endif |
diff --git a/drivers/net/ethernet/adaptec/starfire.c b/drivers/net/ethernet/adaptec/starfire.c index 8af2c88d5b33..4a9a16e25666 100644 --- a/drivers/net/ethernet/adaptec/starfire.c +++ b/drivers/net/ethernet/adaptec/starfire.c | |||
@@ -634,7 +634,6 @@ static const struct net_device_ops netdev_ops = { | |||
634 | .ndo_get_stats = get_stats, | 634 | .ndo_get_stats = get_stats, |
635 | .ndo_set_rx_mode = set_rx_mode, | 635 | .ndo_set_rx_mode = set_rx_mode, |
636 | .ndo_do_ioctl = netdev_ioctl, | 636 | .ndo_do_ioctl = netdev_ioctl, |
637 | .ndo_change_mtu = eth_change_mtu, | ||
638 | .ndo_set_mac_address = eth_mac_addr, | 637 | .ndo_set_mac_address = eth_mac_addr, |
639 | .ndo_validate_addr = eth_validate_addr, | 638 | .ndo_validate_addr = eth_validate_addr, |
640 | #ifdef VLAN_SUPPORT | 639 | #ifdef VLAN_SUPPORT |
diff --git a/drivers/net/ethernet/adi/bfin_mac.c b/drivers/net/ethernet/adi/bfin_mac.c index 00f9ee3fc3e5..88164529b52a 100644 --- a/drivers/net/ethernet/adi/bfin_mac.c +++ b/drivers/net/ethernet/adi/bfin_mac.c | |||
@@ -1571,7 +1571,6 @@ static const struct net_device_ops bfin_mac_netdev_ops = { | |||
1571 | .ndo_set_rx_mode = bfin_mac_set_multicast_list, | 1571 | .ndo_set_rx_mode = bfin_mac_set_multicast_list, |
1572 | .ndo_do_ioctl = bfin_mac_ioctl, | 1572 | .ndo_do_ioctl = bfin_mac_ioctl, |
1573 | .ndo_validate_addr = eth_validate_addr, | 1573 | .ndo_validate_addr = eth_validate_addr, |
1574 | .ndo_change_mtu = eth_change_mtu, | ||
1575 | #ifdef CONFIG_NET_POLL_CONTROLLER | 1574 | #ifdef CONFIG_NET_POLL_CONTROLLER |
1576 | .ndo_poll_controller = bfin_mac_poll_controller, | 1575 | .ndo_poll_controller = bfin_mac_poll_controller, |
1577 | #endif | 1576 | #endif |
diff --git a/drivers/net/ethernet/allwinner/sun4i-emac.c b/drivers/net/ethernet/allwinner/sun4i-emac.c index 6ffdff68bfc4..af27f9dbedf2 100644 --- a/drivers/net/ethernet/allwinner/sun4i-emac.c +++ b/drivers/net/ethernet/allwinner/sun4i-emac.c | |||
@@ -773,7 +773,6 @@ static const struct net_device_ops emac_netdev_ops = { | |||
773 | .ndo_tx_timeout = emac_timeout, | 773 | .ndo_tx_timeout = emac_timeout, |
774 | .ndo_set_rx_mode = emac_set_rx_mode, | 774 | .ndo_set_rx_mode = emac_set_rx_mode, |
775 | .ndo_do_ioctl = emac_ioctl, | 775 | .ndo_do_ioctl = emac_ioctl, |
776 | .ndo_change_mtu = eth_change_mtu, | ||
777 | .ndo_validate_addr = eth_validate_addr, | 776 | .ndo_validate_addr = eth_validate_addr, |
778 | .ndo_set_mac_address = emac_set_mac_address, | 777 | .ndo_set_mac_address = emac_set_mac_address, |
779 | #ifdef CONFIG_NET_POLL_CONTROLLER | 778 | #ifdef CONFIG_NET_POLL_CONTROLLER |
diff --git a/drivers/net/ethernet/amd/a2065.c b/drivers/net/ethernet/amd/a2065.c index a83cd1c4ce1d..ee4b94e3cda9 100644 --- a/drivers/net/ethernet/amd/a2065.c +++ b/drivers/net/ethernet/amd/a2065.c | |||
@@ -665,7 +665,6 @@ static const struct net_device_ops lance_netdev_ops = { | |||
665 | .ndo_tx_timeout = lance_tx_timeout, | 665 | .ndo_tx_timeout = lance_tx_timeout, |
666 | .ndo_set_rx_mode = lance_set_multicast, | 666 | .ndo_set_rx_mode = lance_set_multicast, |
667 | .ndo_validate_addr = eth_validate_addr, | 667 | .ndo_validate_addr = eth_validate_addr, |
668 | .ndo_change_mtu = eth_change_mtu, | ||
669 | .ndo_set_mac_address = eth_mac_addr, | 668 | .ndo_set_mac_address = eth_mac_addr, |
670 | }; | 669 | }; |
671 | 670 | ||
diff --git a/drivers/net/ethernet/amd/am79c961a.c b/drivers/net/ethernet/amd/am79c961a.c index fcdf5dda448f..b11e910850f7 100644 --- a/drivers/net/ethernet/amd/am79c961a.c +++ b/drivers/net/ethernet/amd/am79c961a.c | |||
@@ -663,7 +663,6 @@ static const struct net_device_ops am79c961_netdev_ops = { | |||
663 | .ndo_set_rx_mode = am79c961_setmulticastlist, | 663 | .ndo_set_rx_mode = am79c961_setmulticastlist, |
664 | .ndo_tx_timeout = am79c961_timeout, | 664 | .ndo_tx_timeout = am79c961_timeout, |
665 | .ndo_validate_addr = eth_validate_addr, | 665 | .ndo_validate_addr = eth_validate_addr, |
666 | .ndo_change_mtu = eth_change_mtu, | ||
667 | .ndo_set_mac_address = eth_mac_addr, | 666 | .ndo_set_mac_address = eth_mac_addr, |
668 | #ifdef CONFIG_NET_POLL_CONTROLLER | 667 | #ifdef CONFIG_NET_POLL_CONTROLLER |
669 | .ndo_poll_controller = am79c961_poll_controller, | 668 | .ndo_poll_controller = am79c961_poll_controller, |
diff --git a/drivers/net/ethernet/amd/ariadne.c b/drivers/net/ethernet/amd/ariadne.c index 968b7bfac8fc..5fd7b15b0574 100644 --- a/drivers/net/ethernet/amd/ariadne.c +++ b/drivers/net/ethernet/amd/ariadne.c | |||
@@ -706,7 +706,6 @@ static const struct net_device_ops ariadne_netdev_ops = { | |||
706 | .ndo_get_stats = ariadne_get_stats, | 706 | .ndo_get_stats = ariadne_get_stats, |
707 | .ndo_set_rx_mode = set_multicast_list, | 707 | .ndo_set_rx_mode = set_multicast_list, |
708 | .ndo_validate_addr = eth_validate_addr, | 708 | .ndo_validate_addr = eth_validate_addr, |
709 | .ndo_change_mtu = eth_change_mtu, | ||
710 | .ndo_set_mac_address = eth_mac_addr, | 709 | .ndo_set_mac_address = eth_mac_addr, |
711 | }; | 710 | }; |
712 | 711 | ||
diff --git a/drivers/net/ethernet/amd/atarilance.c b/drivers/net/ethernet/amd/atarilance.c index d2bc8e5dcd23..e53ccc3b7d8d 100644 --- a/drivers/net/ethernet/amd/atarilance.c +++ b/drivers/net/ethernet/amd/atarilance.c | |||
@@ -460,7 +460,6 @@ static const struct net_device_ops lance_netdev_ops = { | |||
460 | .ndo_set_mac_address = lance_set_mac_address, | 460 | .ndo_set_mac_address = lance_set_mac_address, |
461 | .ndo_tx_timeout = lance_tx_timeout, | 461 | .ndo_tx_timeout = lance_tx_timeout, |
462 | .ndo_validate_addr = eth_validate_addr, | 462 | .ndo_validate_addr = eth_validate_addr, |
463 | .ndo_change_mtu = eth_change_mtu, | ||
464 | }; | 463 | }; |
465 | 464 | ||
466 | static unsigned long __init lance_probe1( struct net_device *dev, | 465 | static unsigned long __init lance_probe1( struct net_device *dev, |
diff --git a/drivers/net/ethernet/amd/au1000_eth.c b/drivers/net/ethernet/amd/au1000_eth.c index df664187cd82..a3c90fe5de00 100644 --- a/drivers/net/ethernet/amd/au1000_eth.c +++ b/drivers/net/ethernet/amd/au1000_eth.c | |||
@@ -1103,7 +1103,6 @@ static const struct net_device_ops au1000_netdev_ops = { | |||
1103 | .ndo_tx_timeout = au1000_tx_timeout, | 1103 | .ndo_tx_timeout = au1000_tx_timeout, |
1104 | .ndo_set_mac_address = eth_mac_addr, | 1104 | .ndo_set_mac_address = eth_mac_addr, |
1105 | .ndo_validate_addr = eth_validate_addr, | 1105 | .ndo_validate_addr = eth_validate_addr, |
1106 | .ndo_change_mtu = eth_change_mtu, | ||
1107 | }; | 1106 | }; |
1108 | 1107 | ||
1109 | static int au1000_probe(struct platform_device *pdev) | 1108 | static int au1000_probe(struct platform_device *pdev) |
diff --git a/drivers/net/ethernet/amd/declance.c b/drivers/net/ethernet/amd/declance.c index b799c7ac899b..76e5fc7adff5 100644 --- a/drivers/net/ethernet/amd/declance.c +++ b/drivers/net/ethernet/amd/declance.c | |||
@@ -1013,7 +1013,6 @@ static const struct net_device_ops lance_netdev_ops = { | |||
1013 | .ndo_start_xmit = lance_start_xmit, | 1013 | .ndo_start_xmit = lance_start_xmit, |
1014 | .ndo_tx_timeout = lance_tx_timeout, | 1014 | .ndo_tx_timeout = lance_tx_timeout, |
1015 | .ndo_set_rx_mode = lance_set_multicast, | 1015 | .ndo_set_rx_mode = lance_set_multicast, |
1016 | .ndo_change_mtu = eth_change_mtu, | ||
1017 | .ndo_validate_addr = eth_validate_addr, | 1016 | .ndo_validate_addr = eth_validate_addr, |
1018 | .ndo_set_mac_address = eth_mac_addr, | 1017 | .ndo_set_mac_address = eth_mac_addr, |
1019 | }; | 1018 | }; |
diff --git a/drivers/net/ethernet/amd/hplance.c b/drivers/net/ethernet/amd/hplance.c index 6c9de117ffc6..c3dbf1c8a269 100644 --- a/drivers/net/ethernet/amd/hplance.c +++ b/drivers/net/ethernet/amd/hplance.c | |||
@@ -72,7 +72,6 @@ static const struct net_device_ops hplance_netdev_ops = { | |||
72 | .ndo_stop = hplance_close, | 72 | .ndo_stop = hplance_close, |
73 | .ndo_start_xmit = lance_start_xmit, | 73 | .ndo_start_xmit = lance_start_xmit, |
74 | .ndo_set_rx_mode = lance_set_multicast, | 74 | .ndo_set_rx_mode = lance_set_multicast, |
75 | .ndo_change_mtu = eth_change_mtu, | ||
76 | .ndo_validate_addr = eth_validate_addr, | 75 | .ndo_validate_addr = eth_validate_addr, |
77 | .ndo_set_mac_address = eth_mac_addr, | 76 | .ndo_set_mac_address = eth_mac_addr, |
78 | #ifdef CONFIG_NET_POLL_CONTROLLER | 77 | #ifdef CONFIG_NET_POLL_CONTROLLER |
diff --git a/drivers/net/ethernet/amd/lance.c b/drivers/net/ethernet/amd/lance.c index abb1ba228b26..61a641f23149 100644 --- a/drivers/net/ethernet/amd/lance.c +++ b/drivers/net/ethernet/amd/lance.c | |||
@@ -461,7 +461,6 @@ static const struct net_device_ops lance_netdev_ops = { | |||
461 | .ndo_get_stats = lance_get_stats, | 461 | .ndo_get_stats = lance_get_stats, |
462 | .ndo_set_rx_mode = set_multicast_list, | 462 | .ndo_set_rx_mode = set_multicast_list, |
463 | .ndo_tx_timeout = lance_tx_timeout, | 463 | .ndo_tx_timeout = lance_tx_timeout, |
464 | .ndo_change_mtu = eth_change_mtu, | ||
465 | .ndo_set_mac_address = eth_mac_addr, | 464 | .ndo_set_mac_address = eth_mac_addr, |
466 | .ndo_validate_addr = eth_validate_addr, | 465 | .ndo_validate_addr = eth_validate_addr, |
467 | }; | 466 | }; |
diff --git a/drivers/net/ethernet/amd/mvme147.c b/drivers/net/ethernet/amd/mvme147.c index 0660ac5846bb..0a920448522f 100644 --- a/drivers/net/ethernet/amd/mvme147.c +++ b/drivers/net/ethernet/amd/mvme147.c | |||
@@ -62,7 +62,6 @@ static const struct net_device_ops lance_netdev_ops = { | |||
62 | .ndo_start_xmit = lance_start_xmit, | 62 | .ndo_start_xmit = lance_start_xmit, |
63 | .ndo_set_rx_mode = lance_set_multicast, | 63 | .ndo_set_rx_mode = lance_set_multicast, |
64 | .ndo_tx_timeout = lance_tx_timeout, | 64 | .ndo_tx_timeout = lance_tx_timeout, |
65 | .ndo_change_mtu = eth_change_mtu, | ||
66 | .ndo_validate_addr = eth_validate_addr, | 65 | .ndo_validate_addr = eth_validate_addr, |
67 | .ndo_set_mac_address = eth_mac_addr, | 66 | .ndo_set_mac_address = eth_mac_addr, |
68 | }; | 67 | }; |
diff --git a/drivers/net/ethernet/amd/ni65.c b/drivers/net/ethernet/amd/ni65.c index cda53db75f17..5985bf220a8d 100644 --- a/drivers/net/ethernet/amd/ni65.c +++ b/drivers/net/ethernet/amd/ni65.c | |||
@@ -407,7 +407,6 @@ static const struct net_device_ops ni65_netdev_ops = { | |||
407 | .ndo_start_xmit = ni65_send_packet, | 407 | .ndo_start_xmit = ni65_send_packet, |
408 | .ndo_tx_timeout = ni65_timeout, | 408 | .ndo_tx_timeout = ni65_timeout, |
409 | .ndo_set_rx_mode = set_multicast_list, | 409 | .ndo_set_rx_mode = set_multicast_list, |
410 | .ndo_change_mtu = eth_change_mtu, | ||
411 | .ndo_set_mac_address = eth_mac_addr, | 410 | .ndo_set_mac_address = eth_mac_addr, |
412 | .ndo_validate_addr = eth_validate_addr, | 411 | .ndo_validate_addr = eth_validate_addr, |
413 | }; | 412 | }; |
diff --git a/drivers/net/ethernet/amd/nmclan_cs.c b/drivers/net/ethernet/amd/nmclan_cs.c index 2807e181647b..113a3b3cc50c 100644 --- a/drivers/net/ethernet/amd/nmclan_cs.c +++ b/drivers/net/ethernet/amd/nmclan_cs.c | |||
@@ -427,7 +427,6 @@ static const struct net_device_ops mace_netdev_ops = { | |||
427 | .ndo_set_config = mace_config, | 427 | .ndo_set_config = mace_config, |
428 | .ndo_get_stats = mace_get_stats, | 428 | .ndo_get_stats = mace_get_stats, |
429 | .ndo_set_rx_mode = set_multicast_list, | 429 | .ndo_set_rx_mode = set_multicast_list, |
430 | .ndo_change_mtu = eth_change_mtu, | ||
431 | .ndo_set_mac_address = eth_mac_addr, | 430 | .ndo_set_mac_address = eth_mac_addr, |
432 | .ndo_validate_addr = eth_validate_addr, | 431 | .ndo_validate_addr = eth_validate_addr, |
433 | }; | 432 | }; |
diff --git a/drivers/net/ethernet/amd/pcnet32.c b/drivers/net/ethernet/amd/pcnet32.c index c22bf52d3320..adc7ab99a2f6 100644 --- a/drivers/net/ethernet/amd/pcnet32.c +++ b/drivers/net/ethernet/amd/pcnet32.c | |||
@@ -1527,7 +1527,6 @@ static const struct net_device_ops pcnet32_netdev_ops = { | |||
1527 | .ndo_get_stats = pcnet32_get_stats, | 1527 | .ndo_get_stats = pcnet32_get_stats, |
1528 | .ndo_set_rx_mode = pcnet32_set_multicast_list, | 1528 | .ndo_set_rx_mode = pcnet32_set_multicast_list, |
1529 | .ndo_do_ioctl = pcnet32_ioctl, | 1529 | .ndo_do_ioctl = pcnet32_ioctl, |
1530 | .ndo_change_mtu = eth_change_mtu, | ||
1531 | .ndo_set_mac_address = eth_mac_addr, | 1530 | .ndo_set_mac_address = eth_mac_addr, |
1532 | .ndo_validate_addr = eth_validate_addr, | 1531 | .ndo_validate_addr = eth_validate_addr, |
1533 | #ifdef CONFIG_NET_POLL_CONTROLLER | 1532 | #ifdef CONFIG_NET_POLL_CONTROLLER |
diff --git a/drivers/net/ethernet/amd/sun3lance.c b/drivers/net/ethernet/amd/sun3lance.c index 3d8c6b2cdea4..12bb4f1489fc 100644 --- a/drivers/net/ethernet/amd/sun3lance.c +++ b/drivers/net/ethernet/amd/sun3lance.c | |||
@@ -299,7 +299,6 @@ static const struct net_device_ops lance_netdev_ops = { | |||
299 | .ndo_start_xmit = lance_start_xmit, | 299 | .ndo_start_xmit = lance_start_xmit, |
300 | .ndo_set_rx_mode = set_multicast_list, | 300 | .ndo_set_rx_mode = set_multicast_list, |
301 | .ndo_set_mac_address = NULL, | 301 | .ndo_set_mac_address = NULL, |
302 | .ndo_change_mtu = eth_change_mtu, | ||
303 | .ndo_validate_addr = eth_validate_addr, | 302 | .ndo_validate_addr = eth_validate_addr, |
304 | }; | 303 | }; |
305 | 304 | ||
diff --git a/drivers/net/ethernet/amd/sunlance.c b/drivers/net/ethernet/amd/sunlance.c index 9b56b40259dc..291ca5187f12 100644 --- a/drivers/net/ethernet/amd/sunlance.c +++ b/drivers/net/ethernet/amd/sunlance.c | |||
@@ -1294,7 +1294,6 @@ static const struct net_device_ops sparc_lance_ops = { | |||
1294 | .ndo_start_xmit = lance_start_xmit, | 1294 | .ndo_start_xmit = lance_start_xmit, |
1295 | .ndo_set_rx_mode = lance_set_multicast, | 1295 | .ndo_set_rx_mode = lance_set_multicast, |
1296 | .ndo_tx_timeout = lance_tx_timeout, | 1296 | .ndo_tx_timeout = lance_tx_timeout, |
1297 | .ndo_change_mtu = eth_change_mtu, | ||
1298 | .ndo_set_mac_address = eth_mac_addr, | 1297 | .ndo_set_mac_address = eth_mac_addr, |
1299 | .ndo_validate_addr = eth_validate_addr, | 1298 | .ndo_validate_addr = eth_validate_addr, |
1300 | }; | 1299 | }; |
diff --git a/drivers/net/ethernet/apm/xgene/xgene_enet_main.c b/drivers/net/ethernet/apm/xgene/xgene_enet_main.c index f75d9556152f..3fc7b0db952b 100644 --- a/drivers/net/ethernet/apm/xgene/xgene_enet_main.c +++ b/drivers/net/ethernet/apm/xgene/xgene_enet_main.c | |||
@@ -1252,7 +1252,6 @@ static const struct net_device_ops xgene_ndev_ops = { | |||
1252 | .ndo_start_xmit = xgene_enet_start_xmit, | 1252 | .ndo_start_xmit = xgene_enet_start_xmit, |
1253 | .ndo_tx_timeout = xgene_enet_timeout, | 1253 | .ndo_tx_timeout = xgene_enet_timeout, |
1254 | .ndo_get_stats64 = xgene_enet_get_stats64, | 1254 | .ndo_get_stats64 = xgene_enet_get_stats64, |
1255 | .ndo_change_mtu = eth_change_mtu, | ||
1256 | .ndo_set_mac_address = xgene_enet_set_mac_address, | 1255 | .ndo_set_mac_address = xgene_enet_set_mac_address, |
1257 | }; | 1256 | }; |
1258 | 1257 | ||
diff --git a/drivers/net/ethernet/apple/bmac.c b/drivers/net/ethernet/apple/bmac.c index a65d7a60f116..2b2d87089987 100644 --- a/drivers/net/ethernet/apple/bmac.c +++ b/drivers/net/ethernet/apple/bmac.c | |||
@@ -1237,7 +1237,6 @@ static const struct net_device_ops bmac_netdev_ops = { | |||
1237 | .ndo_start_xmit = bmac_output, | 1237 | .ndo_start_xmit = bmac_output, |
1238 | .ndo_set_rx_mode = bmac_set_multicast, | 1238 | .ndo_set_rx_mode = bmac_set_multicast, |
1239 | .ndo_set_mac_address = bmac_set_address, | 1239 | .ndo_set_mac_address = bmac_set_address, |
1240 | .ndo_change_mtu = eth_change_mtu, | ||
1241 | .ndo_validate_addr = eth_validate_addr, | 1240 | .ndo_validate_addr = eth_validate_addr, |
1242 | }; | 1241 | }; |
1243 | 1242 | ||
diff --git a/drivers/net/ethernet/apple/mace.c b/drivers/net/ethernet/apple/mace.c index e58a7c73766e..96dd5300e0e5 100644 --- a/drivers/net/ethernet/apple/mace.c +++ b/drivers/net/ethernet/apple/mace.c | |||
@@ -102,7 +102,6 @@ static const struct net_device_ops mace_netdev_ops = { | |||
102 | .ndo_start_xmit = mace_xmit_start, | 102 | .ndo_start_xmit = mace_xmit_start, |
103 | .ndo_set_rx_mode = mace_set_multicast, | 103 | .ndo_set_rx_mode = mace_set_multicast, |
104 | .ndo_set_mac_address = mace_set_address, | 104 | .ndo_set_mac_address = mace_set_address, |
105 | .ndo_change_mtu = eth_change_mtu, | ||
106 | .ndo_validate_addr = eth_validate_addr, | 105 | .ndo_validate_addr = eth_validate_addr, |
107 | }; | 106 | }; |
108 | 107 | ||
diff --git a/drivers/net/ethernet/apple/macmace.c b/drivers/net/ethernet/apple/macmace.c index 89914ca17a49..857df9c45f04 100644 --- a/drivers/net/ethernet/apple/macmace.c +++ b/drivers/net/ethernet/apple/macmace.c | |||
@@ -186,7 +186,6 @@ static const struct net_device_ops mace_netdev_ops = { | |||
186 | .ndo_tx_timeout = mace_tx_timeout, | 186 | .ndo_tx_timeout = mace_tx_timeout, |
187 | .ndo_set_rx_mode = mace_set_multicast, | 187 | .ndo_set_rx_mode = mace_set_multicast, |
188 | .ndo_set_mac_address = mace_set_address, | 188 | .ndo_set_mac_address = mace_set_address, |
189 | .ndo_change_mtu = eth_change_mtu, | ||
190 | .ndo_validate_addr = eth_validate_addr, | 189 | .ndo_validate_addr = eth_validate_addr, |
191 | }; | 190 | }; |
192 | 191 | ||
diff --git a/drivers/net/ethernet/aurora/nb8800.c b/drivers/net/ethernet/aurora/nb8800.c index b047fd607b83..453dc0967125 100644 --- a/drivers/net/ethernet/aurora/nb8800.c +++ b/drivers/net/ethernet/aurora/nb8800.c | |||
@@ -1032,7 +1032,6 @@ static const struct net_device_ops nb8800_netdev_ops = { | |||
1032 | .ndo_set_mac_address = nb8800_set_mac_address, | 1032 | .ndo_set_mac_address = nb8800_set_mac_address, |
1033 | .ndo_set_rx_mode = nb8800_set_rx_mode, | 1033 | .ndo_set_rx_mode = nb8800_set_rx_mode, |
1034 | .ndo_do_ioctl = nb8800_ioctl, | 1034 | .ndo_do_ioctl = nb8800_ioctl, |
1035 | .ndo_change_mtu = eth_change_mtu, | ||
1036 | .ndo_validate_addr = eth_validate_addr, | 1035 | .ndo_validate_addr = eth_validate_addr, |
1037 | }; | 1036 | }; |
1038 | 1037 | ||
diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c index b32444a3ed79..20e72044b765 100644 --- a/drivers/net/ethernet/cadence/macb.c +++ b/drivers/net/ethernet/cadence/macb.c | |||
@@ -2793,7 +2793,6 @@ static const struct net_device_ops at91ether_netdev_ops = { | |||
2793 | .ndo_set_mac_address = eth_mac_addr, | 2793 | .ndo_set_mac_address = eth_mac_addr, |
2794 | .ndo_do_ioctl = macb_ioctl, | 2794 | .ndo_do_ioctl = macb_ioctl, |
2795 | .ndo_validate_addr = eth_validate_addr, | 2795 | .ndo_validate_addr = eth_validate_addr, |
2796 | .ndo_change_mtu = eth_change_mtu, | ||
2797 | #ifdef CONFIG_NET_POLL_CONTROLLER | 2796 | #ifdef CONFIG_NET_POLL_CONTROLLER |
2798 | .ndo_poll_controller = at91ether_poll_controller, | 2797 | .ndo_poll_controller = at91ether_poll_controller, |
2799 | #endif | 2798 | #endif |
diff --git a/drivers/net/ethernet/cirrus/cs89x0.c b/drivers/net/ethernet/cirrus/cs89x0.c index c363b58552e9..3647b28e8de0 100644 --- a/drivers/net/ethernet/cirrus/cs89x0.c +++ b/drivers/net/ethernet/cirrus/cs89x0.c | |||
@@ -1266,7 +1266,6 @@ static const struct net_device_ops net_ops = { | |||
1266 | #ifdef CONFIG_NET_POLL_CONTROLLER | 1266 | #ifdef CONFIG_NET_POLL_CONTROLLER |
1267 | .ndo_poll_controller = net_poll_controller, | 1267 | .ndo_poll_controller = net_poll_controller, |
1268 | #endif | 1268 | #endif |
1269 | .ndo_change_mtu = eth_change_mtu, | ||
1270 | .ndo_validate_addr = eth_validate_addr, | 1269 | .ndo_validate_addr = eth_validate_addr, |
1271 | }; | 1270 | }; |
1272 | 1271 | ||
diff --git a/drivers/net/ethernet/cirrus/ep93xx_eth.c b/drivers/net/ethernet/cirrus/ep93xx_eth.c index de9f7c97d916..9119af088821 100644 --- a/drivers/net/ethernet/cirrus/ep93xx_eth.c +++ b/drivers/net/ethernet/cirrus/ep93xx_eth.c | |||
@@ -749,7 +749,6 @@ static const struct net_device_ops ep93xx_netdev_ops = { | |||
749 | .ndo_start_xmit = ep93xx_xmit, | 749 | .ndo_start_xmit = ep93xx_xmit, |
750 | .ndo_do_ioctl = ep93xx_ioctl, | 750 | .ndo_do_ioctl = ep93xx_ioctl, |
751 | .ndo_validate_addr = eth_validate_addr, | 751 | .ndo_validate_addr = eth_validate_addr, |
752 | .ndo_change_mtu = eth_change_mtu, | ||
753 | .ndo_set_mac_address = eth_mac_addr, | 752 | .ndo_set_mac_address = eth_mac_addr, |
754 | }; | 753 | }; |
755 | 754 | ||
diff --git a/drivers/net/ethernet/cirrus/mac89x0.c b/drivers/net/ethernet/cirrus/mac89x0.c index 07719676c305..b600fbbbf679 100644 --- a/drivers/net/ethernet/cirrus/mac89x0.c +++ b/drivers/net/ethernet/cirrus/mac89x0.c | |||
@@ -172,7 +172,6 @@ static const struct net_device_ops mac89x0_netdev_ops = { | |||
172 | .ndo_set_rx_mode = set_multicast_list, | 172 | .ndo_set_rx_mode = set_multicast_list, |
173 | .ndo_set_mac_address = set_mac_address, | 173 | .ndo_set_mac_address = set_mac_address, |
174 | .ndo_validate_addr = eth_validate_addr, | 174 | .ndo_validate_addr = eth_validate_addr, |
175 | .ndo_change_mtu = eth_change_mtu, | ||
176 | }; | 175 | }; |
177 | 176 | ||
178 | /* Probe for the CS8900 card in slot E. We won't bother looking | 177 | /* Probe for the CS8900 card in slot E. We won't bother looking |
diff --git a/drivers/net/ethernet/davicom/dm9000.c b/drivers/net/ethernet/davicom/dm9000.c index f45385f5c6e5..f1a81c52afe3 100644 --- a/drivers/net/ethernet/davicom/dm9000.c +++ b/drivers/net/ethernet/davicom/dm9000.c | |||
@@ -1382,7 +1382,6 @@ static const struct net_device_ops dm9000_netdev_ops = { | |||
1382 | .ndo_tx_timeout = dm9000_timeout, | 1382 | .ndo_tx_timeout = dm9000_timeout, |
1383 | .ndo_set_rx_mode = dm9000_hash_table, | 1383 | .ndo_set_rx_mode = dm9000_hash_table, |
1384 | .ndo_do_ioctl = dm9000_ioctl, | 1384 | .ndo_do_ioctl = dm9000_ioctl, |
1385 | .ndo_change_mtu = eth_change_mtu, | ||
1386 | .ndo_set_features = dm9000_set_features, | 1385 | .ndo_set_features = dm9000_set_features, |
1387 | .ndo_validate_addr = eth_validate_addr, | 1386 | .ndo_validate_addr = eth_validate_addr, |
1388 | .ndo_set_mac_address = eth_mac_addr, | 1387 | .ndo_set_mac_address = eth_mac_addr, |
diff --git a/drivers/net/ethernet/dec/tulip/de2104x.c b/drivers/net/ethernet/dec/tulip/de2104x.c index cadcee645f74..90c573b8ccaf 100644 --- a/drivers/net/ethernet/dec/tulip/de2104x.c +++ b/drivers/net/ethernet/dec/tulip/de2104x.c | |||
@@ -1956,7 +1956,6 @@ static const struct net_device_ops de_netdev_ops = { | |||
1956 | .ndo_start_xmit = de_start_xmit, | 1956 | .ndo_start_xmit = de_start_xmit, |
1957 | .ndo_get_stats = de_get_stats, | 1957 | .ndo_get_stats = de_get_stats, |
1958 | .ndo_tx_timeout = de_tx_timeout, | 1958 | .ndo_tx_timeout = de_tx_timeout, |
1959 | .ndo_change_mtu = eth_change_mtu, | ||
1960 | .ndo_set_mac_address = eth_mac_addr, | 1959 | .ndo_set_mac_address = eth_mac_addr, |
1961 | .ndo_validate_addr = eth_validate_addr, | 1960 | .ndo_validate_addr = eth_validate_addr, |
1962 | }; | 1961 | }; |
diff --git a/drivers/net/ethernet/dec/tulip/de4x5.c b/drivers/net/ethernet/dec/tulip/de4x5.c index 6620fc861c47..51fda3a6b13f 100644 --- a/drivers/net/ethernet/dec/tulip/de4x5.c +++ b/drivers/net/ethernet/dec/tulip/de4x5.c | |||
@@ -1085,7 +1085,6 @@ static const struct net_device_ops de4x5_netdev_ops = { | |||
1085 | .ndo_get_stats = de4x5_get_stats, | 1085 | .ndo_get_stats = de4x5_get_stats, |
1086 | .ndo_set_rx_mode = set_multicast_list, | 1086 | .ndo_set_rx_mode = set_multicast_list, |
1087 | .ndo_do_ioctl = de4x5_ioctl, | 1087 | .ndo_do_ioctl = de4x5_ioctl, |
1088 | .ndo_change_mtu = eth_change_mtu, | ||
1089 | .ndo_set_mac_address= eth_mac_addr, | 1088 | .ndo_set_mac_address= eth_mac_addr, |
1090 | .ndo_validate_addr = eth_validate_addr, | 1089 | .ndo_validate_addr = eth_validate_addr, |
1091 | }; | 1090 | }; |
diff --git a/drivers/net/ethernet/dec/tulip/dmfe.c b/drivers/net/ethernet/dec/tulip/dmfe.c index 8ed0fd8b1dda..df4994919456 100644 --- a/drivers/net/ethernet/dec/tulip/dmfe.c +++ b/drivers/net/ethernet/dec/tulip/dmfe.c | |||
@@ -352,7 +352,6 @@ static const struct net_device_ops netdev_ops = { | |||
352 | .ndo_stop = dmfe_stop, | 352 | .ndo_stop = dmfe_stop, |
353 | .ndo_start_xmit = dmfe_start_xmit, | 353 | .ndo_start_xmit = dmfe_start_xmit, |
354 | .ndo_set_rx_mode = dmfe_set_filter_mode, | 354 | .ndo_set_rx_mode = dmfe_set_filter_mode, |
355 | .ndo_change_mtu = eth_change_mtu, | ||
356 | .ndo_set_mac_address = eth_mac_addr, | 355 | .ndo_set_mac_address = eth_mac_addr, |
357 | .ndo_validate_addr = eth_validate_addr, | 356 | .ndo_validate_addr = eth_validate_addr, |
358 | #ifdef CONFIG_NET_POLL_CONTROLLER | 357 | #ifdef CONFIG_NET_POLL_CONTROLLER |
diff --git a/drivers/net/ethernet/dec/tulip/tulip_core.c b/drivers/net/ethernet/dec/tulip/tulip_core.c index bbde90bc74fe..5f1377449b8f 100644 --- a/drivers/net/ethernet/dec/tulip/tulip_core.c +++ b/drivers/net/ethernet/dec/tulip/tulip_core.c | |||
@@ -1282,7 +1282,6 @@ static const struct net_device_ops tulip_netdev_ops = { | |||
1282 | .ndo_get_stats = tulip_get_stats, | 1282 | .ndo_get_stats = tulip_get_stats, |
1283 | .ndo_do_ioctl = private_ioctl, | 1283 | .ndo_do_ioctl = private_ioctl, |
1284 | .ndo_set_rx_mode = set_rx_mode, | 1284 | .ndo_set_rx_mode = set_rx_mode, |
1285 | .ndo_change_mtu = eth_change_mtu, | ||
1286 | .ndo_set_mac_address = eth_mac_addr, | 1285 | .ndo_set_mac_address = eth_mac_addr, |
1287 | .ndo_validate_addr = eth_validate_addr, | 1286 | .ndo_validate_addr = eth_validate_addr, |
1288 | #ifdef CONFIG_NET_POLL_CONTROLLER | 1287 | #ifdef CONFIG_NET_POLL_CONTROLLER |
diff --git a/drivers/net/ethernet/dec/tulip/uli526x.c b/drivers/net/ethernet/dec/tulip/uli526x.c index e750b5ddc0fb..e1c4133b8787 100644 --- a/drivers/net/ethernet/dec/tulip/uli526x.c +++ b/drivers/net/ethernet/dec/tulip/uli526x.c | |||
@@ -269,7 +269,6 @@ static const struct net_device_ops netdev_ops = { | |||
269 | .ndo_stop = uli526x_stop, | 269 | .ndo_stop = uli526x_stop, |
270 | .ndo_start_xmit = uli526x_start_xmit, | 270 | .ndo_start_xmit = uli526x_start_xmit, |
271 | .ndo_set_rx_mode = uli526x_set_filter_mode, | 271 | .ndo_set_rx_mode = uli526x_set_filter_mode, |
272 | .ndo_change_mtu = eth_change_mtu, | ||
273 | .ndo_set_mac_address = eth_mac_addr, | 272 | .ndo_set_mac_address = eth_mac_addr, |
274 | .ndo_validate_addr = eth_validate_addr, | 273 | .ndo_validate_addr = eth_validate_addr, |
275 | #ifdef CONFIG_NET_POLL_CONTROLLER | 274 | #ifdef CONFIG_NET_POLL_CONTROLLER |
diff --git a/drivers/net/ethernet/dec/tulip/winbond-840.c b/drivers/net/ethernet/dec/tulip/winbond-840.c index 1f62b9423851..feda96d585e7 100644 --- a/drivers/net/ethernet/dec/tulip/winbond-840.c +++ b/drivers/net/ethernet/dec/tulip/winbond-840.c | |||
@@ -353,7 +353,6 @@ static const struct net_device_ops netdev_ops = { | |||
353 | .ndo_set_rx_mode = set_rx_mode, | 353 | .ndo_set_rx_mode = set_rx_mode, |
354 | .ndo_do_ioctl = netdev_ioctl, | 354 | .ndo_do_ioctl = netdev_ioctl, |
355 | .ndo_tx_timeout = tx_timeout, | 355 | .ndo_tx_timeout = tx_timeout, |
356 | .ndo_change_mtu = eth_change_mtu, | ||
357 | .ndo_set_mac_address = eth_mac_addr, | 356 | .ndo_set_mac_address = eth_mac_addr, |
358 | .ndo_validate_addr = eth_validate_addr, | 357 | .ndo_validate_addr = eth_validate_addr, |
359 | }; | 358 | }; |
diff --git a/drivers/net/ethernet/dec/tulip/xircom_cb.c b/drivers/net/ethernet/dec/tulip/xircom_cb.c index 0e721cedfa67..19e4ea15b504 100644 --- a/drivers/net/ethernet/dec/tulip/xircom_cb.c +++ b/drivers/net/ethernet/dec/tulip/xircom_cb.c | |||
@@ -174,7 +174,6 @@ static const struct net_device_ops netdev_ops = { | |||
174 | .ndo_open = xircom_open, | 174 | .ndo_open = xircom_open, |
175 | .ndo_stop = xircom_close, | 175 | .ndo_stop = xircom_close, |
176 | .ndo_start_xmit = xircom_start_xmit, | 176 | .ndo_start_xmit = xircom_start_xmit, |
177 | .ndo_change_mtu = eth_change_mtu, | ||
178 | .ndo_set_mac_address = eth_mac_addr, | 177 | .ndo_set_mac_address = eth_mac_addr, |
179 | .ndo_validate_addr = eth_validate_addr, | 178 | .ndo_validate_addr = eth_validate_addr, |
180 | #ifdef CONFIG_NET_POLL_CONTROLLER | 179 | #ifdef CONFIG_NET_POLL_CONTROLLER |
diff --git a/drivers/net/ethernet/dnet.c b/drivers/net/ethernet/dnet.c index c3b64cdd0dec..2a17c59f69f9 100644 --- a/drivers/net/ethernet/dnet.c +++ b/drivers/net/ethernet/dnet.c | |||
@@ -767,7 +767,6 @@ static const struct net_device_ops dnet_netdev_ops = { | |||
767 | .ndo_do_ioctl = dnet_ioctl, | 767 | .ndo_do_ioctl = dnet_ioctl, |
768 | .ndo_set_mac_address = eth_mac_addr, | 768 | .ndo_set_mac_address = eth_mac_addr, |
769 | .ndo_validate_addr = eth_validate_addr, | 769 | .ndo_validate_addr = eth_validate_addr, |
770 | .ndo_change_mtu = eth_change_mtu, | ||
771 | }; | 770 | }; |
772 | 771 | ||
773 | static int dnet_probe(struct platform_device *pdev) | 772 | static int dnet_probe(struct platform_device *pdev) |
diff --git a/drivers/net/ethernet/ec_bhf.c b/drivers/net/ethernet/ec_bhf.c index f7b42483921c..57650953ff83 100644 --- a/drivers/net/ethernet/ec_bhf.c +++ b/drivers/net/ethernet/ec_bhf.c | |||
@@ -482,7 +482,6 @@ static const struct net_device_ops ec_bhf_netdev_ops = { | |||
482 | .ndo_open = ec_bhf_open, | 482 | .ndo_open = ec_bhf_open, |
483 | .ndo_stop = ec_bhf_stop, | 483 | .ndo_stop = ec_bhf_stop, |
484 | .ndo_get_stats64 = ec_bhf_get_stats, | 484 | .ndo_get_stats64 = ec_bhf_get_stats, |
485 | .ndo_change_mtu = eth_change_mtu, | ||
486 | .ndo_validate_addr = eth_validate_addr, | 485 | .ndo_validate_addr = eth_validate_addr, |
487 | .ndo_set_mac_address = eth_mac_addr | 486 | .ndo_set_mac_address = eth_mac_addr |
488 | }; | 487 | }; |
diff --git a/drivers/net/ethernet/fealnx.c b/drivers/net/ethernet/fealnx.c index c08bd763172a..6967b287b6e7 100644 --- a/drivers/net/ethernet/fealnx.c +++ b/drivers/net/ethernet/fealnx.c | |||
@@ -472,7 +472,6 @@ static const struct net_device_ops netdev_ops = { | |||
472 | .ndo_set_rx_mode = set_rx_mode, | 472 | .ndo_set_rx_mode = set_rx_mode, |
473 | .ndo_do_ioctl = mii_ioctl, | 473 | .ndo_do_ioctl = mii_ioctl, |
474 | .ndo_tx_timeout = fealnx_tx_timeout, | 474 | .ndo_tx_timeout = fealnx_tx_timeout, |
475 | .ndo_change_mtu = eth_change_mtu, | ||
476 | .ndo_set_mac_address = eth_mac_addr, | 475 | .ndo_set_mac_address = eth_mac_addr, |
477 | .ndo_validate_addr = eth_validate_addr, | 476 | .ndo_validate_addr = eth_validate_addr, |
478 | }; | 477 | }; |
diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c index 48a033e64423..4ce8179aa4ff 100644 --- a/drivers/net/ethernet/freescale/fec_main.c +++ b/drivers/net/ethernet/freescale/fec_main.c | |||
@@ -3055,7 +3055,6 @@ static const struct net_device_ops fec_netdev_ops = { | |||
3055 | .ndo_stop = fec_enet_close, | 3055 | .ndo_stop = fec_enet_close, |
3056 | .ndo_start_xmit = fec_enet_start_xmit, | 3056 | .ndo_start_xmit = fec_enet_start_xmit, |
3057 | .ndo_set_rx_mode = set_multicast_list, | 3057 | .ndo_set_rx_mode = set_multicast_list, |
3058 | .ndo_change_mtu = eth_change_mtu, | ||
3059 | .ndo_validate_addr = eth_validate_addr, | 3058 | .ndo_validate_addr = eth_validate_addr, |
3060 | .ndo_tx_timeout = fec_timeout, | 3059 | .ndo_tx_timeout = fec_timeout, |
3061 | .ndo_set_mac_address = fec_set_mac_address, | 3060 | .ndo_set_mac_address = fec_set_mac_address, |
diff --git a/drivers/net/ethernet/freescale/fec_mpc52xx.c b/drivers/net/ethernet/freescale/fec_mpc52xx.c index 446ae9d60c71..aa8cf5d2a53c 100644 --- a/drivers/net/ethernet/freescale/fec_mpc52xx.c +++ b/drivers/net/ethernet/freescale/fec_mpc52xx.c | |||
@@ -802,7 +802,6 @@ static const struct net_device_ops mpc52xx_fec_netdev_ops = { | |||
802 | .ndo_set_mac_address = mpc52xx_fec_set_mac_address, | 802 | .ndo_set_mac_address = mpc52xx_fec_set_mac_address, |
803 | .ndo_validate_addr = eth_validate_addr, | 803 | .ndo_validate_addr = eth_validate_addr, |
804 | .ndo_do_ioctl = mpc52xx_fec_ioctl, | 804 | .ndo_do_ioctl = mpc52xx_fec_ioctl, |
805 | .ndo_change_mtu = eth_change_mtu, | ||
806 | .ndo_tx_timeout = mpc52xx_fec_tx_timeout, | 805 | .ndo_tx_timeout = mpc52xx_fec_tx_timeout, |
807 | .ndo_get_stats = mpc52xx_fec_get_stats, | 806 | .ndo_get_stats = mpc52xx_fec_get_stats, |
808 | #ifdef CONFIG_NET_POLL_CONTROLLER | 807 | #ifdef CONFIG_NET_POLL_CONTROLLER |
diff --git a/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c b/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c index dc120c148d97..925d1bca6a26 100644 --- a/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c +++ b/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c | |||
@@ -912,7 +912,6 @@ static const struct net_device_ops fs_enet_netdev_ops = { | |||
912 | .ndo_do_ioctl = fs_ioctl, | 912 | .ndo_do_ioctl = fs_ioctl, |
913 | .ndo_validate_addr = eth_validate_addr, | 913 | .ndo_validate_addr = eth_validate_addr, |
914 | .ndo_set_mac_address = eth_mac_addr, | 914 | .ndo_set_mac_address = eth_mac_addr, |
915 | .ndo_change_mtu = eth_change_mtu, | ||
916 | #ifdef CONFIG_NET_POLL_CONTROLLER | 915 | #ifdef CONFIG_NET_POLL_CONTROLLER |
917 | .ndo_poll_controller = fs_enet_netpoll, | 916 | .ndo_poll_controller = fs_enet_netpoll, |
918 | #endif | 917 | #endif |
diff --git a/drivers/net/ethernet/freescale/ucc_geth.c b/drivers/net/ethernet/freescale/ucc_geth.c index 186ef8f16c80..786182480a73 100644 --- a/drivers/net/ethernet/freescale/ucc_geth.c +++ b/drivers/net/ethernet/freescale/ucc_geth.c | |||
@@ -3681,7 +3681,6 @@ static const struct net_device_ops ucc_geth_netdev_ops = { | |||
3681 | .ndo_start_xmit = ucc_geth_start_xmit, | 3681 | .ndo_start_xmit = ucc_geth_start_xmit, |
3682 | .ndo_validate_addr = eth_validate_addr, | 3682 | .ndo_validate_addr = eth_validate_addr, |
3683 | .ndo_set_mac_address = ucc_geth_set_mac_addr, | 3683 | .ndo_set_mac_address = ucc_geth_set_mac_addr, |
3684 | .ndo_change_mtu = eth_change_mtu, | ||
3685 | .ndo_set_rx_mode = ucc_geth_set_multi, | 3684 | .ndo_set_rx_mode = ucc_geth_set_multi, |
3686 | .ndo_tx_timeout = ucc_geth_timeout, | 3685 | .ndo_tx_timeout = ucc_geth_timeout, |
3687 | .ndo_do_ioctl = ucc_geth_ioctl, | 3686 | .ndo_do_ioctl = ucc_geth_ioctl, |
diff --git a/drivers/net/ethernet/fujitsu/fmvj18x_cs.c b/drivers/net/ethernet/fujitsu/fmvj18x_cs.c index 399cfd217288..51c4abc51bf4 100644 --- a/drivers/net/ethernet/fujitsu/fmvj18x_cs.c +++ b/drivers/net/ethernet/fujitsu/fmvj18x_cs.c | |||
@@ -225,7 +225,6 @@ static const struct net_device_ops fjn_netdev_ops = { | |||
225 | .ndo_tx_timeout = fjn_tx_timeout, | 225 | .ndo_tx_timeout = fjn_tx_timeout, |
226 | .ndo_set_config = fjn_config, | 226 | .ndo_set_config = fjn_config, |
227 | .ndo_set_rx_mode = set_rx_mode, | 227 | .ndo_set_rx_mode = set_rx_mode, |
228 | .ndo_change_mtu = eth_change_mtu, | ||
229 | .ndo_set_mac_address = eth_mac_addr, | 228 | .ndo_set_mac_address = eth_mac_addr, |
230 | .ndo_validate_addr = eth_validate_addr, | 229 | .ndo_validate_addr = eth_validate_addr, |
231 | }; | 230 | }; |
diff --git a/drivers/net/ethernet/hisilicon/hip04_eth.c b/drivers/net/ethernet/hisilicon/hip04_eth.c index 39778892b3b3..3c99ca420f57 100644 --- a/drivers/net/ethernet/hisilicon/hip04_eth.c +++ b/drivers/net/ethernet/hisilicon/hip04_eth.c | |||
@@ -769,7 +769,6 @@ static const struct net_device_ops hip04_netdev_ops = { | |||
769 | .ndo_set_mac_address = hip04_set_mac_address, | 769 | .ndo_set_mac_address = hip04_set_mac_address, |
770 | .ndo_tx_timeout = hip04_timeout, | 770 | .ndo_tx_timeout = hip04_timeout, |
771 | .ndo_validate_addr = eth_validate_addr, | 771 | .ndo_validate_addr = eth_validate_addr, |
772 | .ndo_change_mtu = eth_change_mtu, | ||
773 | }; | 772 | }; |
774 | 773 | ||
775 | static int hip04_alloc_ring(struct net_device *ndev, struct device *d) | 774 | static int hip04_alloc_ring(struct net_device *ndev, struct device *d) |
diff --git a/drivers/net/ethernet/hisilicon/hisi_femac.c b/drivers/net/ethernet/hisilicon/hisi_femac.c index ced185962ef8..49863068c59e 100644 --- a/drivers/net/ethernet/hisilicon/hisi_femac.c +++ b/drivers/net/ethernet/hisilicon/hisi_femac.c | |||
@@ -712,7 +712,6 @@ static const struct net_device_ops hisi_femac_netdev_ops = { | |||
712 | .ndo_do_ioctl = hisi_femac_net_ioctl, | 712 | .ndo_do_ioctl = hisi_femac_net_ioctl, |
713 | .ndo_set_mac_address = hisi_femac_set_mac_address, | 713 | .ndo_set_mac_address = hisi_femac_set_mac_address, |
714 | .ndo_set_rx_mode = hisi_femac_net_set_rx_mode, | 714 | .ndo_set_rx_mode = hisi_femac_net_set_rx_mode, |
715 | .ndo_change_mtu = eth_change_mtu, | ||
716 | }; | 715 | }; |
717 | 716 | ||
718 | static void hisi_femac_core_reset(struct hisi_femac_priv *priv) | 717 | static void hisi_femac_core_reset(struct hisi_femac_priv *priv) |
diff --git a/drivers/net/ethernet/hp/hp100.c b/drivers/net/ethernet/hp/hp100.c index 631dbc7b4dbb..1a31bee6e728 100644 --- a/drivers/net/ethernet/hp/hp100.c +++ b/drivers/net/ethernet/hp/hp100.c | |||
@@ -427,7 +427,6 @@ static const struct net_device_ops hp100_bm_netdev_ops = { | |||
427 | .ndo_start_xmit = hp100_start_xmit_bm, | 427 | .ndo_start_xmit = hp100_start_xmit_bm, |
428 | .ndo_get_stats = hp100_get_stats, | 428 | .ndo_get_stats = hp100_get_stats, |
429 | .ndo_set_rx_mode = hp100_set_multicast_list, | 429 | .ndo_set_rx_mode = hp100_set_multicast_list, |
430 | .ndo_change_mtu = eth_change_mtu, | ||
431 | .ndo_set_mac_address = eth_mac_addr, | 430 | .ndo_set_mac_address = eth_mac_addr, |
432 | .ndo_validate_addr = eth_validate_addr, | 431 | .ndo_validate_addr = eth_validate_addr, |
433 | }; | 432 | }; |
@@ -438,7 +437,6 @@ static const struct net_device_ops hp100_netdev_ops = { | |||
438 | .ndo_start_xmit = hp100_start_xmit, | 437 | .ndo_start_xmit = hp100_start_xmit, |
439 | .ndo_get_stats = hp100_get_stats, | 438 | .ndo_get_stats = hp100_get_stats, |
440 | .ndo_set_rx_mode = hp100_set_multicast_list, | 439 | .ndo_set_rx_mode = hp100_set_multicast_list, |
441 | .ndo_change_mtu = eth_change_mtu, | ||
442 | .ndo_set_mac_address = eth_mac_addr, | 440 | .ndo_set_mac_address = eth_mac_addr, |
443 | .ndo_validate_addr = eth_validate_addr, | 441 | .ndo_validate_addr = eth_validate_addr, |
444 | }; | 442 | }; |
diff --git a/drivers/net/ethernet/i825xx/82596.c b/drivers/net/ethernet/i825xx/82596.c index ce235b776793..945883842533 100644 --- a/drivers/net/ethernet/i825xx/82596.c +++ b/drivers/net/ethernet/i825xx/82596.c | |||
@@ -1118,7 +1118,6 @@ static const struct net_device_ops i596_netdev_ops = { | |||
1118 | .ndo_start_xmit = i596_start_xmit, | 1118 | .ndo_start_xmit = i596_start_xmit, |
1119 | .ndo_set_rx_mode = set_multicast_list, | 1119 | .ndo_set_rx_mode = set_multicast_list, |
1120 | .ndo_tx_timeout = i596_tx_timeout, | 1120 | .ndo_tx_timeout = i596_tx_timeout, |
1121 | .ndo_change_mtu = eth_change_mtu, | ||
1122 | .ndo_set_mac_address = eth_mac_addr, | 1121 | .ndo_set_mac_address = eth_mac_addr, |
1123 | .ndo_validate_addr = eth_validate_addr, | 1122 | .ndo_validate_addr = eth_validate_addr, |
1124 | }; | 1123 | }; |
diff --git a/drivers/net/ethernet/i825xx/ether1.c b/drivers/net/ethernet/i825xx/ether1.c index 5d353c660068..dc983450354b 100644 --- a/drivers/net/ethernet/i825xx/ether1.c +++ b/drivers/net/ethernet/i825xx/ether1.c | |||
@@ -981,7 +981,6 @@ static const struct net_device_ops ether1_netdev_ops = { | |||
981 | .ndo_set_rx_mode = ether1_setmulticastlist, | 981 | .ndo_set_rx_mode = ether1_setmulticastlist, |
982 | .ndo_tx_timeout = ether1_timeout, | 982 | .ndo_tx_timeout = ether1_timeout, |
983 | .ndo_validate_addr = eth_validate_addr, | 983 | .ndo_validate_addr = eth_validate_addr, |
984 | .ndo_change_mtu = eth_change_mtu, | ||
985 | .ndo_set_mac_address = eth_mac_addr, | 984 | .ndo_set_mac_address = eth_mac_addr, |
986 | }; | 985 | }; |
987 | 986 | ||
diff --git a/drivers/net/ethernet/i825xx/lib82596.c b/drivers/net/ethernet/i825xx/lib82596.c index 3dbc53c21baa..e86773325cbe 100644 --- a/drivers/net/ethernet/i825xx/lib82596.c +++ b/drivers/net/ethernet/i825xx/lib82596.c | |||
@@ -1037,7 +1037,6 @@ static const struct net_device_ops i596_netdev_ops = { | |||
1037 | .ndo_start_xmit = i596_start_xmit, | 1037 | .ndo_start_xmit = i596_start_xmit, |
1038 | .ndo_set_rx_mode = set_multicast_list, | 1038 | .ndo_set_rx_mode = set_multicast_list, |
1039 | .ndo_tx_timeout = i596_tx_timeout, | 1039 | .ndo_tx_timeout = i596_tx_timeout, |
1040 | .ndo_change_mtu = eth_change_mtu, | ||
1041 | .ndo_validate_addr = eth_validate_addr, | 1040 | .ndo_validate_addr = eth_validate_addr, |
1042 | .ndo_set_mac_address = eth_mac_addr, | 1041 | .ndo_set_mac_address = eth_mac_addr, |
1043 | #ifdef CONFIG_NET_POLL_CONTROLLER | 1042 | #ifdef CONFIG_NET_POLL_CONTROLLER |
diff --git a/drivers/net/ethernet/i825xx/sun3_82586.c b/drivers/net/ethernet/i825xx/sun3_82586.c index 21c84cc9c871..8bb15a8c2a40 100644 --- a/drivers/net/ethernet/i825xx/sun3_82586.c +++ b/drivers/net/ethernet/i825xx/sun3_82586.c | |||
@@ -337,7 +337,6 @@ static const struct net_device_ops sun3_82586_netdev_ops = { | |||
337 | .ndo_get_stats = sun3_82586_get_stats, | 337 | .ndo_get_stats = sun3_82586_get_stats, |
338 | .ndo_validate_addr = eth_validate_addr, | 338 | .ndo_validate_addr = eth_validate_addr, |
339 | .ndo_set_mac_address = eth_mac_addr, | 339 | .ndo_set_mac_address = eth_mac_addr, |
340 | .ndo_change_mtu = eth_change_mtu, | ||
341 | }; | 340 | }; |
342 | 341 | ||
343 | static int __init sun3_82586_probe1(struct net_device *dev,int ioaddr) | 342 | static int __init sun3_82586_probe1(struct net_device *dev,int ioaddr) |
diff --git a/drivers/net/ethernet/ibm/emac/core.c b/drivers/net/ethernet/ibm/emac/core.c index 8f139197f1aa..5d804a544674 100644 --- a/drivers/net/ethernet/ibm/emac/core.c +++ b/drivers/net/ethernet/ibm/emac/core.c | |||
@@ -2718,7 +2718,6 @@ static const struct net_device_ops emac_netdev_ops = { | |||
2718 | .ndo_validate_addr = eth_validate_addr, | 2718 | .ndo_validate_addr = eth_validate_addr, |
2719 | .ndo_set_mac_address = emac_set_mac_address, | 2719 | .ndo_set_mac_address = emac_set_mac_address, |
2720 | .ndo_start_xmit = emac_start_xmit, | 2720 | .ndo_start_xmit = emac_start_xmit, |
2721 | .ndo_change_mtu = eth_change_mtu, | ||
2722 | }; | 2721 | }; |
2723 | 2722 | ||
2724 | static const struct net_device_ops emac_gige_netdev_ops = { | 2723 | static const struct net_device_ops emac_gige_netdev_ops = { |
diff --git a/drivers/net/ethernet/korina.c b/drivers/net/ethernet/korina.c index 1799fe1415df..cbeea915f026 100644 --- a/drivers/net/ethernet/korina.c +++ b/drivers/net/ethernet/korina.c | |||
@@ -1085,7 +1085,6 @@ static const struct net_device_ops korina_netdev_ops = { | |||
1085 | .ndo_set_rx_mode = korina_multicast_list, | 1085 | .ndo_set_rx_mode = korina_multicast_list, |
1086 | .ndo_tx_timeout = korina_tx_timeout, | 1086 | .ndo_tx_timeout = korina_tx_timeout, |
1087 | .ndo_do_ioctl = korina_ioctl, | 1087 | .ndo_do_ioctl = korina_ioctl, |
1088 | .ndo_change_mtu = eth_change_mtu, | ||
1089 | .ndo_validate_addr = eth_validate_addr, | 1088 | .ndo_validate_addr = eth_validate_addr, |
1090 | .ndo_set_mac_address = eth_mac_addr, | 1089 | .ndo_set_mac_address = eth_mac_addr, |
1091 | #ifdef CONFIG_NET_POLL_CONTROLLER | 1090 | #ifdef CONFIG_NET_POLL_CONTROLLER |
diff --git a/drivers/net/ethernet/lantiq_etop.c b/drivers/net/ethernet/lantiq_etop.c index 91e09d68b7e2..1a739d71f1c2 100644 --- a/drivers/net/ethernet/lantiq_etop.c +++ b/drivers/net/ethernet/lantiq_etop.c | |||
@@ -519,18 +519,16 @@ ltq_etop_tx(struct sk_buff *skb, struct net_device *dev) | |||
519 | static int | 519 | static int |
520 | ltq_etop_change_mtu(struct net_device *dev, int new_mtu) | 520 | ltq_etop_change_mtu(struct net_device *dev, int new_mtu) |
521 | { | 521 | { |
522 | int ret = eth_change_mtu(dev, new_mtu); | 522 | struct ltq_etop_priv *priv = netdev_priv(dev); |
523 | unsigned long flags; | ||
523 | 524 | ||
524 | if (!ret) { | 525 | dev->mtu = new_mtu; |
525 | struct ltq_etop_priv *priv = netdev_priv(dev); | ||
526 | unsigned long flags; | ||
527 | 526 | ||
528 | spin_lock_irqsave(&priv->lock, flags); | 527 | spin_lock_irqsave(&priv->lock, flags); |
529 | ltq_etop_w32((ETOP_PLEN_UNDER << 16) | new_mtu, | 528 | ltq_etop_w32((ETOP_PLEN_UNDER << 16) | new_mtu, LTQ_ETOP_IGPLEN); |
530 | LTQ_ETOP_IGPLEN); | 529 | spin_unlock_irqrestore(&priv->lock, flags); |
531 | spin_unlock_irqrestore(&priv->lock, flags); | 530 | |
532 | } | 531 | return 0; |
533 | return ret; | ||
534 | } | 532 | } |
535 | 533 | ||
536 | static int | 534 | static int |
diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c index 4a62ffd7729d..8f80e618ae59 100644 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c | |||
@@ -2243,7 +2243,6 @@ static const struct net_device_ops mtk_netdev_ops = { | |||
2243 | .ndo_set_mac_address = mtk_set_mac_address, | 2243 | .ndo_set_mac_address = mtk_set_mac_address, |
2244 | .ndo_validate_addr = eth_validate_addr, | 2244 | .ndo_validate_addr = eth_validate_addr, |
2245 | .ndo_do_ioctl = mtk_do_ioctl, | 2245 | .ndo_do_ioctl = mtk_do_ioctl, |
2246 | .ndo_change_mtu = eth_change_mtu, | ||
2247 | .ndo_tx_timeout = mtk_tx_timeout, | 2246 | .ndo_tx_timeout = mtk_tx_timeout, |
2248 | .ndo_get_stats64 = mtk_get_stats64, | 2247 | .ndo_get_stats64 = mtk_get_stats64, |
2249 | .ndo_fix_features = mtk_fix_features, | 2248 | .ndo_fix_features = mtk_fix_features, |
diff --git a/drivers/net/ethernet/micrel/ks8851.c b/drivers/net/ethernet/micrel/ks8851.c index 1edc973df4c4..e7e1aff40bd9 100644 --- a/drivers/net/ethernet/micrel/ks8851.c +++ b/drivers/net/ethernet/micrel/ks8851.c | |||
@@ -1063,7 +1063,6 @@ static const struct net_device_ops ks8851_netdev_ops = { | |||
1063 | .ndo_start_xmit = ks8851_start_xmit, | 1063 | .ndo_start_xmit = ks8851_start_xmit, |
1064 | .ndo_set_mac_address = ks8851_set_mac_address, | 1064 | .ndo_set_mac_address = ks8851_set_mac_address, |
1065 | .ndo_set_rx_mode = ks8851_set_rx_mode, | 1065 | .ndo_set_rx_mode = ks8851_set_rx_mode, |
1066 | .ndo_change_mtu = eth_change_mtu, | ||
1067 | .ndo_validate_addr = eth_validate_addr, | 1066 | .ndo_validate_addr = eth_validate_addr, |
1068 | }; | 1067 | }; |
1069 | 1068 | ||
diff --git a/drivers/net/ethernet/micrel/ks8851_mll.c b/drivers/net/ethernet/micrel/ks8851_mll.c index 2fc5cd56c0a8..db628078a4e6 100644 --- a/drivers/net/ethernet/micrel/ks8851_mll.c +++ b/drivers/net/ethernet/micrel/ks8851_mll.c | |||
@@ -1285,7 +1285,6 @@ static const struct net_device_ops ks_netdev_ops = { | |||
1285 | .ndo_start_xmit = ks_start_xmit, | 1285 | .ndo_start_xmit = ks_start_xmit, |
1286 | .ndo_set_mac_address = ks_set_mac_address, | 1286 | .ndo_set_mac_address = ks_set_mac_address, |
1287 | .ndo_set_rx_mode = ks_set_rx_mode, | 1287 | .ndo_set_rx_mode = ks_set_rx_mode, |
1288 | .ndo_change_mtu = eth_change_mtu, | ||
1289 | .ndo_validate_addr = eth_validate_addr, | 1288 | .ndo_validate_addr = eth_validate_addr, |
1290 | }; | 1289 | }; |
1291 | 1290 | ||
diff --git a/drivers/net/ethernet/microchip/enc28j60.c b/drivers/net/ethernet/microchip/enc28j60.c index 0a26b11ca8f6..045b9106c0ff 100644 --- a/drivers/net/ethernet/microchip/enc28j60.c +++ b/drivers/net/ethernet/microchip/enc28j60.c | |||
@@ -1544,7 +1544,6 @@ static const struct net_device_ops enc28j60_netdev_ops = { | |||
1544 | .ndo_set_rx_mode = enc28j60_set_multicast_list, | 1544 | .ndo_set_rx_mode = enc28j60_set_multicast_list, |
1545 | .ndo_set_mac_address = enc28j60_set_mac_address, | 1545 | .ndo_set_mac_address = enc28j60_set_mac_address, |
1546 | .ndo_tx_timeout = enc28j60_tx_timeout, | 1546 | .ndo_tx_timeout = enc28j60_tx_timeout, |
1547 | .ndo_change_mtu = eth_change_mtu, | ||
1548 | .ndo_validate_addr = eth_validate_addr, | 1547 | .ndo_validate_addr = eth_validate_addr, |
1549 | }; | 1548 | }; |
1550 | 1549 | ||
diff --git a/drivers/net/ethernet/moxa/moxart_ether.c b/drivers/net/ethernet/moxa/moxart_ether.c index 4367dd6879a2..9774b50cff6e 100644 --- a/drivers/net/ethernet/moxa/moxart_ether.c +++ b/drivers/net/ethernet/moxa/moxart_ether.c | |||
@@ -444,7 +444,6 @@ static struct net_device_ops moxart_netdev_ops = { | |||
444 | .ndo_set_rx_mode = moxart_mac_set_rx_mode, | 444 | .ndo_set_rx_mode = moxart_mac_set_rx_mode, |
445 | .ndo_set_mac_address = moxart_set_mac_address, | 445 | .ndo_set_mac_address = moxart_set_mac_address, |
446 | .ndo_validate_addr = eth_validate_addr, | 446 | .ndo_validate_addr = eth_validate_addr, |
447 | .ndo_change_mtu = eth_change_mtu, | ||
448 | }; | 447 | }; |
449 | 448 | ||
450 | static int moxart_mac_probe(struct platform_device *pdev) | 449 | static int moxart_mac_probe(struct platform_device *pdev) |
diff --git a/drivers/net/ethernet/natsemi/jazzsonic.c b/drivers/net/ethernet/natsemi/jazzsonic.c index acf3f11e38cc..a6caeb567c0d 100644 --- a/drivers/net/ethernet/natsemi/jazzsonic.c +++ b/drivers/net/ethernet/natsemi/jazzsonic.c | |||
@@ -110,7 +110,6 @@ static const struct net_device_ops sonic_netdev_ops = { | |||
110 | .ndo_get_stats = sonic_get_stats, | 110 | .ndo_get_stats = sonic_get_stats, |
111 | .ndo_set_rx_mode = sonic_multicast_list, | 111 | .ndo_set_rx_mode = sonic_multicast_list, |
112 | .ndo_tx_timeout = sonic_tx_timeout, | 112 | .ndo_tx_timeout = sonic_tx_timeout, |
113 | .ndo_change_mtu = eth_change_mtu, | ||
114 | .ndo_validate_addr = eth_validate_addr, | 113 | .ndo_validate_addr = eth_validate_addr, |
115 | .ndo_set_mac_address = eth_mac_addr, | 114 | .ndo_set_mac_address = eth_mac_addr, |
116 | }; | 115 | }; |
diff --git a/drivers/net/ethernet/natsemi/macsonic.c b/drivers/net/ethernet/natsemi/macsonic.c index d98f5b8a1c66..3ca6ae7caf55 100644 --- a/drivers/net/ethernet/natsemi/macsonic.c +++ b/drivers/net/ethernet/natsemi/macsonic.c | |||
@@ -190,7 +190,6 @@ static const struct net_device_ops macsonic_netdev_ops = { | |||
190 | .ndo_tx_timeout = sonic_tx_timeout, | 190 | .ndo_tx_timeout = sonic_tx_timeout, |
191 | .ndo_get_stats = sonic_get_stats, | 191 | .ndo_get_stats = sonic_get_stats, |
192 | .ndo_validate_addr = eth_validate_addr, | 192 | .ndo_validate_addr = eth_validate_addr, |
193 | .ndo_change_mtu = eth_change_mtu, | ||
194 | .ndo_set_mac_address = eth_mac_addr, | 193 | .ndo_set_mac_address = eth_mac_addr, |
195 | }; | 194 | }; |
196 | 195 | ||
diff --git a/drivers/net/ethernet/natsemi/xtsonic.c b/drivers/net/ethernet/natsemi/xtsonic.c index 7007d212f3e4..9ee0f69a83c0 100644 --- a/drivers/net/ethernet/natsemi/xtsonic.c +++ b/drivers/net/ethernet/natsemi/xtsonic.c | |||
@@ -124,7 +124,6 @@ static const struct net_device_ops xtsonic_netdev_ops = { | |||
124 | .ndo_set_rx_mode = sonic_multicast_list, | 124 | .ndo_set_rx_mode = sonic_multicast_list, |
125 | .ndo_tx_timeout = sonic_tx_timeout, | 125 | .ndo_tx_timeout = sonic_tx_timeout, |
126 | .ndo_validate_addr = eth_validate_addr, | 126 | .ndo_validate_addr = eth_validate_addr, |
127 | .ndo_change_mtu = eth_change_mtu, | ||
128 | .ndo_set_mac_address = eth_mac_addr, | 127 | .ndo_set_mac_address = eth_mac_addr, |
129 | }; | 128 | }; |
130 | 129 | ||
diff --git a/drivers/net/ethernet/netx-eth.c b/drivers/net/ethernet/netx-eth.c index adbc47f2d132..df4188cb43e0 100644 --- a/drivers/net/ethernet/netx-eth.c +++ b/drivers/net/ethernet/netx-eth.c | |||
@@ -304,7 +304,6 @@ static const struct net_device_ops netx_eth_netdev_ops = { | |||
304 | .ndo_start_xmit = netx_eth_hard_start_xmit, | 304 | .ndo_start_xmit = netx_eth_hard_start_xmit, |
305 | .ndo_tx_timeout = netx_eth_timeout, | 305 | .ndo_tx_timeout = netx_eth_timeout, |
306 | .ndo_set_rx_mode = netx_eth_set_multicast_list, | 306 | .ndo_set_rx_mode = netx_eth_set_multicast_list, |
307 | .ndo_change_mtu = eth_change_mtu, | ||
308 | .ndo_validate_addr = eth_validate_addr, | 307 | .ndo_validate_addr = eth_validate_addr, |
309 | .ndo_set_mac_address = eth_mac_addr, | 308 | .ndo_set_mac_address = eth_mac_addr, |
310 | }; | 309 | }; |
diff --git a/drivers/net/ethernet/nuvoton/w90p910_ether.c b/drivers/net/ethernet/nuvoton/w90p910_ether.c index 712d8bcb7d8c..119f6dca71f0 100644 --- a/drivers/net/ethernet/nuvoton/w90p910_ether.c +++ b/drivers/net/ethernet/nuvoton/w90p910_ether.c | |||
@@ -915,7 +915,6 @@ static const struct net_device_ops w90p910_ether_netdev_ops = { | |||
915 | .ndo_set_mac_address = w90p910_set_mac_address, | 915 | .ndo_set_mac_address = w90p910_set_mac_address, |
916 | .ndo_do_ioctl = w90p910_ether_ioctl, | 916 | .ndo_do_ioctl = w90p910_ether_ioctl, |
917 | .ndo_validate_addr = eth_validate_addr, | 917 | .ndo_validate_addr = eth_validate_addr, |
918 | .ndo_change_mtu = eth_change_mtu, | ||
919 | }; | 918 | }; |
920 | 919 | ||
921 | static void __init get_mac_address(struct net_device *dev) | 920 | static void __init get_mac_address(struct net_device *dev) |
diff --git a/drivers/net/ethernet/nxp/lpc_eth.c b/drivers/net/ethernet/nxp/lpc_eth.c index 8e13ec84c538..dd6b0d0f7fa5 100644 --- a/drivers/net/ethernet/nxp/lpc_eth.c +++ b/drivers/net/ethernet/nxp/lpc_eth.c | |||
@@ -1256,7 +1256,6 @@ static const struct net_device_ops lpc_netdev_ops = { | |||
1256 | .ndo_do_ioctl = lpc_eth_ioctl, | 1256 | .ndo_do_ioctl = lpc_eth_ioctl, |
1257 | .ndo_set_mac_address = lpc_set_mac_address, | 1257 | .ndo_set_mac_address = lpc_set_mac_address, |
1258 | .ndo_validate_addr = eth_validate_addr, | 1258 | .ndo_validate_addr = eth_validate_addr, |
1259 | .ndo_change_mtu = eth_change_mtu, | ||
1260 | }; | 1259 | }; |
1261 | 1260 | ||
1262 | static int lpc_eth_drv_probe(struct platform_device *pdev) | 1261 | static int lpc_eth_drv_probe(struct platform_device *pdev) |
diff --git a/drivers/net/ethernet/packetengines/hamachi.c b/drivers/net/ethernet/packetengines/hamachi.c index 91be2f02ef1c..2d04679a923a 100644 --- a/drivers/net/ethernet/packetengines/hamachi.c +++ b/drivers/net/ethernet/packetengines/hamachi.c | |||
@@ -568,7 +568,6 @@ static const struct net_device_ops hamachi_netdev_ops = { | |||
568 | .ndo_start_xmit = hamachi_start_xmit, | 568 | .ndo_start_xmit = hamachi_start_xmit, |
569 | .ndo_get_stats = hamachi_get_stats, | 569 | .ndo_get_stats = hamachi_get_stats, |
570 | .ndo_set_rx_mode = set_rx_mode, | 570 | .ndo_set_rx_mode = set_rx_mode, |
571 | .ndo_change_mtu = eth_change_mtu, | ||
572 | .ndo_validate_addr = eth_validate_addr, | 571 | .ndo_validate_addr = eth_validate_addr, |
573 | .ndo_set_mac_address = eth_mac_addr, | 572 | .ndo_set_mac_address = eth_mac_addr, |
574 | .ndo_tx_timeout = hamachi_tx_timeout, | 573 | .ndo_tx_timeout = hamachi_tx_timeout, |
diff --git a/drivers/net/ethernet/packetengines/yellowfin.c b/drivers/net/ethernet/packetengines/yellowfin.c index fb1d1031b091..2a2ca5fa0c69 100644 --- a/drivers/net/ethernet/packetengines/yellowfin.c +++ b/drivers/net/ethernet/packetengines/yellowfin.c | |||
@@ -360,7 +360,6 @@ static const struct net_device_ops netdev_ops = { | |||
360 | .ndo_stop = yellowfin_close, | 360 | .ndo_stop = yellowfin_close, |
361 | .ndo_start_xmit = yellowfin_start_xmit, | 361 | .ndo_start_xmit = yellowfin_start_xmit, |
362 | .ndo_set_rx_mode = set_rx_mode, | 362 | .ndo_set_rx_mode = set_rx_mode, |
363 | .ndo_change_mtu = eth_change_mtu, | ||
364 | .ndo_validate_addr = eth_validate_addr, | 363 | .ndo_validate_addr = eth_validate_addr, |
365 | .ndo_set_mac_address = eth_mac_addr, | 364 | .ndo_set_mac_address = eth_mac_addr, |
366 | .ndo_do_ioctl = netdev_ioctl, | 365 | .ndo_do_ioctl = netdev_ioctl, |
diff --git a/drivers/net/ethernet/qlogic/qla3xxx.c b/drivers/net/ethernet/qlogic/qla3xxx.c index b09a6b80d107..5c100ab86c00 100644 --- a/drivers/net/ethernet/qlogic/qla3xxx.c +++ b/drivers/net/ethernet/qlogic/qla3xxx.c | |||
@@ -3755,7 +3755,6 @@ static const struct net_device_ops ql3xxx_netdev_ops = { | |||
3755 | .ndo_open = ql3xxx_open, | 3755 | .ndo_open = ql3xxx_open, |
3756 | .ndo_start_xmit = ql3xxx_send, | 3756 | .ndo_start_xmit = ql3xxx_send, |
3757 | .ndo_stop = ql3xxx_close, | 3757 | .ndo_stop = ql3xxx_close, |
3758 | .ndo_change_mtu = eth_change_mtu, | ||
3759 | .ndo_validate_addr = eth_validate_addr, | 3758 | .ndo_validate_addr = eth_validate_addr, |
3760 | .ndo_set_mac_address = ql3xxx_set_mac_address, | 3759 | .ndo_set_mac_address = ql3xxx_set_mac_address, |
3761 | .ndo_tx_timeout = ql3xxx_tx_timeout, | 3760 | .ndo_tx_timeout = ql3xxx_tx_timeout, |
diff --git a/drivers/net/ethernet/rdc/r6040.c b/drivers/net/ethernet/rdc/r6040.c index 5ef5d728c250..4ff4e0491406 100644 --- a/drivers/net/ethernet/rdc/r6040.c +++ b/drivers/net/ethernet/rdc/r6040.c | |||
@@ -969,7 +969,6 @@ static const struct net_device_ops r6040_netdev_ops = { | |||
969 | .ndo_start_xmit = r6040_start_xmit, | 969 | .ndo_start_xmit = r6040_start_xmit, |
970 | .ndo_get_stats = r6040_get_stats, | 970 | .ndo_get_stats = r6040_get_stats, |
971 | .ndo_set_rx_mode = r6040_multicast_list, | 971 | .ndo_set_rx_mode = r6040_multicast_list, |
972 | .ndo_change_mtu = eth_change_mtu, | ||
973 | .ndo_validate_addr = eth_validate_addr, | 972 | .ndo_validate_addr = eth_validate_addr, |
974 | .ndo_set_mac_address = eth_mac_addr, | 973 | .ndo_set_mac_address = eth_mac_addr, |
975 | .ndo_do_ioctl = r6040_ioctl, | 974 | .ndo_do_ioctl = r6040_ioctl, |
diff --git a/drivers/net/ethernet/realtek/atp.c b/drivers/net/ethernet/realtek/atp.c index 5cb96785fb63..570ed3bd3cbf 100644 --- a/drivers/net/ethernet/realtek/atp.c +++ b/drivers/net/ethernet/realtek/atp.c | |||
@@ -245,7 +245,6 @@ static const struct net_device_ops atp_netdev_ops = { | |||
245 | .ndo_start_xmit = atp_send_packet, | 245 | .ndo_start_xmit = atp_send_packet, |
246 | .ndo_set_rx_mode = set_rx_mode, | 246 | .ndo_set_rx_mode = set_rx_mode, |
247 | .ndo_tx_timeout = tx_timeout, | 247 | .ndo_tx_timeout = tx_timeout, |
248 | .ndo_change_mtu = eth_change_mtu, | ||
249 | .ndo_set_mac_address = eth_mac_addr, | 248 | .ndo_set_mac_address = eth_mac_addr, |
250 | .ndo_validate_addr = eth_validate_addr, | 249 | .ndo_validate_addr = eth_validate_addr, |
251 | }; | 250 | }; |
diff --git a/drivers/net/ethernet/renesas/ravb_main.c b/drivers/net/ethernet/renesas/ravb_main.c index 630536bc72f9..27cfec3154c8 100644 --- a/drivers/net/ethernet/renesas/ravb_main.c +++ b/drivers/net/ethernet/renesas/ravb_main.c | |||
@@ -1780,7 +1780,6 @@ static const struct net_device_ops ravb_netdev_ops = { | |||
1780 | .ndo_do_ioctl = ravb_do_ioctl, | 1780 | .ndo_do_ioctl = ravb_do_ioctl, |
1781 | .ndo_validate_addr = eth_validate_addr, | 1781 | .ndo_validate_addr = eth_validate_addr, |
1782 | .ndo_set_mac_address = eth_mac_addr, | 1782 | .ndo_set_mac_address = eth_mac_addr, |
1783 | .ndo_change_mtu = eth_change_mtu, | ||
1784 | }; | 1783 | }; |
1785 | 1784 | ||
1786 | /* MDIO bus init function */ | 1785 | /* MDIO bus init function */ |
diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c index 05b0dc55de77..e443695c2757 100644 --- a/drivers/net/ethernet/renesas/sh_eth.c +++ b/drivers/net/ethernet/renesas/sh_eth.c | |||
@@ -2914,7 +2914,6 @@ static const struct net_device_ops sh_eth_netdev_ops = { | |||
2914 | .ndo_do_ioctl = sh_eth_do_ioctl, | 2914 | .ndo_do_ioctl = sh_eth_do_ioctl, |
2915 | .ndo_validate_addr = eth_validate_addr, | 2915 | .ndo_validate_addr = eth_validate_addr, |
2916 | .ndo_set_mac_address = eth_mac_addr, | 2916 | .ndo_set_mac_address = eth_mac_addr, |
2917 | .ndo_change_mtu = eth_change_mtu, | ||
2918 | }; | 2917 | }; |
2919 | 2918 | ||
2920 | static const struct net_device_ops sh_eth_netdev_ops_tsu = { | 2919 | static const struct net_device_ops sh_eth_netdev_ops_tsu = { |
@@ -2929,7 +2928,6 @@ static const struct net_device_ops sh_eth_netdev_ops_tsu = { | |||
2929 | .ndo_do_ioctl = sh_eth_do_ioctl, | 2928 | .ndo_do_ioctl = sh_eth_do_ioctl, |
2930 | .ndo_validate_addr = eth_validate_addr, | 2929 | .ndo_validate_addr = eth_validate_addr, |
2931 | .ndo_set_mac_address = eth_mac_addr, | 2930 | .ndo_set_mac_address = eth_mac_addr, |
2932 | .ndo_change_mtu = eth_change_mtu, | ||
2933 | }; | 2931 | }; |
2934 | 2932 | ||
2935 | #ifdef CONFIG_OF | 2933 | #ifdef CONFIG_OF |
diff --git a/drivers/net/ethernet/seeq/ether3.c b/drivers/net/ethernet/seeq/ether3.c index bdac936a68bc..244c1e171017 100644 --- a/drivers/net/ethernet/seeq/ether3.c +++ b/drivers/net/ethernet/seeq/ether3.c | |||
@@ -745,7 +745,6 @@ static const struct net_device_ops ether3_netdev_ops = { | |||
745 | .ndo_set_rx_mode = ether3_setmulticastlist, | 745 | .ndo_set_rx_mode = ether3_setmulticastlist, |
746 | .ndo_tx_timeout = ether3_timeout, | 746 | .ndo_tx_timeout = ether3_timeout, |
747 | .ndo_validate_addr = eth_validate_addr, | 747 | .ndo_validate_addr = eth_validate_addr, |
748 | .ndo_change_mtu = eth_change_mtu, | ||
749 | .ndo_set_mac_address = eth_mac_addr, | 748 | .ndo_set_mac_address = eth_mac_addr, |
750 | }; | 749 | }; |
751 | 750 | ||
diff --git a/drivers/net/ethernet/seeq/sgiseeq.c b/drivers/net/ethernet/seeq/sgiseeq.c index c2bd5378ffda..ed34196028b8 100644 --- a/drivers/net/ethernet/seeq/sgiseeq.c +++ b/drivers/net/ethernet/seeq/sgiseeq.c | |||
@@ -714,7 +714,6 @@ static const struct net_device_ops sgiseeq_netdev_ops = { | |||
714 | .ndo_tx_timeout = timeout, | 714 | .ndo_tx_timeout = timeout, |
715 | .ndo_set_rx_mode = sgiseeq_set_multicast, | 715 | .ndo_set_rx_mode = sgiseeq_set_multicast, |
716 | .ndo_set_mac_address = sgiseeq_set_mac_address, | 716 | .ndo_set_mac_address = sgiseeq_set_mac_address, |
717 | .ndo_change_mtu = eth_change_mtu, | ||
718 | .ndo_validate_addr = eth_validate_addr, | 717 | .ndo_validate_addr = eth_validate_addr, |
719 | }; | 718 | }; |
720 | 719 | ||
diff --git a/drivers/net/ethernet/sgi/ioc3-eth.c b/drivers/net/ethernet/sgi/ioc3-eth.c index 7a254da85dd7..42051ab98cf0 100644 --- a/drivers/net/ethernet/sgi/ioc3-eth.c +++ b/drivers/net/ethernet/sgi/ioc3-eth.c | |||
@@ -1225,7 +1225,6 @@ static const struct net_device_ops ioc3_netdev_ops = { | |||
1225 | .ndo_do_ioctl = ioc3_ioctl, | 1225 | .ndo_do_ioctl = ioc3_ioctl, |
1226 | .ndo_validate_addr = eth_validate_addr, | 1226 | .ndo_validate_addr = eth_validate_addr, |
1227 | .ndo_set_mac_address = ioc3_set_mac_address, | 1227 | .ndo_set_mac_address = ioc3_set_mac_address, |
1228 | .ndo_change_mtu = eth_change_mtu, | ||
1229 | }; | 1228 | }; |
1230 | 1229 | ||
1231 | static int ioc3_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | 1230 | static int ioc3_probe(struct pci_dev *pdev, const struct pci_device_id *ent) |
diff --git a/drivers/net/ethernet/sgi/meth.c b/drivers/net/ethernet/sgi/meth.c index aaa80f13859b..69d2d30e5ef1 100644 --- a/drivers/net/ethernet/sgi/meth.c +++ b/drivers/net/ethernet/sgi/meth.c | |||
@@ -815,7 +815,6 @@ static const struct net_device_ops meth_netdev_ops = { | |||
815 | .ndo_start_xmit = meth_tx, | 815 | .ndo_start_xmit = meth_tx, |
816 | .ndo_do_ioctl = meth_ioctl, | 816 | .ndo_do_ioctl = meth_ioctl, |
817 | .ndo_tx_timeout = meth_tx_timeout, | 817 | .ndo_tx_timeout = meth_tx_timeout, |
818 | .ndo_change_mtu = eth_change_mtu, | ||
819 | .ndo_validate_addr = eth_validate_addr, | 818 | .ndo_validate_addr = eth_validate_addr, |
820 | .ndo_set_mac_address = eth_mac_addr, | 819 | .ndo_set_mac_address = eth_mac_addr, |
821 | .ndo_set_rx_mode = meth_set_rx_mode, | 820 | .ndo_set_rx_mode = meth_set_rx_mode, |
diff --git a/drivers/net/ethernet/silan/sc92031.c b/drivers/net/ethernet/silan/sc92031.c index 7426f8b21252..6c2e2b311c16 100644 --- a/drivers/net/ethernet/silan/sc92031.c +++ b/drivers/net/ethernet/silan/sc92031.c | |||
@@ -1386,7 +1386,6 @@ static const struct net_device_ops sc92031_netdev_ops = { | |||
1386 | .ndo_open = sc92031_open, | 1386 | .ndo_open = sc92031_open, |
1387 | .ndo_stop = sc92031_stop, | 1387 | .ndo_stop = sc92031_stop, |
1388 | .ndo_set_rx_mode = sc92031_set_multicast_list, | 1388 | .ndo_set_rx_mode = sc92031_set_multicast_list, |
1389 | .ndo_change_mtu = eth_change_mtu, | ||
1390 | .ndo_validate_addr = eth_validate_addr, | 1389 | .ndo_validate_addr = eth_validate_addr, |
1391 | .ndo_set_mac_address = eth_mac_addr, | 1390 | .ndo_set_mac_address = eth_mac_addr, |
1392 | .ndo_tx_timeout = sc92031_tx_timeout, | 1391 | .ndo_tx_timeout = sc92031_tx_timeout, |
diff --git a/drivers/net/ethernet/sis/sis190.c b/drivers/net/ethernet/sis/sis190.c index 27be6c869315..210e35d079dd 100644 --- a/drivers/net/ethernet/sis/sis190.c +++ b/drivers/net/ethernet/sis/sis190.c | |||
@@ -1833,7 +1833,6 @@ static const struct net_device_ops sis190_netdev_ops = { | |||
1833 | .ndo_start_xmit = sis190_start_xmit, | 1833 | .ndo_start_xmit = sis190_start_xmit, |
1834 | .ndo_tx_timeout = sis190_tx_timeout, | 1834 | .ndo_tx_timeout = sis190_tx_timeout, |
1835 | .ndo_set_rx_mode = sis190_set_rx_mode, | 1835 | .ndo_set_rx_mode = sis190_set_rx_mode, |
1836 | .ndo_change_mtu = eth_change_mtu, | ||
1837 | .ndo_set_mac_address = sis190_mac_addr, | 1836 | .ndo_set_mac_address = sis190_mac_addr, |
1838 | .ndo_validate_addr = eth_validate_addr, | 1837 | .ndo_validate_addr = eth_validate_addr, |
1839 | #ifdef CONFIG_NET_POLL_CONTROLLER | 1838 | #ifdef CONFIG_NET_POLL_CONTROLLER |
diff --git a/drivers/net/ethernet/sis/sis900.c b/drivers/net/ethernet/sis/sis900.c index 6f85276376e8..39fca6c0b68d 100644 --- a/drivers/net/ethernet/sis/sis900.c +++ b/drivers/net/ethernet/sis/sis900.c | |||
@@ -400,7 +400,6 @@ static const struct net_device_ops sis900_netdev_ops = { | |||
400 | .ndo_start_xmit = sis900_start_xmit, | 400 | .ndo_start_xmit = sis900_start_xmit, |
401 | .ndo_set_config = sis900_set_config, | 401 | .ndo_set_config = sis900_set_config, |
402 | .ndo_set_rx_mode = set_rx_mode, | 402 | .ndo_set_rx_mode = set_rx_mode, |
403 | .ndo_change_mtu = eth_change_mtu, | ||
404 | .ndo_validate_addr = eth_validate_addr, | 403 | .ndo_validate_addr = eth_validate_addr, |
405 | .ndo_set_mac_address = eth_mac_addr, | 404 | .ndo_set_mac_address = eth_mac_addr, |
406 | .ndo_do_ioctl = mii_ioctl, | 405 | .ndo_do_ioctl = mii_ioctl, |
diff --git a/drivers/net/ethernet/smsc/epic100.c b/drivers/net/ethernet/smsc/epic100.c index 7186b89269ad..fe9760ffab51 100644 --- a/drivers/net/ethernet/smsc/epic100.c +++ b/drivers/net/ethernet/smsc/epic100.c | |||
@@ -313,7 +313,6 @@ static const struct net_device_ops epic_netdev_ops = { | |||
313 | .ndo_get_stats = epic_get_stats, | 313 | .ndo_get_stats = epic_get_stats, |
314 | .ndo_set_rx_mode = set_rx_mode, | 314 | .ndo_set_rx_mode = set_rx_mode, |
315 | .ndo_do_ioctl = netdev_ioctl, | 315 | .ndo_do_ioctl = netdev_ioctl, |
316 | .ndo_change_mtu = eth_change_mtu, | ||
317 | .ndo_set_mac_address = eth_mac_addr, | 316 | .ndo_set_mac_address = eth_mac_addr, |
318 | .ndo_validate_addr = eth_validate_addr, | 317 | .ndo_validate_addr = eth_validate_addr, |
319 | }; | 318 | }; |
diff --git a/drivers/net/ethernet/smsc/smc911x.c b/drivers/net/ethernet/smsc/smc911x.c index cb49c9654f0a..4f19c6166182 100644 --- a/drivers/net/ethernet/smsc/smc911x.c +++ b/drivers/net/ethernet/smsc/smc911x.c | |||
@@ -1753,7 +1753,6 @@ static const struct net_device_ops smc911x_netdev_ops = { | |||
1753 | .ndo_start_xmit = smc911x_hard_start_xmit, | 1753 | .ndo_start_xmit = smc911x_hard_start_xmit, |
1754 | .ndo_tx_timeout = smc911x_timeout, | 1754 | .ndo_tx_timeout = smc911x_timeout, |
1755 | .ndo_set_rx_mode = smc911x_set_multicast_list, | 1755 | .ndo_set_rx_mode = smc911x_set_multicast_list, |
1756 | .ndo_change_mtu = eth_change_mtu, | ||
1757 | .ndo_validate_addr = eth_validate_addr, | 1756 | .ndo_validate_addr = eth_validate_addr, |
1758 | .ndo_set_mac_address = eth_mac_addr, | 1757 | .ndo_set_mac_address = eth_mac_addr, |
1759 | #ifdef CONFIG_NET_POLL_CONTROLLER | 1758 | #ifdef CONFIG_NET_POLL_CONTROLLER |
diff --git a/drivers/net/ethernet/smsc/smc9194.c b/drivers/net/ethernet/smsc/smc9194.c index d496888b85d3..c8d84679ede7 100644 --- a/drivers/net/ethernet/smsc/smc9194.c +++ b/drivers/net/ethernet/smsc/smc9194.c | |||
@@ -809,7 +809,6 @@ static const struct net_device_ops smc_netdev_ops = { | |||
809 | .ndo_start_xmit = smc_wait_to_send_packet, | 809 | .ndo_start_xmit = smc_wait_to_send_packet, |
810 | .ndo_tx_timeout = smc_timeout, | 810 | .ndo_tx_timeout = smc_timeout, |
811 | .ndo_set_rx_mode = smc_set_multicast_list, | 811 | .ndo_set_rx_mode = smc_set_multicast_list, |
812 | .ndo_change_mtu = eth_change_mtu, | ||
813 | .ndo_set_mac_address = eth_mac_addr, | 812 | .ndo_set_mac_address = eth_mac_addr, |
814 | .ndo_validate_addr = eth_validate_addr, | 813 | .ndo_validate_addr = eth_validate_addr, |
815 | }; | 814 | }; |
diff --git a/drivers/net/ethernet/smsc/smc91c92_cs.c b/drivers/net/ethernet/smsc/smc91c92_cs.c index db3c696d7002..f1c75e291e55 100644 --- a/drivers/net/ethernet/smsc/smc91c92_cs.c +++ b/drivers/net/ethernet/smsc/smc91c92_cs.c | |||
@@ -294,7 +294,6 @@ static const struct net_device_ops smc_netdev_ops = { | |||
294 | .ndo_set_config = s9k_config, | 294 | .ndo_set_config = s9k_config, |
295 | .ndo_set_rx_mode = set_rx_mode, | 295 | .ndo_set_rx_mode = set_rx_mode, |
296 | .ndo_do_ioctl = smc_ioctl, | 296 | .ndo_do_ioctl = smc_ioctl, |
297 | .ndo_change_mtu = eth_change_mtu, | ||
298 | .ndo_set_mac_address = eth_mac_addr, | 297 | .ndo_set_mac_address = eth_mac_addr, |
299 | .ndo_validate_addr = eth_validate_addr, | 298 | .ndo_validate_addr = eth_validate_addr, |
300 | }; | 299 | }; |
diff --git a/drivers/net/ethernet/smsc/smc91x.c b/drivers/net/ethernet/smsc/smc91x.c index 73212590d04a..9b4780f87863 100644 --- a/drivers/net/ethernet/smsc/smc91x.c +++ b/drivers/net/ethernet/smsc/smc91x.c | |||
@@ -1762,7 +1762,6 @@ static const struct net_device_ops smc_netdev_ops = { | |||
1762 | .ndo_start_xmit = smc_hard_start_xmit, | 1762 | .ndo_start_xmit = smc_hard_start_xmit, |
1763 | .ndo_tx_timeout = smc_timeout, | 1763 | .ndo_tx_timeout = smc_timeout, |
1764 | .ndo_set_rx_mode = smc_set_multicast_list, | 1764 | .ndo_set_rx_mode = smc_set_multicast_list, |
1765 | .ndo_change_mtu = eth_change_mtu, | ||
1766 | .ndo_validate_addr = eth_validate_addr, | 1765 | .ndo_validate_addr = eth_validate_addr, |
1767 | .ndo_set_mac_address = eth_mac_addr, | 1766 | .ndo_set_mac_address = eth_mac_addr, |
1768 | #ifdef CONFIG_NET_POLL_CONTROLLER | 1767 | #ifdef CONFIG_NET_POLL_CONTROLLER |
diff --git a/drivers/net/ethernet/smsc/smsc911x.c b/drivers/net/ethernet/smsc/smsc911x.c index e9b8579e6241..cdb343f0c6e0 100644 --- a/drivers/net/ethernet/smsc/smsc911x.c +++ b/drivers/net/ethernet/smsc/smsc911x.c | |||
@@ -2152,7 +2152,6 @@ static const struct net_device_ops smsc911x_netdev_ops = { | |||
2152 | .ndo_get_stats = smsc911x_get_stats, | 2152 | .ndo_get_stats = smsc911x_get_stats, |
2153 | .ndo_set_rx_mode = smsc911x_set_multicast_list, | 2153 | .ndo_set_rx_mode = smsc911x_set_multicast_list, |
2154 | .ndo_do_ioctl = smsc911x_do_ioctl, | 2154 | .ndo_do_ioctl = smsc911x_do_ioctl, |
2155 | .ndo_change_mtu = eth_change_mtu, | ||
2156 | .ndo_validate_addr = eth_validate_addr, | 2155 | .ndo_validate_addr = eth_validate_addr, |
2157 | .ndo_set_mac_address = smsc911x_set_mac_address, | 2156 | .ndo_set_mac_address = smsc911x_set_mac_address, |
2158 | #ifdef CONFIG_NET_POLL_CONTROLLER | 2157 | #ifdef CONFIG_NET_POLL_CONTROLLER |
diff --git a/drivers/net/ethernet/sun/sunbmac.c b/drivers/net/ethernet/sun/sunbmac.c index aa4f9d2d8fa9..ea89ef3b48fb 100644 --- a/drivers/net/ethernet/sun/sunbmac.c +++ b/drivers/net/ethernet/sun/sunbmac.c | |||
@@ -1064,7 +1064,6 @@ static const struct net_device_ops bigmac_ops = { | |||
1064 | .ndo_get_stats = bigmac_get_stats, | 1064 | .ndo_get_stats = bigmac_get_stats, |
1065 | .ndo_set_rx_mode = bigmac_set_multicast, | 1065 | .ndo_set_rx_mode = bigmac_set_multicast, |
1066 | .ndo_tx_timeout = bigmac_tx_timeout, | 1066 | .ndo_tx_timeout = bigmac_tx_timeout, |
1067 | .ndo_change_mtu = eth_change_mtu, | ||
1068 | .ndo_set_mac_address = eth_mac_addr, | 1067 | .ndo_set_mac_address = eth_mac_addr, |
1069 | .ndo_validate_addr = eth_validate_addr, | 1068 | .ndo_validate_addr = eth_validate_addr, |
1070 | }; | 1069 | }; |
diff --git a/drivers/net/ethernet/sun/sunhme.c b/drivers/net/ethernet/sun/sunhme.c index cf4dcff051d5..ca96408058b0 100644 --- a/drivers/net/ethernet/sun/sunhme.c +++ b/drivers/net/ethernet/sun/sunhme.c | |||
@@ -2669,7 +2669,6 @@ static const struct net_device_ops hme_netdev_ops = { | |||
2669 | .ndo_tx_timeout = happy_meal_tx_timeout, | 2669 | .ndo_tx_timeout = happy_meal_tx_timeout, |
2670 | .ndo_get_stats = happy_meal_get_stats, | 2670 | .ndo_get_stats = happy_meal_get_stats, |
2671 | .ndo_set_rx_mode = happy_meal_set_multicast, | 2671 | .ndo_set_rx_mode = happy_meal_set_multicast, |
2672 | .ndo_change_mtu = eth_change_mtu, | ||
2673 | .ndo_set_mac_address = eth_mac_addr, | 2672 | .ndo_set_mac_address = eth_mac_addr, |
2674 | .ndo_validate_addr = eth_validate_addr, | 2673 | .ndo_validate_addr = eth_validate_addr, |
2675 | }; | 2674 | }; |
diff --git a/drivers/net/ethernet/sun/sunqe.c b/drivers/net/ethernet/sun/sunqe.c index 9b825780b3be..c5ef711f6567 100644 --- a/drivers/net/ethernet/sun/sunqe.c +++ b/drivers/net/ethernet/sun/sunqe.c | |||
@@ -823,7 +823,6 @@ static const struct net_device_ops qec_ops = { | |||
823 | .ndo_start_xmit = qe_start_xmit, | 823 | .ndo_start_xmit = qe_start_xmit, |
824 | .ndo_set_rx_mode = qe_set_multicast, | 824 | .ndo_set_rx_mode = qe_set_multicast, |
825 | .ndo_tx_timeout = qe_tx_timeout, | 825 | .ndo_tx_timeout = qe_tx_timeout, |
826 | .ndo_change_mtu = eth_change_mtu, | ||
827 | .ndo_set_mac_address = eth_mac_addr, | 826 | .ndo_set_mac_address = eth_mac_addr, |
828 | .ndo_validate_addr = eth_validate_addr, | 827 | .ndo_validate_addr = eth_validate_addr, |
829 | }; | 828 | }; |
diff --git a/drivers/net/ethernet/ti/cpmac.c b/drivers/net/ethernet/ti/cpmac.c index fa0cfda24fd9..c56e7030c44e 100644 --- a/drivers/net/ethernet/ti/cpmac.c +++ b/drivers/net/ethernet/ti/cpmac.c | |||
@@ -1068,7 +1068,6 @@ static const struct net_device_ops cpmac_netdev_ops = { | |||
1068 | .ndo_tx_timeout = cpmac_tx_timeout, | 1068 | .ndo_tx_timeout = cpmac_tx_timeout, |
1069 | .ndo_set_rx_mode = cpmac_set_multicast_list, | 1069 | .ndo_set_rx_mode = cpmac_set_multicast_list, |
1070 | .ndo_do_ioctl = cpmac_ioctl, | 1070 | .ndo_do_ioctl = cpmac_ioctl, |
1071 | .ndo_change_mtu = eth_change_mtu, | ||
1072 | .ndo_validate_addr = eth_validate_addr, | 1071 | .ndo_validate_addr = eth_validate_addr, |
1073 | .ndo_set_mac_address = eth_mac_addr, | 1072 | .ndo_set_mac_address = eth_mac_addr, |
1074 | }; | 1073 | }; |
diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 6d4b8a2e0cf6..b1ddf89a19be 100644 --- a/drivers/net/ethernet/ti/cpsw.c +++ b/drivers/net/ethernet/ti/cpsw.c | |||
@@ -1883,7 +1883,6 @@ static const struct net_device_ops cpsw_netdev_ops = { | |||
1883 | .ndo_set_mac_address = cpsw_ndo_set_mac_address, | 1883 | .ndo_set_mac_address = cpsw_ndo_set_mac_address, |
1884 | .ndo_do_ioctl = cpsw_ndo_ioctl, | 1884 | .ndo_do_ioctl = cpsw_ndo_ioctl, |
1885 | .ndo_validate_addr = eth_validate_addr, | 1885 | .ndo_validate_addr = eth_validate_addr, |
1886 | .ndo_change_mtu = eth_change_mtu, | ||
1887 | .ndo_tx_timeout = cpsw_ndo_tx_timeout, | 1886 | .ndo_tx_timeout = cpsw_ndo_tx_timeout, |
1888 | .ndo_set_rx_mode = cpsw_ndo_set_rx_mode, | 1887 | .ndo_set_rx_mode = cpsw_ndo_set_rx_mode, |
1889 | #ifdef CONFIG_NET_POLL_CONTROLLER | 1888 | #ifdef CONFIG_NET_POLL_CONTROLLER |
diff --git a/drivers/net/ethernet/ti/tlan.c b/drivers/net/ethernet/ti/tlan.c index ece0ea0f6b38..4a3eeb10d45b 100644 --- a/drivers/net/ethernet/ti/tlan.c +++ b/drivers/net/ethernet/ti/tlan.c | |||
@@ -772,7 +772,6 @@ static const struct net_device_ops tlan_netdev_ops = { | |||
772 | .ndo_get_stats = tlan_get_stats, | 772 | .ndo_get_stats = tlan_get_stats, |
773 | .ndo_set_rx_mode = tlan_set_multicast_list, | 773 | .ndo_set_rx_mode = tlan_set_multicast_list, |
774 | .ndo_do_ioctl = tlan_ioctl, | 774 | .ndo_do_ioctl = tlan_ioctl, |
775 | .ndo_change_mtu = eth_change_mtu, | ||
776 | .ndo_set_mac_address = eth_mac_addr, | 775 | .ndo_set_mac_address = eth_mac_addr, |
777 | .ndo_validate_addr = eth_validate_addr, | 776 | .ndo_validate_addr = eth_validate_addr, |
778 | #ifdef CONFIG_NET_POLL_CONTROLLER | 777 | #ifdef CONFIG_NET_POLL_CONTROLLER |
diff --git a/drivers/net/ethernet/toshiba/tc35815.c b/drivers/net/ethernet/toshiba/tc35815.c index 5b01b3fa9fec..3be61ed28741 100644 --- a/drivers/net/ethernet/toshiba/tc35815.c +++ b/drivers/net/ethernet/toshiba/tc35815.c | |||
@@ -747,7 +747,6 @@ static const struct net_device_ops tc35815_netdev_ops = { | |||
747 | .ndo_tx_timeout = tc35815_tx_timeout, | 747 | .ndo_tx_timeout = tc35815_tx_timeout, |
748 | .ndo_do_ioctl = tc35815_ioctl, | 748 | .ndo_do_ioctl = tc35815_ioctl, |
749 | .ndo_validate_addr = eth_validate_addr, | 749 | .ndo_validate_addr = eth_validate_addr, |
750 | .ndo_change_mtu = eth_change_mtu, | ||
751 | .ndo_set_mac_address = eth_mac_addr, | 750 | .ndo_set_mac_address = eth_mac_addr, |
752 | #ifdef CONFIG_NET_POLL_CONTROLLER | 751 | #ifdef CONFIG_NET_POLL_CONTROLLER |
753 | .ndo_poll_controller = tc35815_poll_controller, | 752 | .ndo_poll_controller = tc35815_poll_controller, |
diff --git a/drivers/net/ethernet/tundra/tsi108_eth.c b/drivers/net/ethernet/tundra/tsi108_eth.c index 8fd131207ee1..f153ad729ce5 100644 --- a/drivers/net/ethernet/tundra/tsi108_eth.c +++ b/drivers/net/ethernet/tundra/tsi108_eth.c | |||
@@ -1548,7 +1548,6 @@ static const struct net_device_ops tsi108_netdev_ops = { | |||
1548 | .ndo_do_ioctl = tsi108_do_ioctl, | 1548 | .ndo_do_ioctl = tsi108_do_ioctl, |
1549 | .ndo_set_mac_address = tsi108_set_mac, | 1549 | .ndo_set_mac_address = tsi108_set_mac, |
1550 | .ndo_validate_addr = eth_validate_addr, | 1550 | .ndo_validate_addr = eth_validate_addr, |
1551 | .ndo_change_mtu = eth_change_mtu, | ||
1552 | }; | 1551 | }; |
1553 | 1552 | ||
1554 | static int | 1553 | static int |
diff --git a/drivers/net/ethernet/via/via-rhine.c b/drivers/net/ethernet/via/via-rhine.c index 9d14731cdcb1..ba5c54249055 100644 --- a/drivers/net/ethernet/via/via-rhine.c +++ b/drivers/net/ethernet/via/via-rhine.c | |||
@@ -890,7 +890,6 @@ static const struct net_device_ops rhine_netdev_ops = { | |||
890 | .ndo_start_xmit = rhine_start_tx, | 890 | .ndo_start_xmit = rhine_start_tx, |
891 | .ndo_get_stats64 = rhine_get_stats64, | 891 | .ndo_get_stats64 = rhine_get_stats64, |
892 | .ndo_set_rx_mode = rhine_set_rx_mode, | 892 | .ndo_set_rx_mode = rhine_set_rx_mode, |
893 | .ndo_change_mtu = eth_change_mtu, | ||
894 | .ndo_validate_addr = eth_validate_addr, | 893 | .ndo_validate_addr = eth_validate_addr, |
895 | .ndo_set_mac_address = eth_mac_addr, | 894 | .ndo_set_mac_address = eth_mac_addr, |
896 | .ndo_do_ioctl = netdev_ioctl, | 895 | .ndo_do_ioctl = netdev_ioctl, |
diff --git a/drivers/net/ethernet/wiznet/w5100.c b/drivers/net/ethernet/wiznet/w5100.c index d2349a1bc6ba..e1296ef2cf66 100644 --- a/drivers/net/ethernet/wiznet/w5100.c +++ b/drivers/net/ethernet/wiznet/w5100.c | |||
@@ -1045,7 +1045,6 @@ static const struct net_device_ops w5100_netdev_ops = { | |||
1045 | .ndo_set_rx_mode = w5100_set_rx_mode, | 1045 | .ndo_set_rx_mode = w5100_set_rx_mode, |
1046 | .ndo_set_mac_address = w5100_set_macaddr, | 1046 | .ndo_set_mac_address = w5100_set_macaddr, |
1047 | .ndo_validate_addr = eth_validate_addr, | 1047 | .ndo_validate_addr = eth_validate_addr, |
1048 | .ndo_change_mtu = eth_change_mtu, | ||
1049 | }; | 1048 | }; |
1050 | 1049 | ||
1051 | static int w5100_mmio_probe(struct platform_device *pdev) | 1050 | static int w5100_mmio_probe(struct platform_device *pdev) |
diff --git a/drivers/net/ethernet/wiznet/w5300.c b/drivers/net/ethernet/wiznet/w5300.c index ca31a57dbc86..724fabd38a23 100644 --- a/drivers/net/ethernet/wiznet/w5300.c +++ b/drivers/net/ethernet/wiznet/w5300.c | |||
@@ -536,7 +536,6 @@ static const struct net_device_ops w5300_netdev_ops = { | |||
536 | .ndo_set_rx_mode = w5300_set_rx_mode, | 536 | .ndo_set_rx_mode = w5300_set_rx_mode, |
537 | .ndo_set_mac_address = w5300_set_macaddr, | 537 | .ndo_set_mac_address = w5300_set_macaddr, |
538 | .ndo_validate_addr = eth_validate_addr, | 538 | .ndo_validate_addr = eth_validate_addr, |
539 | .ndo_change_mtu = eth_change_mtu, | ||
540 | }; | 539 | }; |
541 | 540 | ||
542 | static int w5300_hw_probe(struct platform_device *pdev) | 541 | static int w5300_hw_probe(struct platform_device *pdev) |
diff --git a/drivers/net/ethernet/xircom/xirc2ps_cs.c b/drivers/net/ethernet/xircom/xirc2ps_cs.c index ddced28e8247..3b08ec766076 100644 --- a/drivers/net/ethernet/xircom/xirc2ps_cs.c +++ b/drivers/net/ethernet/xircom/xirc2ps_cs.c | |||
@@ -466,7 +466,6 @@ static const struct net_device_ops netdev_ops = { | |||
466 | .ndo_set_config = do_config, | 466 | .ndo_set_config = do_config, |
467 | .ndo_do_ioctl = do_ioctl, | 467 | .ndo_do_ioctl = do_ioctl, |
468 | .ndo_set_rx_mode = set_multicast_list, | 468 | .ndo_set_rx_mode = set_multicast_list, |
469 | .ndo_change_mtu = eth_change_mtu, | ||
470 | .ndo_set_mac_address = eth_mac_addr, | 469 | .ndo_set_mac_address = eth_mac_addr, |
471 | .ndo_validate_addr = eth_validate_addr, | 470 | .ndo_validate_addr = eth_validate_addr, |
472 | }; | 471 | }; |
diff --git a/drivers/net/ethernet/xscale/ixp4xx_eth.c b/drivers/net/ethernet/xscale/ixp4xx_eth.c index 7f127dc1b7ba..46cc33b9e926 100644 --- a/drivers/net/ethernet/xscale/ixp4xx_eth.c +++ b/drivers/net/ethernet/xscale/ixp4xx_eth.c | |||
@@ -1379,7 +1379,6 @@ static const struct net_device_ops ixp4xx_netdev_ops = { | |||
1379 | .ndo_start_xmit = eth_xmit, | 1379 | .ndo_start_xmit = eth_xmit, |
1380 | .ndo_set_rx_mode = eth_set_mcast_list, | 1380 | .ndo_set_rx_mode = eth_set_mcast_list, |
1381 | .ndo_do_ioctl = eth_ioctl, | 1381 | .ndo_do_ioctl = eth_ioctl, |
1382 | .ndo_change_mtu = eth_change_mtu, | ||
1383 | .ndo_set_mac_address = eth_mac_addr, | 1382 | .ndo_set_mac_address = eth_mac_addr, |
1384 | .ndo_validate_addr = eth_validate_addr, | 1383 | .ndo_validate_addr = eth_validate_addr, |
1385 | }; | 1384 | }; |
diff --git a/drivers/net/plip/plip.c b/drivers/net/plip/plip.c index 9c4b41a4df7d..3c55ea357f35 100644 --- a/drivers/net/plip/plip.c +++ b/drivers/net/plip/plip.c | |||
@@ -270,7 +270,6 @@ static const struct net_device_ops plip_netdev_ops = { | |||
270 | .ndo_stop = plip_close, | 270 | .ndo_stop = plip_close, |
271 | .ndo_start_xmit = plip_tx_packet, | 271 | .ndo_start_xmit = plip_tx_packet, |
272 | .ndo_do_ioctl = plip_ioctl, | 272 | .ndo_do_ioctl = plip_ioctl, |
273 | .ndo_change_mtu = eth_change_mtu, | ||
274 | .ndo_set_mac_address = eth_mac_addr, | 273 | .ndo_set_mac_address = eth_mac_addr, |
275 | .ndo_validate_addr = eth_validate_addr, | 274 | .ndo_validate_addr = eth_validate_addr, |
276 | }; | 275 | }; |
diff --git a/drivers/net/sb1000.c b/drivers/net/sb1000.c index aad0b59d41e3..8b8b53259783 100644 --- a/drivers/net/sb1000.c +++ b/drivers/net/sb1000.c | |||
@@ -141,7 +141,6 @@ static const struct net_device_ops sb1000_netdev_ops = { | |||
141 | .ndo_start_xmit = sb1000_start_xmit, | 141 | .ndo_start_xmit = sb1000_start_xmit, |
142 | .ndo_do_ioctl = sb1000_dev_ioctl, | 142 | .ndo_do_ioctl = sb1000_dev_ioctl, |
143 | .ndo_stop = sb1000_close, | 143 | .ndo_stop = sb1000_close, |
144 | .ndo_change_mtu = eth_change_mtu, | ||
145 | .ndo_set_mac_address = eth_mac_addr, | 144 | .ndo_set_mac_address = eth_mac_addr, |
146 | .ndo_validate_addr = eth_validate_addr, | 145 | .ndo_validate_addr = eth_validate_addr, |
147 | }; | 146 | }; |
diff --git a/drivers/net/usb/catc.c b/drivers/net/usb/catc.c index d9ca05d3ac8e..a1f2f6f1e614 100644 --- a/drivers/net/usb/catc.c +++ b/drivers/net/usb/catc.c | |||
@@ -761,7 +761,6 @@ static const struct net_device_ops catc_netdev_ops = { | |||
761 | 761 | ||
762 | .ndo_tx_timeout = catc_tx_timeout, | 762 | .ndo_tx_timeout = catc_tx_timeout, |
763 | .ndo_set_rx_mode = catc_set_multicast_list, | 763 | .ndo_set_rx_mode = catc_set_multicast_list, |
764 | .ndo_change_mtu = eth_change_mtu, | ||
765 | .ndo_set_mac_address = eth_mac_addr, | 764 | .ndo_set_mac_address = eth_mac_addr, |
766 | .ndo_validate_addr = eth_validate_addr, | 765 | .ndo_validate_addr = eth_validate_addr, |
767 | }; | 766 | }; |
diff --git a/drivers/net/usb/kaweth.c b/drivers/net/usb/kaweth.c index 66b34ddbe216..338aed5da14d 100644 --- a/drivers/net/usb/kaweth.c +++ b/drivers/net/usb/kaweth.c | |||
@@ -982,7 +982,6 @@ static const struct net_device_ops kaweth_netdev_ops = { | |||
982 | .ndo_tx_timeout = kaweth_tx_timeout, | 982 | .ndo_tx_timeout = kaweth_tx_timeout, |
983 | .ndo_set_rx_mode = kaweth_set_rx_mode, | 983 | .ndo_set_rx_mode = kaweth_set_rx_mode, |
984 | .ndo_get_stats = kaweth_netdev_stats, | 984 | .ndo_get_stats = kaweth_netdev_stats, |
985 | .ndo_change_mtu = eth_change_mtu, | ||
986 | .ndo_set_mac_address = eth_mac_addr, | 985 | .ndo_set_mac_address = eth_mac_addr, |
987 | .ndo_validate_addr = eth_validate_addr, | 986 | .ndo_validate_addr = eth_validate_addr, |
988 | }; | 987 | }; |
diff --git a/drivers/net/usb/pegasus.c b/drivers/net/usb/pegasus.c index 1434e5dd5f9c..399f7ee57aea 100644 --- a/drivers/net/usb/pegasus.c +++ b/drivers/net/usb/pegasus.c | |||
@@ -1273,7 +1273,6 @@ static const struct net_device_ops pegasus_netdev_ops = { | |||
1273 | .ndo_set_rx_mode = pegasus_set_multicast, | 1273 | .ndo_set_rx_mode = pegasus_set_multicast, |
1274 | .ndo_get_stats = pegasus_netdev_stats, | 1274 | .ndo_get_stats = pegasus_netdev_stats, |
1275 | .ndo_tx_timeout = pegasus_tx_timeout, | 1275 | .ndo_tx_timeout = pegasus_tx_timeout, |
1276 | .ndo_change_mtu = eth_change_mtu, | ||
1277 | .ndo_set_mac_address = eth_mac_addr, | 1276 | .ndo_set_mac_address = eth_mac_addr, |
1278 | .ndo_validate_addr = eth_validate_addr, | 1277 | .ndo_validate_addr = eth_validate_addr, |
1279 | }; | 1278 | }; |
diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index 44d439f50961..2886946ca371 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c | |||
@@ -4113,7 +4113,8 @@ static int rtl8152_change_mtu(struct net_device *dev, int new_mtu) | |||
4113 | switch (tp->version) { | 4113 | switch (tp->version) { |
4114 | case RTL_VER_01: | 4114 | case RTL_VER_01: |
4115 | case RTL_VER_02: | 4115 | case RTL_VER_02: |
4116 | return eth_change_mtu(dev, new_mtu); | 4116 | dev->mtu = new_mtu; |
4117 | return 0; | ||
4117 | default: | 4118 | default: |
4118 | break; | 4119 | break; |
4119 | } | 4120 | } |
diff --git a/drivers/net/usb/rtl8150.c b/drivers/net/usb/rtl8150.c index 7c72bfac89d0..93a1bda1c1e5 100644 --- a/drivers/net/usb/rtl8150.c +++ b/drivers/net/usb/rtl8150.c | |||
@@ -847,7 +847,6 @@ static const struct net_device_ops rtl8150_netdev_ops = { | |||
847 | .ndo_set_rx_mode = rtl8150_set_multicast, | 847 | .ndo_set_rx_mode = rtl8150_set_multicast, |
848 | .ndo_set_mac_address = rtl8150_set_mac_address, | 848 | .ndo_set_mac_address = rtl8150_set_mac_address, |
849 | 849 | ||
850 | .ndo_change_mtu = eth_change_mtu, | ||
851 | .ndo_validate_addr = eth_validate_addr, | 850 | .ndo_validate_addr = eth_validate_addr, |
852 | }; | 851 | }; |
853 | 852 | ||
diff --git a/drivers/net/wan/sbni.c b/drivers/net/wan/sbni.c index 3a421ca8a4d0..3f83be98d469 100644 --- a/drivers/net/wan/sbni.c +++ b/drivers/net/wan/sbni.c | |||
@@ -211,7 +211,6 @@ static const struct net_device_ops sbni_netdev_ops = { | |||
211 | .ndo_start_xmit = sbni_start_xmit, | 211 | .ndo_start_xmit = sbni_start_xmit, |
212 | .ndo_set_rx_mode = set_multicast_list, | 212 | .ndo_set_rx_mode = set_multicast_list, |
213 | .ndo_do_ioctl = sbni_ioctl, | 213 | .ndo_do_ioctl = sbni_ioctl, |
214 | .ndo_change_mtu = eth_change_mtu, | ||
215 | .ndo_set_mac_address = eth_mac_addr, | 214 | .ndo_set_mac_address = eth_mac_addr, |
216 | .ndo_validate_addr = eth_validate_addr, | 215 | .ndo_validate_addr = eth_validate_addr, |
217 | }; | 216 | }; |
diff --git a/drivers/net/wireless/intersil/prism54/islpci_dev.c b/drivers/net/wireless/intersil/prism54/islpci_dev.c index 84a42012aeae..325176d4d796 100644 --- a/drivers/net/wireless/intersil/prism54/islpci_dev.c +++ b/drivers/net/wireless/intersil/prism54/islpci_dev.c | |||
@@ -808,7 +808,6 @@ static const struct net_device_ops islpci_netdev_ops = { | |||
808 | .ndo_start_xmit = islpci_eth_transmit, | 808 | .ndo_start_xmit = islpci_eth_transmit, |
809 | .ndo_tx_timeout = islpci_eth_tx_timeout, | 809 | .ndo_tx_timeout = islpci_eth_tx_timeout, |
810 | .ndo_set_mac_address = prism54_set_mac_address, | 810 | .ndo_set_mac_address = prism54_set_mac_address, |
811 | .ndo_change_mtu = eth_change_mtu, | ||
812 | .ndo_validate_addr = eth_validate_addr, | 811 | .ndo_validate_addr = eth_validate_addr, |
813 | }; | 812 | }; |
814 | 813 | ||
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index 431f13b4faf6..e95b79bccf9b 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c | |||
@@ -2791,7 +2791,6 @@ static void mac80211_hwsim_free(void) | |||
2791 | 2791 | ||
2792 | static const struct net_device_ops hwsim_netdev_ops = { | 2792 | static const struct net_device_ops hwsim_netdev_ops = { |
2793 | .ndo_start_xmit = hwsim_mon_xmit, | 2793 | .ndo_start_xmit = hwsim_mon_xmit, |
2794 | .ndo_change_mtu = eth_change_mtu, | ||
2795 | .ndo_set_mac_address = eth_mac_addr, | 2794 | .ndo_set_mac_address = eth_mac_addr, |
2796 | .ndo_validate_addr = eth_validate_addr, | 2795 | .ndo_validate_addr = eth_validate_addr, |
2797 | }; | 2796 | }; |
diff --git a/drivers/net/wireless/marvell/libertas/main.c b/drivers/net/wireless/marvell/libertas/main.c index 8541cbed786d..e3500203715c 100644 --- a/drivers/net/wireless/marvell/libertas/main.c +++ b/drivers/net/wireless/marvell/libertas/main.c | |||
@@ -945,7 +945,6 @@ static const struct net_device_ops lbs_netdev_ops = { | |||
945 | .ndo_start_xmit = lbs_hard_start_xmit, | 945 | .ndo_start_xmit = lbs_hard_start_xmit, |
946 | .ndo_set_mac_address = lbs_set_mac_address, | 946 | .ndo_set_mac_address = lbs_set_mac_address, |
947 | .ndo_set_rx_mode = lbs_set_multicast_list, | 947 | .ndo_set_rx_mode = lbs_set_multicast_list, |
948 | .ndo_change_mtu = eth_change_mtu, | ||
949 | .ndo_validate_addr = eth_validate_addr, | 948 | .ndo_validate_addr = eth_validate_addr, |
950 | }; | 949 | }; |
951 | 950 | ||
diff --git a/drivers/net/wireless/ray_cs.c b/drivers/net/wireless/ray_cs.c index 0881ba8535f4..4fdc7223c894 100644 --- a/drivers/net/wireless/ray_cs.c +++ b/drivers/net/wireless/ray_cs.c | |||
@@ -272,7 +272,6 @@ static const struct net_device_ops ray_netdev_ops = { | |||
272 | .ndo_set_config = ray_dev_config, | 272 | .ndo_set_config = ray_dev_config, |
273 | .ndo_get_stats = ray_get_stats, | 273 | .ndo_get_stats = ray_get_stats, |
274 | .ndo_set_rx_mode = set_multicast_list, | 274 | .ndo_set_rx_mode = set_multicast_list, |
275 | .ndo_change_mtu = eth_change_mtu, | ||
276 | .ndo_set_mac_address = eth_mac_addr, | 275 | .ndo_set_mac_address = eth_mac_addr, |
277 | .ndo_validate_addr = eth_validate_addr, | 276 | .ndo_validate_addr = eth_validate_addr, |
278 | }; | 277 | }; |
diff --git a/drivers/net/wireless/wl3501_cs.c b/drivers/net/wireless/wl3501_cs.c index 932f3f81e8cf..d9d29ab88184 100644 --- a/drivers/net/wireless/wl3501_cs.c +++ b/drivers/net/wireless/wl3501_cs.c | |||
@@ -1853,7 +1853,6 @@ static const struct net_device_ops wl3501_netdev_ops = { | |||
1853 | .ndo_stop = wl3501_close, | 1853 | .ndo_stop = wl3501_close, |
1854 | .ndo_start_xmit = wl3501_hard_start_xmit, | 1854 | .ndo_start_xmit = wl3501_hard_start_xmit, |
1855 | .ndo_tx_timeout = wl3501_tx_timeout, | 1855 | .ndo_tx_timeout = wl3501_tx_timeout, |
1856 | .ndo_change_mtu = eth_change_mtu, | ||
1857 | .ndo_set_mac_address = eth_mac_addr, | 1856 | .ndo_set_mac_address = eth_mac_addr, |
1858 | .ndo_validate_addr = eth_validate_addr, | 1857 | .ndo_validate_addr = eth_validate_addr, |
1859 | }; | 1858 | }; |
diff --git a/drivers/net/wireless/zydas/zd1201.c b/drivers/net/wireless/zydas/zd1201.c index dea049b2556f..de7ff395977a 100644 --- a/drivers/net/wireless/zydas/zd1201.c +++ b/drivers/net/wireless/zydas/zd1201.c | |||
@@ -1724,7 +1724,6 @@ static const struct net_device_ops zd1201_netdev_ops = { | |||
1724 | .ndo_tx_timeout = zd1201_tx_timeout, | 1724 | .ndo_tx_timeout = zd1201_tx_timeout, |
1725 | .ndo_set_rx_mode = zd1201_set_multicast, | 1725 | .ndo_set_rx_mode = zd1201_set_multicast, |
1726 | .ndo_set_mac_address = zd1201_set_mac_address, | 1726 | .ndo_set_mac_address = zd1201_set_mac_address, |
1727 | .ndo_change_mtu = eth_change_mtu, | ||
1728 | .ndo_validate_addr = eth_validate_addr, | 1727 | .ndo_validate_addr = eth_validate_addr, |
1729 | }; | 1728 | }; |
1730 | 1729 | ||
diff --git a/drivers/staging/rtl8188eu/os_dep/mon.c b/drivers/staging/rtl8188eu/os_dep/mon.c index d976e5e18d50..c9c9821cfc32 100644 --- a/drivers/staging/rtl8188eu/os_dep/mon.c +++ b/drivers/staging/rtl8188eu/os_dep/mon.c | |||
@@ -145,7 +145,6 @@ static netdev_tx_t mon_xmit(struct sk_buff *skb, struct net_device *dev) | |||
145 | 145 | ||
146 | static const struct net_device_ops mon_netdev_ops = { | 146 | static const struct net_device_ops mon_netdev_ops = { |
147 | .ndo_start_xmit = mon_xmit, | 147 | .ndo_start_xmit = mon_xmit, |
148 | .ndo_change_mtu = eth_change_mtu, | ||
149 | .ndo_set_mac_address = eth_mac_addr, | 148 | .ndo_set_mac_address = eth_mac_addr, |
150 | .ndo_validate_addr = eth_validate_addr, | 149 | .ndo_validate_addr = eth_validate_addr, |
151 | }; | 150 | }; |
diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c index 4c30eea45f89..5f53fbd565ef 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c | |||
@@ -2545,7 +2545,6 @@ static const struct net_device_ops rtl8192_netdev_ops = { | |||
2545 | .ndo_set_rx_mode = _rtl92e_set_multicast, | 2545 | .ndo_set_rx_mode = _rtl92e_set_multicast, |
2546 | .ndo_set_mac_address = _rtl92e_set_mac_adr, | 2546 | .ndo_set_mac_address = _rtl92e_set_mac_adr, |
2547 | .ndo_validate_addr = eth_validate_addr, | 2547 | .ndo_validate_addr = eth_validate_addr, |
2548 | .ndo_change_mtu = eth_change_mtu, | ||
2549 | .ndo_start_xmit = rtllib_xmit, | 2548 | .ndo_start_xmit = rtllib_xmit, |
2550 | }; | 2549 | }; |
2551 | 2550 | ||
diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c index 457eeb5f5239..fdb03dccb449 100644 --- a/drivers/staging/rtl8192u/r8192U_core.c +++ b/drivers/staging/rtl8192u/r8192U_core.c | |||
@@ -4930,7 +4930,6 @@ static const struct net_device_ops rtl8192_netdev_ops = { | |||
4930 | .ndo_set_rx_mode = r8192_set_multicast, | 4930 | .ndo_set_rx_mode = r8192_set_multicast, |
4931 | .ndo_set_mac_address = r8192_set_mac_adr, | 4931 | .ndo_set_mac_address = r8192_set_mac_adr, |
4932 | .ndo_validate_addr = eth_validate_addr, | 4932 | .ndo_validate_addr = eth_validate_addr, |
4933 | .ndo_change_mtu = eth_change_mtu, | ||
4934 | .ndo_start_xmit = ieee80211_xmit, | 4933 | .ndo_start_xmit = ieee80211_xmit, |
4935 | }; | 4934 | }; |
4936 | 4935 | ||
diff --git a/drivers/staging/slicoss/slicoss.c b/drivers/staging/slicoss/slicoss.c index 062307ad7fed..2802b900f8ee 100644 --- a/drivers/staging/slicoss/slicoss.c +++ b/drivers/staging/slicoss/slicoss.c | |||
@@ -2880,7 +2880,6 @@ static const struct net_device_ops slic_netdev_ops = { | |||
2880 | .ndo_get_stats = slic_get_stats, | 2880 | .ndo_get_stats = slic_get_stats, |
2881 | .ndo_set_rx_mode = slic_mcast_set_list, | 2881 | .ndo_set_rx_mode = slic_mcast_set_list, |
2882 | .ndo_validate_addr = eth_validate_addr, | 2882 | .ndo_validate_addr = eth_validate_addr, |
2883 | .ndo_change_mtu = eth_change_mtu, | ||
2884 | }; | 2883 | }; |
2885 | 2884 | ||
2886 | static u32 slic_card_locate(struct adapter *adapter) | 2885 | static u32 slic_card_locate(struct adapter *adapter) |
diff --git a/include/uapi/linux/if_ether.h b/include/uapi/linux/if_ether.h index 117d02e0fc31..864d6f2b2cb0 100644 --- a/include/uapi/linux/if_ether.h +++ b/include/uapi/linux/if_ether.h | |||
@@ -35,6 +35,8 @@ | |||
35 | #define ETH_FRAME_LEN 1514 /* Max. octets in frame sans FCS */ | 35 | #define ETH_FRAME_LEN 1514 /* Max. octets in frame sans FCS */ |
36 | #define ETH_FCS_LEN 4 /* Octets in the FCS */ | 36 | #define ETH_FCS_LEN 4 /* Octets in the FCS */ |
37 | 37 | ||
38 | #define ETH_MIN_MTU 68 /* Min IPv4 MTU per RFC791 */ | ||
39 | |||
38 | /* | 40 | /* |
39 | * These are the defined Ethernet Protocol ID's. | 41 | * These are the defined Ethernet Protocol ID's. |
40 | */ | 42 | */ |
diff --git a/net/atm/br2684.c b/net/atm/br2684.c index aa0047c5c467..c7d82f4e8422 100644 --- a/net/atm/br2684.c +++ b/net/atm/br2684.c | |||
@@ -620,14 +620,12 @@ error: | |||
620 | static const struct net_device_ops br2684_netdev_ops = { | 620 | static const struct net_device_ops br2684_netdev_ops = { |
621 | .ndo_start_xmit = br2684_start_xmit, | 621 | .ndo_start_xmit = br2684_start_xmit, |
622 | .ndo_set_mac_address = br2684_mac_addr, | 622 | .ndo_set_mac_address = br2684_mac_addr, |
623 | .ndo_change_mtu = eth_change_mtu, | ||
624 | .ndo_validate_addr = eth_validate_addr, | 623 | .ndo_validate_addr = eth_validate_addr, |
625 | }; | 624 | }; |
626 | 625 | ||
627 | static const struct net_device_ops br2684_netdev_ops_routed = { | 626 | static const struct net_device_ops br2684_netdev_ops_routed = { |
628 | .ndo_start_xmit = br2684_start_xmit, | 627 | .ndo_start_xmit = br2684_start_xmit, |
629 | .ndo_set_mac_address = br2684_mac_addr, | 628 | .ndo_set_mac_address = br2684_mac_addr, |
630 | .ndo_change_mtu = eth_change_mtu | ||
631 | }; | 629 | }; |
632 | 630 | ||
633 | static void br2684_setup(struct net_device *netdev) | 631 | static void br2684_setup(struct net_device *netdev) |
diff --git a/net/bluetooth/bnep/netdev.c b/net/bluetooth/bnep/netdev.c index f4fcb4a9d5c1..0f25ddc319e2 100644 --- a/net/bluetooth/bnep/netdev.c +++ b/net/bluetooth/bnep/netdev.c | |||
@@ -211,7 +211,6 @@ static const struct net_device_ops bnep_netdev_ops = { | |||
211 | .ndo_set_rx_mode = bnep_net_set_mc_list, | 211 | .ndo_set_rx_mode = bnep_net_set_mc_list, |
212 | .ndo_set_mac_address = bnep_net_set_mac_addr, | 212 | .ndo_set_mac_address = bnep_net_set_mac_addr, |
213 | .ndo_tx_timeout = bnep_net_timeout, | 213 | .ndo_tx_timeout = bnep_net_timeout, |
214 | .ndo_change_mtu = eth_change_mtu, | ||
215 | 214 | ||
216 | }; | 215 | }; |
217 | 216 | ||
diff --git a/net/ethernet/eth.c b/net/ethernet/eth.c index 66dff5e3d772..f983c102ebe3 100644 --- a/net/ethernet/eth.c +++ b/net/ethernet/eth.c | |||
@@ -322,8 +322,7 @@ EXPORT_SYMBOL(eth_mac_addr); | |||
322 | */ | 322 | */ |
323 | int eth_change_mtu(struct net_device *dev, int new_mtu) | 323 | int eth_change_mtu(struct net_device *dev, int new_mtu) |
324 | { | 324 | { |
325 | if (new_mtu < 68 || new_mtu > ETH_DATA_LEN) | 325 | netdev_warn(dev, "%s is deprecated\n", __func__); |
326 | return -EINVAL; | ||
327 | dev->mtu = new_mtu; | 326 | dev->mtu = new_mtu; |
328 | return 0; | 327 | return 0; |
329 | } | 328 | } |
@@ -357,6 +356,8 @@ void ether_setup(struct net_device *dev) | |||
357 | dev->type = ARPHRD_ETHER; | 356 | dev->type = ARPHRD_ETHER; |
358 | dev->hard_header_len = ETH_HLEN; | 357 | dev->hard_header_len = ETH_HLEN; |
359 | dev->mtu = ETH_DATA_LEN; | 358 | dev->mtu = ETH_DATA_LEN; |
359 | dev->min_mtu = ETH_MIN_MTU; | ||
360 | dev->max_mtu = ETH_DATA_LEN; | ||
360 | dev->addr_len = ETH_ALEN; | 361 | dev->addr_len = ETH_ALEN; |
361 | dev->tx_queue_len = 1000; /* Ethernet wants good queues */ | 362 | dev->tx_queue_len = 1000; /* Ethernet wants good queues */ |
362 | dev->flags = IFF_BROADCAST|IFF_MULTICAST; | 363 | dev->flags = IFF_BROADCAST|IFF_MULTICAST; |
diff --git a/net/irda/irlan/irlan_eth.c b/net/irda/irlan/irlan_eth.c index d8b7267280c3..8192eaea4ecd 100644 --- a/net/irda/irlan/irlan_eth.c +++ b/net/irda/irlan/irlan_eth.c | |||
@@ -51,7 +51,6 @@ static const struct net_device_ops irlan_eth_netdev_ops = { | |||
51 | .ndo_stop = irlan_eth_close, | 51 | .ndo_stop = irlan_eth_close, |
52 | .ndo_start_xmit = irlan_eth_xmit, | 52 | .ndo_start_xmit = irlan_eth_xmit, |
53 | .ndo_set_rx_mode = irlan_eth_set_multicast_list, | 53 | .ndo_set_rx_mode = irlan_eth_set_multicast_list, |
54 | .ndo_change_mtu = eth_change_mtu, | ||
55 | .ndo_validate_addr = eth_validate_addr, | 54 | .ndo_validate_addr = eth_validate_addr, |
56 | }; | 55 | }; |
57 | 56 | ||