Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: remove eth_change_mtu

All usage of this function was removed three years ago, and the
function was marked as deprecated:
a52ad514fdf3 ("net: deprecate eth_change_mtu, remove usage")
So I think we can remove it now.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Heiner Kallweit and committed by
David S. Miller
a85dd3a5 0e6223ea

-17
-1
include/linux/etherdevice.h
··· 43 43 int eth_prepare_mac_addr_change(struct net_device *dev, void *p); 44 44 void eth_commit_mac_addr_change(struct net_device *dev, void *p); 45 45 int eth_mac_addr(struct net_device *dev, void *p); 46 - int eth_change_mtu(struct net_device *dev, int new_mtu); 47 46 int eth_validate_addr(struct net_device *dev); 48 47 49 48 struct net_device *alloc_etherdev_mqs(int sizeof_priv, unsigned int txqs,
-16
net/ethernet/eth.c
··· 335 335 } 336 336 EXPORT_SYMBOL(eth_mac_addr); 337 337 338 - /** 339 - * eth_change_mtu - set new MTU size 340 - * @dev: network device 341 - * @new_mtu: new Maximum Transfer Unit 342 - * 343 - * Allow changing MTU size. Needs to be overridden for devices 344 - * supporting jumbo frames. 345 - */ 346 - int eth_change_mtu(struct net_device *dev, int new_mtu) 347 - { 348 - netdev_warn(dev, "%s is deprecated\n", __func__); 349 - dev->mtu = new_mtu; 350 - return 0; 351 - } 352 - EXPORT_SYMBOL(eth_change_mtu); 353 - 354 338 int eth_validate_addr(struct net_device *dev) 355 339 { 356 340 if (!is_valid_ether_addr(dev->dev_addr))