]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: don't fail to probe if we couldn't set the MTU
authorVladimir Oltean <vladimir.oltean@nxp.com>
Tue, 21 Apr 2020 17:18:53 +0000 (20:18 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Apr 2020 02:22:59 +0000 (19:22 -0700)
commitb0813ca8f4d8c2a3d73b6b8af5f3b43833ac4b49
tree285fbcec32f4cb25f647fce75700b6e0190286b9
parent7ae5823898c4a5a9e11ad5e65cb0695e3c04d19e
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: b202c04f8d0d ("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>
net/dsa/slave.c