mirror_ubuntu-kernels/drivers/net/ethernet/ibm/emac
Jarod Wilson a52ad514fd 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>
2016-10-13 09:36:57 -04:00
..
core.c net: deprecate eth_change_mtu, remove usage 2016-10-13 09:36:57 -04:00
core.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2015-10-02 07:21:25 -07:00
debug.c ethernet/emac/sysrq: fix inconstistent help message of sysrq key 2013-04-30 17:04:10 -07:00
debug.h ibm/emac: Remove extern from function prototypes 2013-09-24 12:51:27 -07:00
emac.h powerpc/44x: Add more changes for APM821XX EMAC driver 2012-03-06 17:07:42 -05:00
Kconfig
Makefile
mal.c net: Remove NO_IRQ from powerpc-only network drivers 2016-09-13 11:40:51 -04:00
mal.h emac: aggregation of v1-2 PLB errors for IER register 2014-05-30 16:29:57 -07:00
phy.c drivers: net: emac: add Atheros AR8035 phy initialization code 2016-05-04 13:57:14 -04:00
phy.h drivers/net: fix up stale paths from driver reorg 2012-01-30 12:54:40 -05:00
rgmii.c IBM-EMAC: constify of_device_id array 2015-03-17 15:00:23 -04:00
rgmii.h ibm/emac: Remove extern from function prototypes 2013-09-24 12:51:27 -07:00
tah.c IBM-EMAC: constify of_device_id array 2015-03-17 15:00:23 -04:00
tah.h ibm/emac: Remove extern from function prototypes 2013-09-24 12:51:27 -07:00
zmii.c IBM-EMAC: constify of_device_id array 2015-03-17 15:00:23 -04:00
zmii.h ibm/emac: Remove extern from function prototypes 2013-09-24 12:51:27 -07:00