diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2023-07-05 13:44:21 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-07-06 19:10:22 -0700 |
commit | c60819149b637d0f9f7f66e110d2a0d90a3993ea (patch) | |
tree | 02933f4acc429e2534e63682ccbd8843cb13f95d /include | |
parent | 009d30f1a77795014f151ba317fcbfc2f17153c6 (diff) | |
download | linux-stable-c60819149b637d0f9f7f66e110d2a0d90a3993ea.tar.gz linux-stable-c60819149b637d0f9f7f66e110d2a0d90a3993ea.tar.bz2 linux-stable-c60819149b637d0f9f7f66e110d2a0d90a3993ea.zip |
net: dsa: felix: make vsc9959_tas_guard_bands_update() visible to ocelot->ops
In a future change we will need to make
ocelot_port_update_active_preemptible_tcs() call
vsc9959_tas_guard_bands_update(), but that is currently not possible,
since the ocelot switch lib does not have access to functions private to
the DSA wrapper.
Move the pointer to vsc9959_tas_guard_bands_update() from felix->info
(which is private to the DSA driver) to ocelot->ops (which is also
visible to the ocelot switch lib).
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Message-ID: <20230705104422.49025-3-vladimir.oltean@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/soc/mscc/ocelot.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/soc/mscc/ocelot.h b/include/soc/mscc/ocelot.h index eb5f8914a66c..a8c2817335b9 100644 --- a/include/soc/mscc/ocelot.h +++ b/include/soc/mscc/ocelot.h @@ -663,6 +663,7 @@ struct ocelot_ops { struct flow_stats *stats); void (*cut_through_fwd)(struct ocelot *ocelot); void (*tas_clock_adjust)(struct ocelot *ocelot); + void (*tas_guard_bands_update)(struct ocelot *ocelot, int port); void (*update_stats)(struct ocelot *ocelot); }; |