aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/ti/netcp_core.c
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2016-10-22 09:46:24 +0200
committerDavid S. Miller <davem@davemloft.net>2016-10-26 17:19:07 -0400
commit701470babace4c4bbcc8463a5609790f91f85bdb (patch)
tree3468d1344b1e14378d18985af926817ea0b78951 /drivers/net/ethernet/ti/netcp_core.c
parentMerge branch 'BCM54612E' (diff)
downloadlinux-dev-701470babace4c4bbcc8463a5609790f91f85bdb.tar.xz
linux-dev-701470babace4c4bbcc8463a5609790f91f85bdb.zip
batman-adv: Revert "use core MTU range checking in misc drivers"
The maximum MTU is defined via the slave devices of an batman-adv interface. Thus it is not possible to calculate the max_mtu during the creation of the batman-adv device when no slave devices are attached. Doing so would for example break non-fragmentation setups which then (incorrectly) allow an MTU of 1500 even when underlying device cannot transport 1500 bytes + batman-adv headers. Checking the dynamically calculated max_mtu via the minimum of the slave devices MTU during .ndo_change_mtu is also used by the bridge interface. Cc: Jarod Wilson <jarod@redhat.com> Fixes: b3e3893e1253 ("net: use core MTU range checking in misc drivers") Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ti/netcp_core.c')
0 files changed, 0 insertions, 0 deletions