net: dsa: propagate extack to port_lag_join
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sun, 11 Sep 2022 01:07:03 +0000 (04:07 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 20 Sep 2022 08:32:36 +0000 (10:32 +0200)
commit2e359b00a11715c7a89d7448e6e4cb4d84543520
tree8ed47d2cc726f63b04b240c02f729032a16ff82a
parent13eccc1bbb2e98df5d616398cd9215d9edab522f
net: dsa: propagate extack to port_lag_join

Drivers could refuse to offload a LAG configuration for a variety of
reasons, mainly having to do with its TX type. Additionally, since DSA
masters may now also be LAG interfaces, and this will translate into a
call to port_lag_join on the CPU ports, there may be extra restrictions
there. Propagate the netlink extack to this DSA method in order for
drivers to give a meaningful error message back to the user.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/ocelot/felix.c
drivers/net/dsa/qca/qca8k-common.c
drivers/net/dsa/qca/qca8k.h
drivers/net/ethernet/mscc/ocelot.c
drivers/net/ethernet/mscc/ocelot_net.c
include/net/dsa.h
include/soc/mscc/ocelot.h
net/dsa/dsa_priv.h
net/dsa/port.c
net/dsa/switch.c