net: dsa: add plumbing for changing and getting MAC merge layer state
authorVladimir Oltean <vladimir.oltean@nxp.com>
Thu, 19 Jan 2023 12:27:00 +0000 (14:27 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Jan 2023 12:44:18 +0000 (12:44 +0000)
commit5f6c2d498ad97cf9f85b81c0fbb205abbcdfe3f8
tree14b229ff7d38066b0fa61c5907751d8ab68c66c8
parentdd1c41645039d3820a7dde40e11f601c56240c40
net: dsa: add plumbing for changing and getting MAC merge layer state

The DSA core is in charge of the ethtool_ops of the net devices
associated with switch ports, so in case a hardware driver supports the
MAC merge layer, DSA must pass the callbacks through to the driver.
Add support for precisely that.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/dsa.h
net/dsa/slave.c