ethernet/sun: use core min/max MTU checking
cassini: min_mtu 60, max_mtu 9000 niu: min_mtu 68, max_mtu 9216 sungem: min_mtu 68, max_mtu 1500 (comments say jumbo mode is broken) sunvnet: min_mtu 68, max_mtu 65535 - removed sunvnet_change_mut_common as it does nothing now CC: netdev@vger.kernel.org Signed-off-by: Jarod Wilson <jarod@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
c7315a95c2
commit
540bfe30dc
@@ -1583,16 +1583,6 @@ void sunvnet_set_rx_mode_common(struct net_device *dev, struct vnet *vp)
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(sunvnet_set_rx_mode_common);
|
||||
|
||||
int sunvnet_change_mtu_common(struct net_device *dev, int new_mtu)
|
||||
{
|
||||
if (new_mtu < 68 || new_mtu > 65535)
|
||||
return -EINVAL;
|
||||
|
||||
dev->mtu = new_mtu;
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(sunvnet_change_mtu_common);
|
||||
|
||||
int sunvnet_set_mac_addr_common(struct net_device *dev, void *p)
|
||||
{
|
||||
return -EINVAL;
|
||||
|
Reference in New Issue
Block a user