]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
net: deprecate eth_change_mtu, remove usage
authorJarod Wilson <jarod@redhat.com>
Sat, 8 Oct 2016 02:04:34 +0000 (22:04 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Oct 2016 13:36:57 +0000 (09:36 -0400)
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:
arch/m68k/emu/nfeth.c
drivers/isdn/hysdn/hysdn_net.c
drivers/media/dvb-core/dvb_net.c
drivers/net/appletalk/ipddp.c
drivers/net/cris/eth_v10.c
drivers/net/ethernet/3com/3c509.c
drivers/net/ethernet/3com/3c515.c
drivers/net/ethernet/3com/3c574_cs.c
drivers/net/ethernet/3com/3c589_cs.c
drivers/net/ethernet/3com/3c59x.c
drivers/net/ethernet/3com/typhoon.c
drivers/net/ethernet/8390/8390.c
drivers/net/ethernet/8390/8390p.c
drivers/net/ethernet/8390/ax88796.c
drivers/net/ethernet/8390/axnet_cs.c
drivers/net/ethernet/8390/etherh.c
drivers/net/ethernet/8390/hydra.c
drivers/net/ethernet/8390/mac8390.c
drivers/net/ethernet/8390/mcf8390.c
drivers/net/ethernet/8390/ne2k-pci.c
drivers/net/ethernet/8390/pcnet_cs.c
drivers/net/ethernet/8390/smc-ultra.c
drivers/net/ethernet/8390/wd.c
drivers/net/ethernet/8390/zorro8390.c
drivers/net/ethernet/adaptec/starfire.c
drivers/net/ethernet/adi/bfin_mac.c
drivers/net/ethernet/allwinner/sun4i-emac.c
drivers/net/ethernet/amd/a2065.c
drivers/net/ethernet/amd/am79c961a.c
drivers/net/ethernet/amd/ariadne.c
drivers/net/ethernet/amd/atarilance.c
drivers/net/ethernet/amd/au1000_eth.c
drivers/net/ethernet/amd/declance.c
drivers/net/ethernet/amd/hplance.c
drivers/net/ethernet/amd/lance.c
drivers/net/ethernet/amd/mvme147.c
drivers/net/ethernet/amd/ni65.c
drivers/net/ethernet/amd/nmclan_cs.c
drivers/net/ethernet/amd/pcnet32.c
drivers/net/ethernet/amd/sun3lance.c
drivers/net/ethernet/amd/sunlance.c
drivers/net/ethernet/apm/xgene/xgene_enet_main.c
drivers/net/ethernet/apple/bmac.c
drivers/net/ethernet/apple/mace.c
drivers/net/ethernet/apple/macmace.c
drivers/net/ethernet/aurora/nb8800.c
drivers/net/ethernet/cadence/macb.c
drivers/net/ethernet/cirrus/cs89x0.c
drivers/net/ethernet/cirrus/ep93xx_eth.c
drivers/net/ethernet/cirrus/mac89x0.c
drivers/net/ethernet/davicom/dm9000.c
drivers/net/ethernet/dec/tulip/de2104x.c
drivers/net/ethernet/dec/tulip/de4x5.c
drivers/net/ethernet/dec/tulip/dmfe.c
drivers/net/ethernet/dec/tulip/tulip_core.c
drivers/net/ethernet/dec/tulip/uli526x.c
drivers/net/ethernet/dec/tulip/winbond-840.c
drivers/net/ethernet/dec/tulip/xircom_cb.c
drivers/net/ethernet/dnet.c
drivers/net/ethernet/ec_bhf.c
drivers/net/ethernet/fealnx.c
drivers/net/ethernet/freescale/fec_main.c
drivers/net/ethernet/freescale/fec_mpc52xx.c
drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c
drivers/net/ethernet/freescale/ucc_geth.c
drivers/net/ethernet/fujitsu/fmvj18x_cs.c
drivers/net/ethernet/hisilicon/hip04_eth.c
drivers/net/ethernet/hisilicon/hisi_femac.c
drivers/net/ethernet/hp/hp100.c
drivers/net/ethernet/i825xx/82596.c
drivers/net/ethernet/i825xx/ether1.c
drivers/net/ethernet/i825xx/lib82596.c
drivers/net/ethernet/i825xx/sun3_82586.c
drivers/net/ethernet/ibm/emac/core.c
drivers/net/ethernet/korina.c
drivers/net/ethernet/lantiq_etop.c
drivers/net/ethernet/mediatek/mtk_eth_soc.c
drivers/net/ethernet/micrel/ks8851.c
drivers/net/ethernet/micrel/ks8851_mll.c
drivers/net/ethernet/microchip/enc28j60.c
drivers/net/ethernet/moxa/moxart_ether.c
drivers/net/ethernet/natsemi/jazzsonic.c
drivers/net/ethernet/natsemi/macsonic.c
drivers/net/ethernet/natsemi/xtsonic.c
drivers/net/ethernet/netx-eth.c
drivers/net/ethernet/nuvoton/w90p910_ether.c
drivers/net/ethernet/nxp/lpc_eth.c
drivers/net/ethernet/packetengines/hamachi.c
drivers/net/ethernet/packetengines/yellowfin.c
drivers/net/ethernet/qlogic/qla3xxx.c
drivers/net/ethernet/rdc/r6040.c
drivers/net/ethernet/realtek/atp.c
drivers/net/ethernet/renesas/ravb_main.c
drivers/net/ethernet/renesas/sh_eth.c
drivers/net/ethernet/seeq/ether3.c
drivers/net/ethernet/seeq/sgiseeq.c
drivers/net/ethernet/sgi/ioc3-eth.c
drivers/net/ethernet/sgi/meth.c
drivers/net/ethernet/silan/sc92031.c
drivers/net/ethernet/sis/sis190.c
drivers/net/ethernet/sis/sis900.c
drivers/net/ethernet/smsc/epic100.c
drivers/net/ethernet/smsc/smc911x.c
drivers/net/ethernet/smsc/smc9194.c
drivers/net/ethernet/smsc/smc91c92_cs.c
drivers/net/ethernet/smsc/smc91x.c
drivers/net/ethernet/smsc/smsc911x.c
drivers/net/ethernet/sun/sunbmac.c
drivers/net/ethernet/sun/sunhme.c
drivers/net/ethernet/sun/sunqe.c
drivers/net/ethernet/ti/cpmac.c
drivers/net/ethernet/ti/cpsw.c
drivers/net/ethernet/ti/tlan.c
drivers/net/ethernet/toshiba/tc35815.c
drivers/net/ethernet/tundra/tsi108_eth.c
drivers/net/ethernet/via/via-rhine.c
drivers/net/ethernet/wiznet/w5100.c
drivers/net/ethernet/wiznet/w5300.c
drivers/net/ethernet/xircom/xirc2ps_cs.c
drivers/net/ethernet/xscale/ixp4xx_eth.c
drivers/net/plip/plip.c
drivers/net/sb1000.c
drivers/net/usb/catc.c
drivers/net/usb/kaweth.c
drivers/net/usb/pegasus.c
drivers/net/usb/r8152.c
drivers/net/usb/rtl8150.c
drivers/net/wan/sbni.c
drivers/net/wireless/intersil/prism54/islpci_dev.c
drivers/net/wireless/mac80211_hwsim.c
drivers/net/wireless/marvell/libertas/main.c
drivers/net/wireless/ray_cs.c
drivers/net/wireless/wl3501_cs.c
drivers/net/wireless/zydas/zd1201.c
drivers/staging/rtl8188eu/os_dep/mon.c
drivers/staging/rtl8192e/rtl8192e/rtl_core.c
drivers/staging/rtl8192u/r8192U_core.c
drivers/staging/slicoss/slicoss.c
include/uapi/linux/if_ether.h
net/atm/br2684.c
net/bluetooth/bnep/netdev.c
net/ethernet/eth.c
net/irda/irlan/irlan_eth.c

index a0985fd088d1c8a0381dfe75420c1e2d25b8d88c..fc4be028c4189ee9ec93265b844633411a945eb4 100644 (file)
@@ -184,7 +184,6 @@ static const struct net_device_ops nfeth_netdev_ops = {
        .ndo_start_xmit         = nfeth_xmit,
        .ndo_tx_timeout         = nfeth_tx_timeout,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
 };
 
index 5609deee7cd3f7891076dd474493bcfa91c7ad87..b93a4e9a8d3449e4428e558a8c31c6d0014d8a16 100644 (file)
@@ -232,7 +232,6 @@ static const struct net_device_ops hysdn_netdev_ops = {
        .ndo_open               = net_open,
        .ndo_stop               = net_close,
        .ndo_start_xmit         = net_send_packet,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
index 9914f69a4a02b82bbd3717746d0080aa1454d370..0da622f5fe69d33609464b5841ee1e08fd66b1fe 100644 (file)
@@ -1198,7 +1198,6 @@ static const struct net_device_ops dvb_netdev_ops = {
        .ndo_start_xmit         = dvb_net_tx,
        .ndo_set_rx_mode        = dvb_net_set_multicast_list,
        .ndo_set_mac_address    = dvb_net_set_mac,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
 };
 
@@ -1209,6 +1208,7 @@ static void dvb_net_setup(struct net_device *dev)
        dev->header_ops         = &dvb_header_ops;
        dev->netdev_ops         = &dvb_netdev_ops;
        dev->mtu                = 4096;
+       dev->max_mtu            = 4096;
 
        dev->flags |= IFF_NOARP;
 }
index e90c6a7333d76b4f11e3fccfdcad094be141108e..31f89f1c61233365fd3153ca5f30f171b03ead5e 100644 (file)
@@ -59,7 +59,6 @@ static int ipddp_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd);
 static const struct net_device_ops ipddp_netdev_ops = {
        .ndo_start_xmit         = ipddp_xmit,
        .ndo_do_ioctl           = ipddp_ioctl,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
index 221f5f011ff9e6bb64d07d36aef80bbd749f14ed..e128826aa117857b6ac36f9f1f273c1d9eab9044 100644 (file)
@@ -264,7 +264,6 @@ static const struct net_device_ops e100_netdev_ops = {
        .ndo_do_ioctl           = e100_ioctl,
        .ndo_set_mac_address    = e100_set_mac_address,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_config         = e100_set_config,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller    = e100_netpoll,
index 91ada52f776b67b84be5c02d1daff13fe85b8e0d..9f9a5f440e2f71f656299b41a6828b70a30898d8 100644 (file)
@@ -508,7 +508,6 @@ static const struct net_device_ops netdev_ops = {
        .ndo_get_stats          = el3_get_stats,
        .ndo_set_rx_mode        = set_multicast_list,
        .ndo_tx_timeout         = el3_tx_timeout,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index b26e038b4a0e904861262cc6c0bcf570d3a2d6d0..b9f4c463e516c34e538e78ccce5a7c0efcf7c818 100644 (file)
@@ -570,7 +570,6 @@ static const struct net_device_ops netdev_ops = {
        .ndo_tx_timeout         = corkscrew_timeout,
        .ndo_get_stats          = corkscrew_get_stats,
        .ndo_set_rx_mode        = set_rx_mode,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
index b88afd7593074d83bd878882d3fc31a4306dd654..9359a37fedc075fe82474e0a42726bfd9c22e3b3 100644 (file)
@@ -254,7 +254,6 @@ static const struct net_device_ops el3_netdev_ops = {
        .ndo_get_stats          = el3_get_stats,
        .ndo_do_ioctl           = el3_ioctl,
        .ndo_set_rx_mode        = set_multicast_list,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
index 71396e4b87e399f757d27828adc97c2a00db8660..e28254a0059971c3432ea3726f35d8f831780e49 100644 (file)
@@ -188,7 +188,6 @@ static const struct net_device_ops el3_netdev_ops = {
        .ndo_set_config         = el3_config,
        .ndo_get_stats          = el3_get_stats,
        .ndo_set_rx_mode        = set_multicast_list,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
index 9133e7926da53050c0614c15924655eb0330dae5..3ecf61382269d0a190ccb3aca80308cedf1f9e56 100644 (file)
@@ -1062,7 +1062,6 @@ static const struct net_device_ops boomrang_netdev_ops = {
        .ndo_do_ioctl           = vortex_ioctl,
 #endif
        .ndo_set_rx_mode        = set_rx_mode,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 #ifdef CONFIG_NET_POLL_CONTROLLER
@@ -1080,7 +1079,6 @@ static const struct net_device_ops vortex_netdev_ops = {
        .ndo_do_ioctl           = vortex_ioctl,
 #endif
        .ndo_set_rx_mode        = set_rx_mode,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index 8f8418d2ac4ad07016c37e6d5cb255e2b9709b85..506b507b415810cd9833782615cc9b575a82278e 100644 (file)
@@ -2255,7 +2255,6 @@ static const struct net_device_ops typhoon_netdev_ops = {
        .ndo_get_stats          = typhoon_get_stats,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
-       .ndo_change_mtu         = eth_change_mtu,
 };
 
 static int
index 5db1f55abef44fe9bf155d577c7aabcc521fadb8..a43544af257b562f43f1525e06891b2cdf18889a 100644 (file)
@@ -64,7 +64,6 @@ const struct net_device_ops ei_netdev_ops = {
        .ndo_set_rx_mode        = ei_set_multicast_list,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
-       .ndo_change_mtu         = eth_change_mtu,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller    = ei_poll,
 #endif
index e8fc2e87e840f40e73b1cc14434342e1cbace64e..46d2257c4430bedad7975d7f198570be2c3ab284 100644 (file)
@@ -69,7 +69,6 @@ const struct net_device_ops eip_netdev_ops = {
        .ndo_set_rx_mode        = eip_set_multicast_list,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
-       .ndo_change_mtu         = eth_change_mtu,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller    = eip_poll,
 #endif
index 39ca9350d1b22d0d153f377e86a41212fa12d380..b0a3b85fc6f8d346f3a7d421b094b491d022dd12 100644 (file)
@@ -536,7 +536,6 @@ static const struct net_device_ops ax_netdev_ops = {
        .ndo_set_rx_mode        = ax_ei_set_multicast_list,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
-       .ndo_change_mtu         = eth_change_mtu,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller    = ax_ei_poll,
 #endif
index 4ea717d68c957a38704ec403ccc80712274bc0a9..1d84a0544ace95224906572bc5a50919819763da 100644 (file)
@@ -134,7 +134,6 @@ static const struct net_device_ops axnet_netdev_ops = {
        .ndo_tx_timeout         = axnet_tx_timeout,
        .ndo_get_stats          = get_stats,
        .ndo_set_rx_mode        = set_multicast_list,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
index d686b9cac29f0b4ac2805455b6ba8f1f99017a74..11cbf22ad2017b28015344deac45ce229d149950 100644 (file)
@@ -654,7 +654,6 @@ static const struct net_device_ops etherh_netdev_ops = {
        .ndo_set_rx_mode        = __ei_set_multicast_list,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
-       .ndo_change_mtu         = eth_change_mtu,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller    = __ei_poll,
 #endif
index 0fe19d609c2ecbf0d84881f2f0960916eb4c010c..8ae249195301962f22c2abcc0e04f21e136cd812 100644 (file)
@@ -105,7 +105,6 @@ static const struct net_device_ops hydra_netdev_ops = {
        .ndo_set_rx_mode        = __ei_set_multicast_list,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
-       .ndo_change_mtu         = eth_change_mtu,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller    = __ei_poll,
 #endif
index b9283901136e974a9ad4207cae898cb492207700..9497f18eaba02d5f9caa16619123065441c46f06 100644 (file)
@@ -483,7 +483,6 @@ static const struct net_device_ops mac8390_netdev_ops = {
        .ndo_set_rx_mode        = __ei_set_multicast_list,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
-       .ndo_change_mtu         = eth_change_mtu,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller    = __ei_poll,
 #endif
index e1c055574a119256694b49150bbc7728d3306b7f..4bb967bc879e33dd2da16dad864159d671316719 100644 (file)
@@ -308,7 +308,6 @@ static const struct net_device_ops mcf8390_netdev_ops = {
        .ndo_set_rx_mode        = __ei_set_multicast_list,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
-       .ndo_change_mtu         = eth_change_mtu,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller    = __ei_poll,
 #endif
index 57e97910c72811ac9e5c24428cd3e3500dd089dd..07355302443d8d4dcefe3ef0fb89a4e426a7526f 100644 (file)
@@ -209,7 +209,6 @@ static const struct net_device_ops ne2k_netdev_ops = {
        .ndo_set_rx_mode        = ei_set_multicast_list,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
-       .ndo_change_mtu         = eth_change_mtu,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller = ei_poll,
 #endif
index 2f79d29f17f2f0fae388f9cd4b4d9da201793775..63079a6e20d94910748b49787e84dbca0cd6df4b 100644 (file)
@@ -227,7 +227,6 @@ static const struct net_device_ops pcnet_netdev_ops = {
        .ndo_do_ioctl           = ei_ioctl,
        .ndo_set_rx_mode        = ei_set_multicast_list,
        .ndo_tx_timeout         = ei_tx_timeout,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index 139385dcdaa753db90e14c6265fa1d0c117acb15..364b6514f65fa61b68780aa996b6747f4581f4f0 100644 (file)
@@ -195,7 +195,6 @@ static const struct net_device_ops ultra_netdev_ops = {
        .ndo_set_rx_mode        = ei_set_multicast_list,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
-       .ndo_change_mtu         = eth_change_mtu,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller    = ultra_poll,
 #endif
index dd7d816bde52680b793880ab27e0c00454125a7c..ad019cbc698f6ea8ec9fbd648015e6630a6b5f82 100644 (file)
@@ -156,7 +156,6 @@ static const struct net_device_ops wd_netdev_ops = {
        .ndo_set_rx_mode        = ei_set_multicast_list,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
-       .ndo_change_mtu         = eth_change_mtu,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller    = ei_poll,
 #endif
index 8308728fad0511c74f0164488a59e09ef2ea8194..6d93956b293b4b0fc62c47dd64eaeb345265b8b7 100644 (file)
@@ -284,7 +284,6 @@ static const struct net_device_ops zorro8390_netdev_ops = {
        .ndo_set_rx_mode        = __ei_set_multicast_list,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
-       .ndo_change_mtu         = eth_change_mtu,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller    = __ei_poll,
 #endif
index 8af2c88d5b33038bccaa94a3100864782fb2a963..4a9a16e25666199d14b8ac3704d0870500bb7df4 100644 (file)
@@ -634,7 +634,6 @@ static const struct net_device_ops netdev_ops = {
        .ndo_get_stats          = get_stats,
        .ndo_set_rx_mode        = set_rx_mode,
        .ndo_do_ioctl           = netdev_ioctl,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 #ifdef VLAN_SUPPORT
index 00f9ee3fc3e5c4dee20a820bcd0a066bdeb02b2a..88164529b52a2a44207b71b49c86297067b71718 100644 (file)
@@ -1571,7 +1571,6 @@ static const struct net_device_ops bfin_mac_netdev_ops = {
        .ndo_set_rx_mode        = bfin_mac_set_multicast_list,
        .ndo_do_ioctl           = bfin_mac_ioctl,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_change_mtu         = eth_change_mtu,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller    = bfin_mac_poll_controller,
 #endif
index 6ffdff68bfc477a426acc065db88c38f446b4e21..af27f9dbedf2e366c4948449046f03c4d3625fb8 100644 (file)
@@ -773,7 +773,6 @@ static const struct net_device_ops emac_netdev_ops = {
        .ndo_tx_timeout         = emac_timeout,
        .ndo_set_rx_mode        = emac_set_rx_mode,
        .ndo_do_ioctl           = emac_ioctl,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = emac_set_mac_address,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index a83cd1c4ce1d051885050c6d5b7b257fce562c62..ee4b94e3cda906cd4ed4fa8dcfd8048a7c81ae52 100644 (file)
@@ -665,7 +665,6 @@ static const struct net_device_ops lance_netdev_ops = {
        .ndo_tx_timeout         = lance_tx_timeout,
        .ndo_set_rx_mode        = lance_set_multicast,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
 };
 
index fcdf5dda448f9c7acf5a0a537cbbcb0de76b09df..b11e910850f7f03d8ecd30ca02f5fe9a71fa4a1d 100644 (file)
@@ -663,7 +663,6 @@ static const struct net_device_ops am79c961_netdev_ops = {
        .ndo_set_rx_mode        = am79c961_setmulticastlist,
        .ndo_tx_timeout         = am79c961_timeout,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller    = am79c961_poll_controller,
index 968b7bfac8fcaa9af767c57c474a83b3229b09a0..5fd7b15b0574604e30d5827fc26397fc8603cce7 100644 (file)
@@ -706,7 +706,6 @@ static const struct net_device_ops ariadne_netdev_ops = {
        .ndo_get_stats          = ariadne_get_stats,
        .ndo_set_rx_mode        = set_multicast_list,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
 };
 
index d2bc8e5dcd23b21dab55b377961d358b55a29ede..e53ccc3b7d8dcf73eff299469a0dbb677f61058d 100644 (file)
@@ -460,7 +460,6 @@ static const struct net_device_ops lance_netdev_ops = {
        .ndo_set_mac_address    = lance_set_mac_address,
        .ndo_tx_timeout         = lance_tx_timeout,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_change_mtu         = eth_change_mtu,
 };
 
 static unsigned long __init lance_probe1( struct net_device *dev,
index df664187cd8271fd40a441ccebf2de29629b9722..a3c90fe5de00c6b8151893c788b5ad7f36fe6344 100644 (file)
@@ -1103,7 +1103,6 @@ static const struct net_device_ops au1000_netdev_ops = {
        .ndo_tx_timeout         = au1000_tx_timeout,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_change_mtu         = eth_change_mtu,
 };
 
 static int au1000_probe(struct platform_device *pdev)
index b799c7ac899b984bbeeacfc55f0d0917c7e2a037..76e5fc7adff519a8ed18b412a5bb42754eba8fec 100644 (file)
@@ -1013,7 +1013,6 @@ static const struct net_device_ops lance_netdev_ops = {
        .ndo_start_xmit         = lance_start_xmit,
        .ndo_tx_timeout         = lance_tx_timeout,
        .ndo_set_rx_mode        = lance_set_multicast,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
 };
index 6c9de117ffc68f2941d20f465161460f806f2d04..c3dbf1c8a2699dabaa0e5178cba241e20e0c6e75 100644 (file)
@@ -72,7 +72,6 @@ static const struct net_device_ops hplance_netdev_ops = {
        .ndo_stop               = hplance_close,
        .ndo_start_xmit         = lance_start_xmit,
        .ndo_set_rx_mode        = lance_set_multicast,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index abb1ba228b26512f020d89f5123faaa1a9a7e3a4..61a641f2314968cda20bd2c76b5de11309efa207 100644 (file)
@@ -461,7 +461,6 @@ static const struct net_device_ops lance_netdev_ops = {
        .ndo_get_stats          = lance_get_stats,
        .ndo_set_rx_mode        = set_multicast_list,
        .ndo_tx_timeout         = lance_tx_timeout,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
index 0660ac5846bbef3e07d99c25a3c2d63f6eff9e12..0a920448522f350cf3dcf968e064a3715e3f65e1 100644 (file)
@@ -62,7 +62,6 @@ static const struct net_device_ops lance_netdev_ops = {
        .ndo_start_xmit         = lance_start_xmit,
        .ndo_set_rx_mode        = lance_set_multicast,
        .ndo_tx_timeout         = lance_tx_timeout,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
 };
index cda53db75f17bdc957bcf3dcce20eda52dd04daa..5985bf220a8da9d426a38d7e593f6daaa3859de0 100644 (file)
@@ -407,7 +407,6 @@ static const struct net_device_ops ni65_netdev_ops = {
        .ndo_start_xmit         = ni65_send_packet,
        .ndo_tx_timeout         = ni65_timeout,
        .ndo_set_rx_mode        = set_multicast_list,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
index 2807e181647bfde7b81b4e6ecd648be2a9c40ef2..113a3b3cc50c9d5f6df5fc2267b79f6cc2828c08 100644 (file)
@@ -427,7 +427,6 @@ static const struct net_device_ops mace_netdev_ops = {
        .ndo_set_config         = mace_config,
        .ndo_get_stats          = mace_get_stats,
        .ndo_set_rx_mode        = set_multicast_list,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
index c22bf52d3320b4831f944ceef01770264acc3c6b..adc7ab99a2f692b8d71fb27fc1904a1bbc837b46 100644 (file)
@@ -1527,7 +1527,6 @@ static const struct net_device_ops pcnet32_netdev_ops = {
        .ndo_get_stats          = pcnet32_get_stats,
        .ndo_set_rx_mode        = pcnet32_set_multicast_list,
        .ndo_do_ioctl           = pcnet32_ioctl,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index 3d8c6b2cdea4ca5906e0abb09a0523a5aa03b74c..12bb4f1489fc0560ff76dbaa5009a35c80a87362 100644 (file)
@@ -299,7 +299,6 @@ static const struct net_device_ops lance_netdev_ops = {
        .ndo_start_xmit         = lance_start_xmit,
        .ndo_set_rx_mode        = set_multicast_list,
        .ndo_set_mac_address    = NULL,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
 };
 
index 9b56b40259dccbfe14bffff5ce246cc71bed17bd..291ca5187f12333e2c13c23adc79903044c78bb5 100644 (file)
@@ -1294,7 +1294,6 @@ static const struct net_device_ops sparc_lance_ops = {
        .ndo_start_xmit         = lance_start_xmit,
        .ndo_set_rx_mode        = lance_set_multicast,
        .ndo_tx_timeout         = lance_tx_timeout,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
index f75d9556152f766e076a531ff66e6633769a41cd..3fc7b0db952bbf404e2182da71da670f566accf1 100644 (file)
@@ -1252,7 +1252,6 @@ static const struct net_device_ops xgene_ndev_ops = {
        .ndo_start_xmit = xgene_enet_start_xmit,
        .ndo_tx_timeout = xgene_enet_timeout,
        .ndo_get_stats64 = xgene_enet_get_stats64,
-       .ndo_change_mtu = eth_change_mtu,
        .ndo_set_mac_address = xgene_enet_set_mac_address,
 };
 
index a65d7a60f116828dc65196d594b1d6a5ecf01a4a..2b2d87089987f9d9fbb0ddf1a4b961e56d791445 100644 (file)
@@ -1237,7 +1237,6 @@ static const struct net_device_ops bmac_netdev_ops = {
        .ndo_start_xmit         = bmac_output,
        .ndo_set_rx_mode        = bmac_set_multicast,
        .ndo_set_mac_address    = bmac_set_address,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
 };
 
index e58a7c73766e9db816a8d4d4dd9d1ed91e39baff..96dd5300e0e5f500844ba980099139e0487b5d20 100644 (file)
@@ -102,7 +102,6 @@ static const struct net_device_ops mace_netdev_ops = {
        .ndo_start_xmit         = mace_xmit_start,
        .ndo_set_rx_mode        = mace_set_multicast,
        .ndo_set_mac_address    = mace_set_address,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
 };
 
index 89914ca17a490799b3fa9ec9f54ab87c7cd85a80..857df9c45f04ddc9829b83c8b2744e2306cb2224 100644 (file)
@@ -186,7 +186,6 @@ static const struct net_device_ops mace_netdev_ops = {
        .ndo_tx_timeout         = mace_tx_timeout,
        .ndo_set_rx_mode        = mace_set_multicast,
        .ndo_set_mac_address    = mace_set_address,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
 };
 
index b047fd607b83bc796684ceb945ccc715ebdb1c80..453dc0967125cb55f0b2eae1a3bac8b2132f659e 100644 (file)
@@ -1032,7 +1032,6 @@ static const struct net_device_ops nb8800_netdev_ops = {
        .ndo_set_mac_address    = nb8800_set_mac_address,
        .ndo_set_rx_mode        = nb8800_set_rx_mode,
        .ndo_do_ioctl           = nb8800_ioctl,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
 };
 
index b32444a3ed79d311fc4047aa10eabc5f630b66cb..20e72044b7652df2652b6ec521c06e82ea33b699 100644 (file)
@@ -2793,7 +2793,6 @@ static const struct net_device_ops at91ether_netdev_ops = {
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_do_ioctl           = macb_ioctl,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_change_mtu         = eth_change_mtu,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller    = at91ether_poll_controller,
 #endif
index c363b58552e9d1f919a9925134442e9f490282ea..3647b28e8de019839e38234ff0a1b495ce4b05fa 100644 (file)
@@ -1266,7 +1266,6 @@ static const struct net_device_ops net_ops = {
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller    = net_poll_controller,
 #endif
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
 };
 
index de9f7c97d916d3d8d760282e726cf49f4181a56b..9119af0888210f098d4117b779b25258f83cab04 100644 (file)
@@ -749,7 +749,6 @@ static const struct net_device_ops ep93xx_netdev_ops = {
        .ndo_start_xmit         = ep93xx_xmit,
        .ndo_do_ioctl           = ep93xx_ioctl,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
 };
 
index 07719676c305fc0b433f614c9ec8365dad88859f..b600fbbbf679885231e7d4cd5a9628a5deb70382 100644 (file)
@@ -172,7 +172,6 @@ static const struct net_device_ops mac89x0_netdev_ops = {
        .ndo_set_rx_mode        = set_multicast_list,
        .ndo_set_mac_address    = set_mac_address,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_change_mtu         = eth_change_mtu,
 };
 
 /* Probe for the CS8900 card in slot E.  We won't bother looking
index f45385f5c6e58269d0d3f593b460fb5952a6c5e3..f1a81c52afe38783aad3d4c5ab43f3fdfaaacf08 100644 (file)
@@ -1382,7 +1382,6 @@ static const struct net_device_ops dm9000_netdev_ops = {
        .ndo_tx_timeout         = dm9000_timeout,
        .ndo_set_rx_mode        = dm9000_hash_table,
        .ndo_do_ioctl           = dm9000_ioctl,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_features       = dm9000_set_features,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
index cadcee645f74e8fe45a6f34e2b7e0bf949ea14e7..90c573b8ccafe027ecf1716c66b545464bd75553 100644 (file)
@@ -1956,7 +1956,6 @@ static const struct net_device_ops de_netdev_ops = {
        .ndo_start_xmit         = de_start_xmit,
        .ndo_get_stats          = de_get_stats,
        .ndo_tx_timeout         = de_tx_timeout,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
index 6620fc861c477eeb38d3c2b9495619b0e65ca63a..51fda3a6b13f85162194e29adb326d7452d71d2e 100644 (file)
@@ -1085,7 +1085,6 @@ static const struct net_device_ops de4x5_netdev_ops = {
     .ndo_get_stats     = de4x5_get_stats,
     .ndo_set_rx_mode   = set_multicast_list,
     .ndo_do_ioctl      = de4x5_ioctl,
-    .ndo_change_mtu    = eth_change_mtu,
     .ndo_set_mac_address= eth_mac_addr,
     .ndo_validate_addr = eth_validate_addr,
 };
index 8ed0fd8b1dda8301a57e4eb9607eeb9d7ccf9102..df499491945601766f528d90657789e62219bfc3 100644 (file)
@@ -352,7 +352,6 @@ static const struct net_device_ops netdev_ops = {
        .ndo_stop               = dmfe_stop,
        .ndo_start_xmit         = dmfe_start_xmit,
        .ndo_set_rx_mode        = dmfe_set_filter_mode,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index bbde90bc74fe244f60f925099a77ea50d94084e5..5f1377449b8f79f88eae3789f9ee3b28a39d6e8d 100644 (file)
@@ -1282,7 +1282,6 @@ static const struct net_device_ops tulip_netdev_ops = {
        .ndo_get_stats          = tulip_get_stats,
        .ndo_do_ioctl           = private_ioctl,
        .ndo_set_rx_mode        = set_rx_mode,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index e750b5ddc0fbb34436f9df49e9cd62ebc5eb0700..e1c4133b8787b89e8c3b40f55b16b7a0c33e0ec5 100644 (file)
@@ -269,7 +269,6 @@ static const struct net_device_ops netdev_ops = {
        .ndo_stop               = uli526x_stop,
        .ndo_start_xmit         = uli526x_start_xmit,
        .ndo_set_rx_mode        = uli526x_set_filter_mode,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index 1f62b942385101bc475b7d6219b572aebc267cfb..feda96d585e7b678a0dc2b1f483c8e1e6462eeee 100644 (file)
@@ -353,7 +353,6 @@ static const struct net_device_ops netdev_ops = {
        .ndo_set_rx_mode        = set_rx_mode,
        .ndo_do_ioctl           = netdev_ioctl,
        .ndo_tx_timeout         = tx_timeout,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
index 0e721cedfa67c1e1b60e3e9bf059c9660d6e78ce..19e4ea15b504ad2dd2555f98530d72da79cb71ac 100644 (file)
@@ -174,7 +174,6 @@ static const struct net_device_ops netdev_ops = {
        .ndo_open               = xircom_open,
        .ndo_stop               = xircom_close,
        .ndo_start_xmit         = xircom_start_xmit,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index c3b64cdd0decb76f7da6551f3ed95cb9f576318a..2a17c59f69f9fb0208f7bf6c23b88af1f082ea0a 100644 (file)
@@ -767,7 +767,6 @@ static const struct net_device_ops dnet_netdev_ops = {
        .ndo_do_ioctl           = dnet_ioctl,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_change_mtu         = eth_change_mtu,
 };
 
 static int dnet_probe(struct platform_device *pdev)
index f7b42483921c5847a883a286d28f7700e10b1d28..57650953ff83e127ecdcb3e606114d619d49db18 100644 (file)
@@ -482,7 +482,6 @@ static const struct net_device_ops ec_bhf_netdev_ops = {
        .ndo_open               = ec_bhf_open,
        .ndo_stop               = ec_bhf_stop,
        .ndo_get_stats64        = ec_bhf_get_stats,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr
 };
index c08bd763172a76da6ae68a00d55e06992d6cacdd..6967b287b6e762342eb0f02f0851a4309dea7330 100644 (file)
@@ -472,7 +472,6 @@ static const struct net_device_ops netdev_ops = {
        .ndo_set_rx_mode        = set_rx_mode,
        .ndo_do_ioctl           = mii_ioctl,
        .ndo_tx_timeout         = fealnx_tx_timeout,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
index 48a033e64423dcde7e41c589e0b25466ea266002..4ce8179aa4ffd5792ad8e12e65b42927ee4e1833 100644 (file)
@@ -3055,7 +3055,6 @@ static const struct net_device_ops fec_netdev_ops = {
        .ndo_stop               = fec_enet_close,
        .ndo_start_xmit         = fec_enet_start_xmit,
        .ndo_set_rx_mode        = set_multicast_list,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_tx_timeout         = fec_timeout,
        .ndo_set_mac_address    = fec_set_mac_address,
index 446ae9d60c71f10f20a45653cc24b21e9c83d14c..aa8cf5d2a53cdf98523d94f5a0200cb5315dbe38 100644 (file)
@@ -802,7 +802,6 @@ static const struct net_device_ops mpc52xx_fec_netdev_ops = {
        .ndo_set_mac_address = mpc52xx_fec_set_mac_address,
        .ndo_validate_addr = eth_validate_addr,
        .ndo_do_ioctl = mpc52xx_fec_ioctl,
-       .ndo_change_mtu = eth_change_mtu,
        .ndo_tx_timeout = mpc52xx_fec_tx_timeout,
        .ndo_get_stats = mpc52xx_fec_get_stats,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index dc120c148d9766fcf511f100396cb51f4b61a73b..925d1bca6a26ddebfbd8dca589ce1dba9b283387 100644 (file)
@@ -912,7 +912,6 @@ static const struct net_device_ops fs_enet_netdev_ops = {
        .ndo_do_ioctl           = fs_ioctl,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
-       .ndo_change_mtu         = eth_change_mtu,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller    = fs_enet_netpoll,
 #endif
index 186ef8f16c802c5b076c41f1568ef582051cb103..786182480a7372a82e61b95bc17a04b115106f3c 100644 (file)
@@ -3681,7 +3681,6 @@ static const struct net_device_ops ucc_geth_netdev_ops = {
        .ndo_start_xmit         = ucc_geth_start_xmit,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = ucc_geth_set_mac_addr,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_rx_mode        = ucc_geth_set_multi,
        .ndo_tx_timeout         = ucc_geth_timeout,
        .ndo_do_ioctl           = ucc_geth_ioctl,
index 399cfd217288d9e32b0fd9ba188e974a4663a87e..51c4abc51bf4837156c3579ee663da9def9093fe 100644 (file)
@@ -225,7 +225,6 @@ static const struct net_device_ops fjn_netdev_ops = {
        .ndo_tx_timeout         = fjn_tx_timeout,
        .ndo_set_config         = fjn_config,
        .ndo_set_rx_mode        = set_rx_mode,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
index 39778892b3b3bc77cdd36c38f8688c1141a83543..3c99ca420f57e40694f647240f8a9fdcae644993 100644 (file)
@@ -769,7 +769,6 @@ static const struct net_device_ops hip04_netdev_ops = {
        .ndo_set_mac_address    = hip04_set_mac_address,
        .ndo_tx_timeout         = hip04_timeout,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_change_mtu         = eth_change_mtu,
 };
 
 static int hip04_alloc_ring(struct net_device *ndev, struct device *d)
index ced185962ef843654d1d1f096c3eb17f5f74fa0b..49863068c59e3cb4ecb4c24128326cbd4c42e37a 100644 (file)
@@ -712,7 +712,6 @@ static const struct net_device_ops hisi_femac_netdev_ops = {
        .ndo_do_ioctl           = hisi_femac_net_ioctl,
        .ndo_set_mac_address    = hisi_femac_set_mac_address,
        .ndo_set_rx_mode        = hisi_femac_net_set_rx_mode,
-       .ndo_change_mtu         = eth_change_mtu,
 };
 
 static void hisi_femac_core_reset(struct hisi_femac_priv *priv)
index 631dbc7b4dbb9b95985a8b4a2431cc648ef74644..1a31bee6e72898b64ead40dc505aac07b0cb477d 100644 (file)
@@ -427,7 +427,6 @@ static const struct net_device_ops hp100_bm_netdev_ops = {
        .ndo_start_xmit         = hp100_start_xmit_bm,
        .ndo_get_stats          = hp100_get_stats,
        .ndo_set_rx_mode        = hp100_set_multicast_list,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
@@ -438,7 +437,6 @@ static const struct net_device_ops hp100_netdev_ops = {
        .ndo_start_xmit         = hp100_start_xmit,
        .ndo_get_stats          = hp100_get_stats,
        .ndo_set_rx_mode        = hp100_set_multicast_list,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
index ce235b776793d5505303cb44e1e4e21c92f94351..94588384253300a981f2c8b1564111261398685c 100644 (file)
@@ -1118,7 +1118,6 @@ static const struct net_device_ops i596_netdev_ops = {
        .ndo_start_xmit         = i596_start_xmit,
        .ndo_set_rx_mode        = set_multicast_list,
        .ndo_tx_timeout         = i596_tx_timeout,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
index 5d353c66006829ef08a3ffdef537c825d367f58b..dc983450354bbf3eae79dda14d7c44815cee126d 100644 (file)
@@ -981,7 +981,6 @@ static const struct net_device_ops ether1_netdev_ops = {
        .ndo_set_rx_mode        = ether1_setmulticastlist,
        .ndo_tx_timeout         = ether1_timeout,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
 };
 
index 3dbc53c21baa4b02a6f4e16fbaab50d9ea09ba17..e86773325cbec65927e946e9992faf493841042a 100644 (file)
@@ -1037,7 +1037,6 @@ static const struct net_device_ops i596_netdev_ops = {
        .ndo_start_xmit         = i596_start_xmit,
        .ndo_set_rx_mode        = set_multicast_list,
        .ndo_tx_timeout         = i596_tx_timeout,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index 21c84cc9c871d5fd66d05b104426cf7252a1000a..8bb15a8c2a4026939f37161629d424963dc0a082 100644 (file)
@@ -337,7 +337,6 @@ static const struct net_device_ops sun3_82586_netdev_ops = {
        .ndo_get_stats          = sun3_82586_get_stats,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
-       .ndo_change_mtu         = eth_change_mtu,
 };
 
 static int __init sun3_82586_probe1(struct net_device *dev,int ioaddr)
index 8f139197f1aae7409934742d630d90b6bf998afd..5d804a5446741f2ddf9b10847dde5ed6cdb001be 100644 (file)
@@ -2718,7 +2718,6 @@ static const struct net_device_ops emac_netdev_ops = {
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = emac_set_mac_address,
        .ndo_start_xmit         = emac_start_xmit,
-       .ndo_change_mtu         = eth_change_mtu,
 };
 
 static const struct net_device_ops emac_gige_netdev_ops = {
index 1799fe1415df5070104edf4946a537e245c80176..cbeea915f02699696072d1da77c724588e5c3b0e 100644 (file)
@@ -1085,7 +1085,6 @@ static const struct net_device_ops korina_netdev_ops = {
        .ndo_set_rx_mode        = korina_multicast_list,
        .ndo_tx_timeout         = korina_tx_timeout,
        .ndo_do_ioctl           = korina_ioctl,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index 91e09d68b7e25ddd720aefdd7a79720e2e02ae4c..1a739d71f1c22ca33eb1d9b490761f5ddaaab070 100644 (file)
@@ -519,18 +519,16 @@ ltq_etop_tx(struct sk_buff *skb, struct net_device *dev)
 static int
 ltq_etop_change_mtu(struct net_device *dev, int new_mtu)
 {
-       int ret = eth_change_mtu(dev, new_mtu);
+       struct ltq_etop_priv *priv = netdev_priv(dev);
+       unsigned long flags;
 
-       if (!ret) {
-               struct ltq_etop_priv *priv = netdev_priv(dev);
-               unsigned long flags;
+       dev->mtu = new_mtu;
 
-               spin_lock_irqsave(&priv->lock, flags);
-               ltq_etop_w32((ETOP_PLEN_UNDER << 16) | new_mtu,
-                       LTQ_ETOP_IGPLEN);
-               spin_unlock_irqrestore(&priv->lock, flags);
-       }
-       return ret;
+       spin_lock_irqsave(&priv->lock, flags);
+       ltq_etop_w32((ETOP_PLEN_UNDER << 16) | new_mtu, LTQ_ETOP_IGPLEN);
+       spin_unlock_irqrestore(&priv->lock, flags);
+
+       return 0;
 }
 
 static int
index 4a62ffd7729d0327f35b16d4a5b4e3dc89adbb01..8f80e618ae59fef6291e9866ce8767e4cf401111 100644 (file)
@@ -2243,7 +2243,6 @@ static const struct net_device_ops mtk_netdev_ops = {
        .ndo_set_mac_address    = mtk_set_mac_address,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_do_ioctl           = mtk_do_ioctl,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_tx_timeout         = mtk_tx_timeout,
        .ndo_get_stats64        = mtk_get_stats64,
        .ndo_fix_features       = mtk_fix_features,
index 1edc973df4c41d893608c08dae1ebbb7e7c07ac3..e7e1aff40bd9f2fe676b03ab524de5eaa2a815de 100644 (file)
@@ -1063,7 +1063,6 @@ static const struct net_device_ops ks8851_netdev_ops = {
        .ndo_start_xmit         = ks8851_start_xmit,
        .ndo_set_mac_address    = ks8851_set_mac_address,
        .ndo_set_rx_mode        = ks8851_set_rx_mode,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
 };
 
index 2fc5cd56c0a846d30e86ba7b6efa0bbfaedf264f..db628078a4e6f549b0d6a7a5baa97edcab9ba2b0 100644 (file)
@@ -1285,7 +1285,6 @@ static const struct net_device_ops ks_netdev_ops = {
        .ndo_start_xmit         = ks_start_xmit,
        .ndo_set_mac_address    = ks_set_mac_address,
        .ndo_set_rx_mode        = ks_set_rx_mode,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
 };
 
index 0a26b11ca8f61eff9f7c5b880b770a99948f07bf..045b9106c0ff50ba46acde30c22f46dab36e4fd8 100644 (file)
@@ -1544,7 +1544,6 @@ static const struct net_device_ops enc28j60_netdev_ops = {
        .ndo_set_rx_mode        = enc28j60_set_multicast_list,
        .ndo_set_mac_address    = enc28j60_set_mac_address,
        .ndo_tx_timeout         = enc28j60_tx_timeout,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
 };
 
index 4367dd6879a22791a1bef1726ba8d770b03cebca..9774b50cff6e6b3e9a71b06198bbddbe5aa503e5 100644 (file)
@@ -444,7 +444,6 @@ static struct net_device_ops moxart_netdev_ops = {
        .ndo_set_rx_mode        = moxart_mac_set_rx_mode,
        .ndo_set_mac_address    = moxart_set_mac_address,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_change_mtu         = eth_change_mtu,
 };
 
 static int moxart_mac_probe(struct platform_device *pdev)
index acf3f11e38cc1294555c6b7e2193865e7f455f54..a6caeb567c0d45735decbde7d7ebe8c8f8ebdedc 100644 (file)
@@ -110,7 +110,6 @@ static const struct net_device_ops sonic_netdev_ops = {
        .ndo_get_stats          = sonic_get_stats,
        .ndo_set_rx_mode        = sonic_multicast_list,
        .ndo_tx_timeout         = sonic_tx_timeout,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
 };
index d98f5b8a1c66ec39f1e0a5db6bd1d834ee09a65b..3ca6ae7caf55625d5e51d884f7c7acc7fb77726c 100644 (file)
@@ -190,7 +190,6 @@ static const struct net_device_ops macsonic_netdev_ops = {
        .ndo_tx_timeout         = sonic_tx_timeout,
        .ndo_get_stats          = sonic_get_stats,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
 };
 
index 7007d212f3e4ef6c574fb4d39b59f349d85bc3e7..9ee0f69a83c05cd6876013305350758bf1368f7e 100644 (file)
@@ -124,7 +124,6 @@ static const struct net_device_ops xtsonic_netdev_ops = {
        .ndo_set_rx_mode        = sonic_multicast_list,
        .ndo_tx_timeout         = sonic_tx_timeout,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
 };
 
index adbc47f2d132d4f7c70b10329253cc5b13c7ab94..df4188cb43e0bb86722216d7f5c08c652642ef15 100644 (file)
@@ -304,7 +304,6 @@ static const struct net_device_ops netx_eth_netdev_ops = {
        .ndo_start_xmit         = netx_eth_hard_start_xmit,
        .ndo_tx_timeout         = netx_eth_timeout,
        .ndo_set_rx_mode        = netx_eth_set_multicast_list,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
 };
index 712d8bcb7d8cac7b1e4ae24284c098b1c11e1188..119f6dca71f051883a01f4ebb6d151c0b784df62 100644 (file)
@@ -915,7 +915,6 @@ static const struct net_device_ops w90p910_ether_netdev_ops = {
        .ndo_set_mac_address    = w90p910_set_mac_address,
        .ndo_do_ioctl           = w90p910_ether_ioctl,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_change_mtu         = eth_change_mtu,
 };
 
 static void __init get_mac_address(struct net_device *dev)
index 8e13ec84c53812e92bbabd88a12a25e12c353a75..dd6b0d0f7fa504e33cbb873546137bf1d89e1979 100644 (file)
@@ -1256,7 +1256,6 @@ static const struct net_device_ops lpc_netdev_ops = {
        .ndo_do_ioctl           = lpc_eth_ioctl,
        .ndo_set_mac_address    = lpc_set_mac_address,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_change_mtu         = eth_change_mtu,
 };
 
 static int lpc_eth_drv_probe(struct platform_device *pdev)
index 91be2f02ef1cf9d5654a5e7a124506908637a951..2d04679a923a71454511e572a2714796b760bc69 100644 (file)
@@ -568,7 +568,6 @@ static const struct net_device_ops hamachi_netdev_ops = {
        .ndo_start_xmit         = hamachi_start_xmit,
        .ndo_get_stats          = hamachi_get_stats,
        .ndo_set_rx_mode        = set_rx_mode,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_tx_timeout         = hamachi_tx_timeout,
index fb1d1031b0916044ea48ed1d287465827fb0d578..2a2ca5fa0c690281cbb433b450340279fdd91857 100644 (file)
@@ -360,7 +360,6 @@ static const struct net_device_ops netdev_ops = {
        .ndo_stop               = yellowfin_close,
        .ndo_start_xmit         = yellowfin_start_xmit,
        .ndo_set_rx_mode        = set_rx_mode,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_do_ioctl           = netdev_ioctl,
index b09a6b80d10719c967994ed54618c50e25fdec0f..5c100ab86c0046ec72a011e5f806d6557ac7482c 100644 (file)
@@ -3755,7 +3755,6 @@ static const struct net_device_ops ql3xxx_netdev_ops = {
        .ndo_open               = ql3xxx_open,
        .ndo_start_xmit         = ql3xxx_send,
        .ndo_stop               = ql3xxx_close,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = ql3xxx_set_mac_address,
        .ndo_tx_timeout         = ql3xxx_tx_timeout,
index 5ef5d728c2505e0977d056541552d204c108eb42..4ff4e0491406b1b2a06d5e05b9b4871bebc203e6 100644 (file)
@@ -969,7 +969,6 @@ static const struct net_device_ops r6040_netdev_ops = {
        .ndo_start_xmit         = r6040_start_xmit,
        .ndo_get_stats          = r6040_get_stats,
        .ndo_set_rx_mode        = r6040_multicast_list,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_do_ioctl           = r6040_ioctl,
index 5cb96785fb632703de8e9c08fe7fca0f37949cbd..570ed3bd3cbfcd0cbe1dc0ce5764823d1fc70ff6 100644 (file)
@@ -245,7 +245,6 @@ static const struct net_device_ops atp_netdev_ops = {
        .ndo_start_xmit         = atp_send_packet,
        .ndo_set_rx_mode        = set_rx_mode,
        .ndo_tx_timeout         = tx_timeout,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
index 630536bc72f975a171bd3ae85d105b6b2ccbbbf1..27cfec3154c8e0f2c1bdc582e325a836a5ad9f0f 100644 (file)
@@ -1780,7 +1780,6 @@ static const struct net_device_ops ravb_netdev_ops = {
        .ndo_do_ioctl           = ravb_do_ioctl,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
-       .ndo_change_mtu         = eth_change_mtu,
 };
 
 /* MDIO bus init function */
index 05b0dc55de774f486699e066ec24370129b42061..e443695c27574d462610967050294a8deb59ff9f 100644 (file)
@@ -2914,7 +2914,6 @@ static const struct net_device_ops sh_eth_netdev_ops = {
        .ndo_do_ioctl           = sh_eth_do_ioctl,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
-       .ndo_change_mtu         = eth_change_mtu,
 };
 
 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 = {
        .ndo_do_ioctl           = sh_eth_do_ioctl,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
-       .ndo_change_mtu         = eth_change_mtu,
 };
 
 #ifdef CONFIG_OF
index bdac936a68bc2b12d0baf302551337c79702b265..244c1e1710173847395dcc9b65739205620fa011 100644 (file)
@@ -745,7 +745,6 @@ static const struct net_device_ops ether3_netdev_ops = {
        .ndo_set_rx_mode        = ether3_setmulticastlist,
        .ndo_tx_timeout         = ether3_timeout,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
 };
 
index c2bd5378ffdaf005d039785bccfe59f52b2d6c8d..ed34196028b8e8bb8db5b913f61c1d5718000492 100644 (file)
@@ -714,7 +714,6 @@ static const struct net_device_ops sgiseeq_netdev_ops = {
        .ndo_tx_timeout         = timeout,
        .ndo_set_rx_mode        = sgiseeq_set_multicast,
        .ndo_set_mac_address    = sgiseeq_set_mac_address,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
 };
 
index 7a254da85dd789f7d4de8f62c6a13e17a1629004..42051ab98cf003dc2ae49a57d29f958508375269 100644 (file)
@@ -1225,7 +1225,6 @@ static const struct net_device_ops ioc3_netdev_ops = {
        .ndo_do_ioctl           = ioc3_ioctl,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = ioc3_set_mac_address,
-       .ndo_change_mtu         = eth_change_mtu,
 };
 
 static int ioc3_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
index aaa80f13859b160f81b19e776a0cac422e302008..69d2d30e5ef13b9026ecdcd4ff090540ac1385ef 100644 (file)
@@ -815,7 +815,6 @@ static const struct net_device_ops meth_netdev_ops = {
        .ndo_start_xmit         = meth_tx,
        .ndo_do_ioctl           = meth_ioctl,
        .ndo_tx_timeout         = meth_tx_timeout,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_set_rx_mode        = meth_set_rx_mode,
index 7426f8b21252c1df07cd5330b8dd94a484112972..6c2e2b311c16d396f3969a90183648d7e77a7858 100644 (file)
@@ -1386,7 +1386,6 @@ static const struct net_device_ops sc92031_netdev_ops = {
        .ndo_open               = sc92031_open,
        .ndo_stop               = sc92031_stop,
        .ndo_set_rx_mode        = sc92031_set_multicast_list,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_tx_timeout         = sc92031_tx_timeout,
index 27be6c8693150a2c52a81d42b68281ca07df21f0..210e35d079dd88672fe5c419955a04913d49ad62 100644 (file)
@@ -1833,7 +1833,6 @@ static const struct net_device_ops sis190_netdev_ops = {
        .ndo_start_xmit         = sis190_start_xmit,
        .ndo_tx_timeout         = sis190_tx_timeout,
        .ndo_set_rx_mode        = sis190_set_rx_mode,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = sis190_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index 6f85276376e8eeec0309cabffabf3ae83e5dfbf7..39fca6c0b68dbf62454c1c4092770b0509f50946 100644 (file)
@@ -400,7 +400,6 @@ static const struct net_device_ops sis900_netdev_ops = {
        .ndo_start_xmit         = sis900_start_xmit,
        .ndo_set_config         = sis900_set_config,
        .ndo_set_rx_mode        = set_rx_mode,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_do_ioctl           = mii_ioctl,
index 7186b89269ad718a2723a9b2f6f79d77e1061aef..fe9760ffab517b9cfef43f8f7fe0f66fc33dedd0 100644 (file)
@@ -313,7 +313,6 @@ static const struct net_device_ops epic_netdev_ops = {
        .ndo_get_stats          = epic_get_stats,
        .ndo_set_rx_mode        = set_rx_mode,
        .ndo_do_ioctl           = netdev_ioctl,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
index cb49c9654f0a7c2d8d0bb922bc4b38c7e6180419..4f19c6166182e780b77222c566390c5acdf2ad3e 100644 (file)
@@ -1753,7 +1753,6 @@ static const struct net_device_ops smc911x_netdev_ops = {
        .ndo_start_xmit         = smc911x_hard_start_xmit,
        .ndo_tx_timeout         = smc911x_timeout,
        .ndo_set_rx_mode        = smc911x_set_multicast_list,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index d496888b85d34b89331c37c9768d07e6eff7ea64..c8d84679ede74ed2d3e3ebd87fe3acefa4d1d77d 100644 (file)
@@ -809,7 +809,6 @@ static const struct net_device_ops smc_netdev_ops = {
        .ndo_start_xmit         = smc_wait_to_send_packet,
        .ndo_tx_timeout         = smc_timeout,
        .ndo_set_rx_mode        = smc_set_multicast_list,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
index db3c696d7002ad921bbf8d4d3257f7e738c36c07..f1c75e291e55ba4324a34bd84948f95f317039be 100644 (file)
@@ -294,7 +294,6 @@ static const struct net_device_ops smc_netdev_ops = {
        .ndo_set_config         = s9k_config,
        .ndo_set_rx_mode        = set_rx_mode,
        .ndo_do_ioctl           = smc_ioctl,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
index 73212590d04a362e055039d90b11e1329592d21a..9b4780f878637c7e1a597a9342d5fa93be26ae4c 100644 (file)
@@ -1762,7 +1762,6 @@ static const struct net_device_ops smc_netdev_ops = {
        .ndo_start_xmit         = smc_hard_start_xmit,
        .ndo_tx_timeout         = smc_timeout,
        .ndo_set_rx_mode        = smc_set_multicast_list,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index e9b8579e6241476bd2c82486a0e1a91b2cafcad7..cdb343f0c6e0a92178d94f8078f1398a659c5218 100644 (file)
@@ -2152,7 +2152,6 @@ static const struct net_device_ops smsc911x_netdev_ops = {
        .ndo_get_stats          = smsc911x_get_stats,
        .ndo_set_rx_mode        = smsc911x_set_multicast_list,
        .ndo_do_ioctl           = smsc911x_do_ioctl,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = smsc911x_set_mac_address,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index aa4f9d2d8fa98f2b5c4a63710c24ad5387f5a73f..ea89ef3b48fb82524ec431e89178763a93f42d78 100644 (file)
@@ -1064,7 +1064,6 @@ static const struct net_device_ops bigmac_ops = {
        .ndo_get_stats          = bigmac_get_stats,
        .ndo_set_rx_mode        = bigmac_set_multicast,
        .ndo_tx_timeout         = bigmac_tx_timeout,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
index cf4dcff051d5b9d3fb3edf20552501cc44c72a5b..ca96408058b05d49a2c64daba4591f512db0da28 100644 (file)
@@ -2669,7 +2669,6 @@ static const struct net_device_ops hme_netdev_ops = {
        .ndo_tx_timeout         = happy_meal_tx_timeout,
        .ndo_get_stats          = happy_meal_get_stats,
        .ndo_set_rx_mode        = happy_meal_set_multicast,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
index 9b825780b3be02829b54799b0e287ed2c8976a09..c5ef711f656707888f8c71c3d346e4da81eb6836 100644 (file)
@@ -823,7 +823,6 @@ static const struct net_device_ops qec_ops = {
        .ndo_start_xmit         = qe_start_xmit,
        .ndo_set_rx_mode        = qe_set_multicast,
        .ndo_tx_timeout         = qe_tx_timeout,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
index fa0cfda24fd9caaf44d47812d5b1b13a2af73dcf..c56e7030c44edff69b473ebac1aaa464917f7295 100644 (file)
@@ -1068,7 +1068,6 @@ static const struct net_device_ops cpmac_netdev_ops = {
        .ndo_tx_timeout         = cpmac_tx_timeout,
        .ndo_set_rx_mode        = cpmac_set_multicast_list,
        .ndo_do_ioctl           = cpmac_ioctl,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
        .ndo_set_mac_address    = eth_mac_addr,
 };
index 6d4b8a2e0cf6ef6159242ef54b7d3f2833e4c95a..b1ddf89a19bea4748e1f31755267f1bb8c52019d 100644 (file)
@@ -1883,7 +1883,6 @@ static const struct net_device_ops cpsw_netdev_ops = {
        .ndo_set_mac_address    = cpsw_ndo_set_mac_address,
        .ndo_do_ioctl           = cpsw_ndo_ioctl,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_tx_timeout         = cpsw_ndo_tx_timeout,
        .ndo_set_rx_mode        = cpsw_ndo_set_rx_mode,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index ece0ea0f6b38b40eb2e2ece7b00b60128b328df9..4a3eeb10d45b645bf931ffcc2fc277307dc923e2 100644 (file)
@@ -772,7 +772,6 @@ static const struct net_device_ops tlan_netdev_ops = {
        .ndo_get_stats          = tlan_get_stats,
        .ndo_set_rx_mode        = tlan_set_multicast_list,
        .ndo_do_ioctl           = tlan_ioctl,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 #ifdef CONFIG_NET_POLL_CONTROLLER
index 5b01b3fa9fec966b7bf562e935b6b8216ba9f368..3be61ed28741ae7d763322c7d28c81cc69f2eeb5 100644 (file)
@@ -747,7 +747,6 @@ static const struct net_device_ops tc35815_netdev_ops = {
        .ndo_tx_timeout         = tc35815_tx_timeout,
        .ndo_do_ioctl           = tc35815_ioctl,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
 #ifdef CONFIG_NET_POLL_CONTROLLER
        .ndo_poll_controller    = tc35815_poll_controller,
index 8fd131207ee106b8c198ed607473947cedc851c1..f153ad729ce5b20cefe8c98ffb6f82761062d935 100644 (file)
@@ -1548,7 +1548,6 @@ static const struct net_device_ops tsi108_netdev_ops = {
        .ndo_do_ioctl           = tsi108_do_ioctl,
        .ndo_set_mac_address    = tsi108_set_mac,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_change_mtu         = eth_change_mtu,
 };
 
 static int
index 9d14731cdcb10ff28d839694ba7b3113d505708a..ba5c5424905512074f86fa52145d806813a6ea1b 100644 (file)
@@ -890,7 +890,6 @@ static const struct net_device_ops rhine_netdev_ops = {
        .ndo_start_xmit          = rhine_start_tx,
        .ndo_get_stats64         = rhine_get_stats64,
        .ndo_set_rx_mode         = rhine_set_rx_mode,
-       .ndo_change_mtu          = eth_change_mtu,
        .ndo_validate_addr       = eth_validate_addr,
        .ndo_set_mac_address     = eth_mac_addr,
        .ndo_do_ioctl            = netdev_ioctl,
index d2349a1bc6baeec283c5df070cbf0d4b49f0b5e3..e1296ef2cf66183d7c8596184c69f122f7d54331 100644 (file)
@@ -1045,7 +1045,6 @@ static const struct net_device_ops w5100_netdev_ops = {
        .ndo_set_rx_mode        = w5100_set_rx_mode,
        .ndo_set_mac_address    = w5100_set_macaddr,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_change_mtu         = eth_change_mtu,
 };
 
 static int w5100_mmio_probe(struct platform_device *pdev)
index ca31a57dbc862de2e99f351a3e110b7426e2d94e..724fabd38a23edd6473cdf7ab712c0c54e4a0e7e 100644 (file)
@@ -536,7 +536,6 @@ static const struct net_device_ops w5300_netdev_ops = {
        .ndo_set_rx_mode        = w5300_set_rx_mode,
        .ndo_set_mac_address    = w5300_set_macaddr,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_change_mtu         = eth_change_mtu,
 };
 
 static int w5300_hw_probe(struct platform_device *pdev)
index ddced28e824799679332c36bbcb7b1c26e83bbec..3b08ec766076aa46de255a826468f5fe2ac4a3fb 100644 (file)
@@ -466,7 +466,6 @@ static const struct net_device_ops netdev_ops = {
        .ndo_set_config         = do_config,
        .ndo_do_ioctl           = do_ioctl,
        .ndo_set_rx_mode        = set_multicast_list,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
index 7f127dc1b7baa03b76ffaac0f2cf6dfc9e8164b5..46cc33b9e9263c572cb34b05ec17f8ab021eb648 100644 (file)
@@ -1379,7 +1379,6 @@ static const struct net_device_ops ixp4xx_netdev_ops = {
        .ndo_start_xmit = eth_xmit,
        .ndo_set_rx_mode = eth_set_mcast_list,
        .ndo_do_ioctl = eth_ioctl,
-       .ndo_change_mtu = eth_change_mtu,
        .ndo_set_mac_address = eth_mac_addr,
        .ndo_validate_addr = eth_validate_addr,
 };
index 9c4b41a4df7d795c268f9816fdfe45b5ca780e90..3c55ea357f351b9006d35fdfee7d8d6e936a039b 100644 (file)
@@ -270,7 +270,6 @@ static const struct net_device_ops plip_netdev_ops = {
        .ndo_stop                = plip_close,
        .ndo_start_xmit          = plip_tx_packet,
        .ndo_do_ioctl            = plip_ioctl,
-       .ndo_change_mtu          = eth_change_mtu,
        .ndo_set_mac_address     = eth_mac_addr,
        .ndo_validate_addr       = eth_validate_addr,
 };
index aad0b59d41e304c6481c0b58e04afd1db2b51918..8b8b532597830e47cc22a4415a6e68c07bc857d5 100644 (file)
@@ -141,7 +141,6 @@ static const struct net_device_ops sb1000_netdev_ops = {
        .ndo_start_xmit         = sb1000_start_xmit,
        .ndo_do_ioctl           = sb1000_dev_ioctl,
        .ndo_stop               = sb1000_close,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
index d9ca05d3ac8eadb17a0ec12d539c50dde7fb151b..a1f2f6f1e6149840551cd2418299800119ee65a2 100644 (file)
@@ -761,7 +761,6 @@ static const struct net_device_ops catc_netdev_ops = {
 
        .ndo_tx_timeout         = catc_tx_timeout,
        .ndo_set_rx_mode        = catc_set_multicast_list,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
index 66b34ddbe216dfc3578a81831b733b9463622fa7..338aed5da14d849c17f5e9125f3a1652d0859ac1 100644 (file)
@@ -982,7 +982,6 @@ static const struct net_device_ops kaweth_netdev_ops = {
        .ndo_tx_timeout =               kaweth_tx_timeout,
        .ndo_set_rx_mode =              kaweth_set_rx_mode,
        .ndo_get_stats =                kaweth_netdev_stats,
-       .ndo_change_mtu =               eth_change_mtu,
        .ndo_set_mac_address =          eth_mac_addr,
        .ndo_validate_addr =            eth_validate_addr,
 };
index 1434e5dd5f9cd2c859ed7a54e4fb2267c8420654..399f7ee57aead0db2b7a5de51d245020bc21b4b8 100644 (file)
@@ -1273,7 +1273,6 @@ static const struct net_device_ops pegasus_netdev_ops = {
        .ndo_set_rx_mode =              pegasus_set_multicast,
        .ndo_get_stats =                pegasus_netdev_stats,
        .ndo_tx_timeout =               pegasus_tx_timeout,
-       .ndo_change_mtu =               eth_change_mtu,
        .ndo_set_mac_address =          eth_mac_addr,
        .ndo_validate_addr =            eth_validate_addr,
 };
index 44d439f50961d676694107017073ca1323543f99..2886946ca3717735938954ba5c7db25f7efb4302 100644 (file)
@@ -4113,7 +4113,8 @@ static int rtl8152_change_mtu(struct net_device *dev, int new_mtu)
        switch (tp->version) {
        case RTL_VER_01:
        case RTL_VER_02:
-               return eth_change_mtu(dev, new_mtu);
+               dev->mtu = new_mtu;
+               return 0;
        default:
                break;
        }
index 7c72bfac89d08df2f6c873ffe0a11e51364e9547..93a1bda1c1e5e1161b2a4f44519e5fe625cf51bd 100644 (file)
@@ -847,7 +847,6 @@ static const struct net_device_ops rtl8150_netdev_ops = {
        .ndo_set_rx_mode        = rtl8150_set_multicast,
        .ndo_set_mac_address    = rtl8150_set_mac_address,
 
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
 };
 
index 3a421ca8a4d082de104c12b92949998413de4e50..3f83be98d46925e83adf6d2a97e28e8ab4eb34dd 100644 (file)
@@ -211,7 +211,6 @@ static const struct net_device_ops sbni_netdev_ops = {
        .ndo_start_xmit         = sbni_start_xmit,
        .ndo_set_rx_mode        = set_multicast_list,
        .ndo_do_ioctl           = sbni_ioctl,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
index 84a42012aeae096806eb0900561f12803707d448..325176d4d796a6041488b0e2cd7fdffe3b2c4a08 100644 (file)
@@ -808,7 +808,6 @@ static const struct net_device_ops islpci_netdev_ops = {
        .ndo_start_xmit         = islpci_eth_transmit,
        .ndo_tx_timeout         = islpci_eth_tx_timeout,
        .ndo_set_mac_address    = prism54_set_mac_address,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
 };
 
index 431f13b4faf690c885fbd459b257de5d103406a8..e95b79bccf9b2e8acfd2b83973d6bbe397ec0727 100644 (file)
@@ -2791,7 +2791,6 @@ static void mac80211_hwsim_free(void)
 
 static const struct net_device_ops hwsim_netdev_ops = {
        .ndo_start_xmit         = hwsim_mon_xmit,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
index 8541cbed786da3b09d5ac08e12cf5b8be4b2cdd5..e3500203715cf6d1f42a7243460ad1878ca10c1d 100644 (file)
@@ -945,7 +945,6 @@ static const struct net_device_ops lbs_netdev_ops = {
        .ndo_start_xmit         = lbs_hard_start_xmit,
        .ndo_set_mac_address    = lbs_set_mac_address,
        .ndo_set_rx_mode        = lbs_set_multicast_list,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
 };
 
index 0881ba8535f4e11bec61d029dc58f29a7f0c4500..4fdc7223c894b29671b03403856ffa0c5fb85a97 100644 (file)
@@ -272,7 +272,6 @@ static const struct net_device_ops ray_netdev_ops = {
        .ndo_set_config         = ray_dev_config,
        .ndo_get_stats          = ray_get_stats,
        .ndo_set_rx_mode        = set_multicast_list,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
index 932f3f81e8cf3f3cb6b6a51e0e4904ecfc7c23fc..d9d29ab8818460e1c33db89720a45bb0ed9dc50b 100644 (file)
@@ -1853,7 +1853,6 @@ static const struct net_device_ops wl3501_netdev_ops = {
        .ndo_stop               = wl3501_close,
        .ndo_start_xmit         = wl3501_hard_start_xmit,
        .ndo_tx_timeout         = wl3501_tx_timeout,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
index dea049b2556f337ed1f1504cef7e834882035707..de7ff395977a31820913eb1d43aa2509d979c136 100644 (file)
@@ -1724,7 +1724,6 @@ static const struct net_device_ops zd1201_netdev_ops = {
        .ndo_tx_timeout         = zd1201_tx_timeout,
        .ndo_set_rx_mode        = zd1201_set_multicast,
        .ndo_set_mac_address    = zd1201_set_mac_address,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
 };
 
index d976e5e18d50ef7a469e437585da074d7f3b3af0..c9c9821cfc32c662f579eb77358c34ad963d0882 100644 (file)
@@ -145,7 +145,6 @@ static netdev_tx_t mon_xmit(struct sk_buff *skb, struct net_device *dev)
 
 static const struct net_device_ops mon_netdev_ops = {
        .ndo_start_xmit         = mon_xmit,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
        .ndo_validate_addr      = eth_validate_addr,
 };
index 4c30eea45f89df5792217aa4594b17bd54773e13..5f53fbd565efafb4379b901cef8cefc3066972e5 100644 (file)
@@ -2545,7 +2545,6 @@ static const struct net_device_ops rtl8192_netdev_ops = {
        .ndo_set_rx_mode = _rtl92e_set_multicast,
        .ndo_set_mac_address = _rtl92e_set_mac_adr,
        .ndo_validate_addr = eth_validate_addr,
-       .ndo_change_mtu = eth_change_mtu,
        .ndo_start_xmit = rtllib_xmit,
 };
 
index 457eeb5f5239d502c8407c692d9a0ef2df90bf48..fdb03dccb449031b07231c24ade33fc933b6d77c 100644 (file)
@@ -4930,7 +4930,6 @@ static const struct net_device_ops rtl8192_netdev_ops = {
        .ndo_set_rx_mode        = r8192_set_multicast,
        .ndo_set_mac_address    = r8192_set_mac_adr,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_start_xmit         = ieee80211_xmit,
 };
 
index 062307ad7fed679d40bc3aee4a45b7af4f8f1904..2802b900f8eea39394488b4cd56d6321beab2825 100644 (file)
@@ -2880,7 +2880,6 @@ static const struct net_device_ops slic_netdev_ops = {
        .ndo_get_stats          = slic_get_stats,
        .ndo_set_rx_mode        = slic_mcast_set_list,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_change_mtu         = eth_change_mtu,
 };
 
 static u32 slic_card_locate(struct adapter *adapter)
index 117d02e0fc318089eb038f52a30a42a1ce1e1eeb..864d6f2b2cb0ff2cc33733340f5e3661804301a6 100644 (file)
@@ -35,6 +35,8 @@
 #define ETH_FRAME_LEN  1514            /* Max. octets in frame sans FCS */
 #define ETH_FCS_LEN    4               /* Octets in the FCS             */
 
+#define ETH_MIN_MTU    68              /* Min IPv4 MTU per RFC791      */
+
 /*
  *     These are the defined Ethernet Protocol ID's.
  */
index aa0047c5c4672947b2b7d153dbd8a394e70ccbdf..c7d82f4e8422a49ab0bf39ebac8f1338bdb7b275 100644 (file)
@@ -620,14 +620,12 @@ error:
 static const struct net_device_ops br2684_netdev_ops = {
        .ndo_start_xmit         = br2684_start_xmit,
        .ndo_set_mac_address    = br2684_mac_addr,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
 };
 
 static const struct net_device_ops br2684_netdev_ops_routed = {
        .ndo_start_xmit         = br2684_start_xmit,
        .ndo_set_mac_address    = br2684_mac_addr,
-       .ndo_change_mtu         = eth_change_mtu
 };
 
 static void br2684_setup(struct net_device *netdev)
index f4fcb4a9d5c1ed6e3fe81190ece8aa245808b395..0f25ddc319e293ce701e7f111f4252ff677afb33 100644 (file)
@@ -211,7 +211,6 @@ static const struct net_device_ops bnep_netdev_ops = {
        .ndo_set_rx_mode     = bnep_net_set_mc_list,
        .ndo_set_mac_address = bnep_net_set_mac_addr,
        .ndo_tx_timeout      = bnep_net_timeout,
-       .ndo_change_mtu      = eth_change_mtu,
 
 };
 
index 66dff5e3d7728bc9d302fdf6c207a6c03197affa..f983c102ebe37275bd4d7d371503b3c4f0871104 100644 (file)
@@ -322,8 +322,7 @@ EXPORT_SYMBOL(eth_mac_addr);
  */
 int eth_change_mtu(struct net_device *dev, int new_mtu)
 {
-       if (new_mtu < 68 || new_mtu > ETH_DATA_LEN)
-               return -EINVAL;
+       netdev_warn(dev, "%s is deprecated\n", __func__);
        dev->mtu = new_mtu;
        return 0;
 }
@@ -357,6 +356,8 @@ void ether_setup(struct net_device *dev)
        dev->type               = ARPHRD_ETHER;
        dev->hard_header_len    = ETH_HLEN;
        dev->mtu                = ETH_DATA_LEN;
+       dev->min_mtu            = ETH_MIN_MTU;
+       dev->max_mtu            = ETH_DATA_LEN;
        dev->addr_len           = ETH_ALEN;
        dev->tx_queue_len       = 1000; /* Ethernet wants good queues */
        dev->flags              = IFF_BROADCAST|IFF_MULTICAST;
index d8b7267280c38fdea5930764d5ca8d2b11746fd7..8192eaea4ecd1ada9bb0b74665535978582b9efb 100644 (file)
@@ -51,7 +51,6 @@ static const struct net_device_ops irlan_eth_netdev_ops = {
        .ndo_stop               = irlan_eth_close,
        .ndo_start_xmit         = irlan_eth_xmit,
        .ndo_set_rx_mode        = irlan_eth_set_multicast_list,
-       .ndo_change_mtu         = eth_change_mtu,
        .ndo_validate_addr      = eth_validate_addr,
 };