Thread (26 messages) 26 messages, 3 authors, 2021-12-12

Re: [net-next RFC PATCH v4 02/15] net: dsa: stop updating master MTU from master.c

flat view

From: Florian Fainelli <f.fainelli@gmail.com>
Date: 2021-12-12 04:23:22
Also in: lkml


On 12/11/2021 11:57 AM, Ansuel Smith wrote:
From: Vladimir Oltean <vladimir.oltean@nxp.com>

The dev_set_mtu() call from dsa_master_setup() has been effectively
superseded by the dsa_slave_change_mtu(slave_dev, ETH_DATA_LEN) that is
done from dsa_slave_create() for each user port. This function also
updates the master MTU according to the largest user port MTU from the
tree. Therefore, updating the master MTU through a separate code path
isn't needed.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help