diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2020-04-21 20:18:53 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-04-22 19:22:59 -0700 |
commit | 72579e14a1d3d3d561039dfe7e5f47aaf22e3fd3 (patch) | |
tree | 285fbcec32f4cb25f647fce75700b6e0190286b9 /net/dsa | |
parent | a1211bf9a7774706722ba3b18c6157d980319f79 (diff) | |
download | linux-72579e14a1d3d3d561039dfe7e5f47aaf22e3fd3.tar.gz linux-72579e14a1d3d3d561039dfe7e5f47aaf22e3fd3.tar.bz2 linux-72579e14a1d3d3d561039dfe7e5f47aaf22e3fd3.zip |
net: dsa: don't fail to probe if we couldn't set the MTU
There is no reason to fail the probing of the switch if the MTU couldn't
be configured correctly (either the switch port itself, or the host
port) for whatever reason. MTU-sized traffic probably won't work, sure,
but we can still probably limp on and support some form of communication
anyway, which the users would probably appreciate more.
Fixes: bfcb813203e6 ("net: dsa: configure the MTU for switch ports")
Reported-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa')
-rw-r--r-- | net/dsa/slave.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c index e94eb1aac602..d1068803cd11 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c @@ -1770,11 +1770,9 @@ int dsa_slave_create(struct dsa_port *port) rtnl_lock(); ret = dsa_slave_change_mtu(slave_dev, ETH_DATA_LEN); rtnl_unlock(); - if (ret && ret != -EOPNOTSUPP) { - dev_err(ds->dev, "error %d setting MTU on port %d\n", - ret, port->index); - goto out_free; - } + if (ret) + dev_warn(ds->dev, "nonfatal error %d setting MTU on port %d\n", + ret, port->index); netif_carrier_off(slave_dev); |