diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2022-04-15 17:46:26 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-04-20 11:34:34 +0200 |
commit | be6ff9665d642d4cd0800b508ded289eaa5b02a2 (patch) | |
tree | 44cf842cc4876763af1b5c44cb9c15a35b75de46 /net/dsa/port.c | |
parent | net: dsa: drop dsa_slave_priv from dsa_slave_change_mtu (diff) | |
download | linux-be6ff9665d642d4cd0800b508ded289eaa5b02a2.tar.xz linux-be6ff9665d642d4cd0800b508ded289eaa5b02a2.zip |
net: dsa: don't emit targeted cross-chip notifiers for MTU change
A cross-chip notifier with "targeted_match=true" is one that matches
only the local port of the switch that emitted it. In other words,
passing through the cross-chip notifier layer serves no purpose.
Eliminate this concept by calling directly ds->ops->port_change_mtu
instead of emitting a targeted cross-chip notifier. This leaves the
DSA_NOTIFIER_MTU event being emitted only for MTU updates on the CPU
port, which need to be reflected also across all DSA links.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/port.c')
-rw-r--r-- | net/dsa/port.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/dsa/port.c b/net/dsa/port.c index 711de8f09993..8856ed6afd05 100644 --- a/net/dsa/port.c +++ b/net/dsa/port.c @@ -930,12 +930,10 @@ int dsa_port_vlan_msti(struct dsa_port *dp, return ds->ops->vlan_msti_set(ds, *dp->bridge, msti); } -int dsa_port_mtu_change(struct dsa_port *dp, int new_mtu, - bool targeted_match) +int dsa_port_mtu_change(struct dsa_port *dp, int new_mtu) { struct dsa_notifier_mtu_info info = { .dp = dp, - .targeted_match = targeted_match, .mtu = new_mtu, }; |