summaryrefslogtreecommitdiffstats
path: root/net/hsr/hsr_device.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2016-10-20 14:51:11 -0400
committerDavid S. Miller <davem@davemloft.net>2016-10-20 14:51:11 -0400
commit9e58c5dc4be31f8cf3ff62d96f91c97af6f9d58e (patch)
tree620fee35d81bca34bc7c117ba4bc65ab28f360b0 /net/hsr/hsr_device.c
parent1a61a8f1776758acb5111785c8a1688394fa3a60 (diff)
parentb96f9afee4eb5229c80afa3d97ccf725fb1b89a6 (diff)
downloadlinux-stable-9e58c5dc4be31f8cf3ff62d96f91c97af6f9d58e.tar.gz
linux-stable-9e58c5dc4be31f8cf3ff62d96f91c97af6f9d58e.tar.bz2
linux-stable-9e58c5dc4be31f8cf3ff62d96f91c97af6f9d58e.zip
Merge branch 'MTU-core-range-checking-more'
Jarod Wilson says: ==================== net: use core MTU range checking everywhere This stack of patches should get absolutely everything in the kernel converted from doing their own MTU range checking to the core MTU range checking. This second spin includes alterations to hopefully fix all concerns raised with the first, as well as including some additional changes to drivers and infrastructure where I completely missed necessary updates. These have all been built through the 0-day build infrastructure via the (rebasing) master branch at https://github.com/jarodwilson/linux-muck, which at the time of the most recent compile across 147 configs, was based on net-next at commit 7b1536ef0aa0. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/hsr/hsr_device.c')
-rw-r--r--net/hsr/hsr_device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/hsr/hsr_device.c b/net/hsr/hsr_device.c
index 16737cd8dae8..fc65b145f6e7 100644
--- a/net/hsr/hsr_device.c
+++ b/net/hsr/hsr_device.c
@@ -398,6 +398,7 @@ void hsr_dev_setup(struct net_device *dev)
random_ether_addr(dev->dev_addr);
ether_setup(dev);
+ dev->min_mtu = 0;
dev->header_ops = &hsr_header_ops;
dev->netdev_ops = &hsr_device_ops;
SET_NETDEV_DEVTYPE(dev, &hsr_type);