mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-05-02 18:17:50 -04:00
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>
This commit is contained in:
committed by
David S. Miller
parent
dd1c416450
commit
5f6c2d498a
@@ -937,6 +937,17 @@ struct dsa_switch_ops {
|
||||
int (*get_ts_info)(struct dsa_switch *ds, int port,
|
||||
struct ethtool_ts_info *ts);
|
||||
|
||||
/*
|
||||
* ethtool MAC merge layer
|
||||
*/
|
||||
int (*get_mm)(struct dsa_switch *ds, int port,
|
||||
struct ethtool_mm_state *state);
|
||||
int (*set_mm)(struct dsa_switch *ds, int port,
|
||||
struct ethtool_mm_cfg *cfg,
|
||||
struct netlink_ext_ack *extack);
|
||||
void (*get_mm_stats)(struct dsa_switch *ds, int port,
|
||||
struct ethtool_mm_stats *stats);
|
||||
|
||||
/*
|
||||
* DCB ops
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user