aboutsummaryrefslogtreecommitdiffstats
path: root/net/bridge/br_if.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/bridge/br_if.c')
-rw-r--r--net/bridge/br_if.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/bridge/br_if.c b/net/bridge/br_if.c
index 11321197338e..ba442883e877 100644
--- a/net/bridge/br_if.c
+++ b/net/bridge/br_if.c
@@ -20,6 +20,7 @@
20#include <linux/module.h> 20#include <linux/module.h>
21#include <linux/init.h> 21#include <linux/init.h>
22#include <linux/rtnetlink.h> 22#include <linux/rtnetlink.h>
23#include <linux/if_ether.h>
23#include <net/sock.h> 24#include <net/sock.h>
24 25
25#include "br_private.h" 26#include "br_private.h"
@@ -323,7 +324,7 @@ int br_del_bridge(const char *name)
323 return ret; 324 return ret;
324} 325}
325 326
326/* Mtu of the bridge pseudo-device 1500 or the minimum of the ports */ 327/* MTU of the bridge pseudo-device: ETH_DATA_LEN or the minimum of the ports */
327int br_min_mtu(const struct net_bridge *br) 328int br_min_mtu(const struct net_bridge *br)
328{ 329{
329 const struct net_bridge_port *p; 330 const struct net_bridge_port *p;
@@ -332,7 +333,7 @@ int br_min_mtu(const struct net_bridge *br)
332 ASSERT_RTNL(); 333 ASSERT_RTNL();
333 334
334 if (list_empty(&br->port_list)) 335 if (list_empty(&br->port_list))
335 mtu = 1500; 336 mtu = ETH_DATA_LEN;
336 else { 337 else {
337 list_for_each_entry(p, &br->port_list, list) { 338 list_for_each_entry(p, &br->port_list, list) {
338 if (!mtu || p->dev->mtu < mtu) 339 if (!mtu || p->dev->mtu < mtu)