diff options
| author | Vladimir Oltean <[email protected]> | 2021-02-13 20:43:16 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-02-15 01:38:11 +0000 |
| commit | 9e781401cbfcd83c4d766b4c6c5efce8348d4d13 (patch) | |
| tree | f160bbe6e715476a92b6c611acfc06ba77f17aa3 /net/switchdev/switchdev.c | |
| parent | net: bridge: remove __br_vlan_filter_toggle (diff) | |
| download | kernel-9e781401cbfcd83c4d766b4c6c5efce8348d4d13.tar.gz kernel-9e781401cbfcd83c4d766b4c6c5efce8348d4d13.zip | |
net: bridge: propagate extack through store_bridge_parm
The bridge sysfs interface stores parameters for the STP, VLAN,
multicast etc subsystems using a predefined function prototype.
Sometimes the underlying function being called supports a netlink
extended ack message, and we ignore it.
Let's expand the store_bridge_parm function prototype to include the
extack, and just print it to console, but at least propagate it where
applicable. Where not applicable, create a shim function in the
br_sysfs_br.c file that discards the extra function argument.
This patch allows us to propagate the extack argument to
br_vlan_set_default_pvid, br_vlan_set_proto and br_vlan_filter_toggle,
and from there, further up in br_changelink from br_netlink.c.
Signed-off-by: Vladimir Oltean <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
