diff options
author | Clément Léger <clement.leger@bootlin.com> | 2021-12-09 16:49:09 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-12-11 05:56:57 +0100 |
commit | b471a71e525c73608a6ae5a3fdd2a5d1224da6a9 (patch) | |
tree | 15f67e721ae79cc884218a6f70299c7ddb96bb8e /include/soc/mscc | |
parent | net: ocelot: export ocelot_ifh_port_set() to setup IFH (diff) | |
download | linux-b471a71e525c73608a6ae5a3fdd2a5d1224da6a9.tar.xz linux-b471a71e525c73608a6ae5a3fdd2a5d1224da6a9.zip |
net: ocelot: add and export ocelot_ptp_rx_timestamp()
In order to support PTP in FDMA, PTP handling code is needed. Since
this is the same as for register-based extraction, export it with
a new ocelot_ptp_rx_timestamp() function.
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Clément Léger <clement.leger@bootlin.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/soc/mscc')
-rw-r--r-- | include/soc/mscc/ocelot.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/soc/mscc/ocelot.h b/include/soc/mscc/ocelot.h index 9b99cfd39a59..f038062a97a9 100644 --- a/include/soc/mscc/ocelot.h +++ b/include/soc/mscc/ocelot.h @@ -797,6 +797,8 @@ void ocelot_port_inject_frame(struct ocelot *ocelot, int port, int grp, void ocelot_ifh_port_set(void *ifh, int port, u32 rew_op, u32 vlan_tag); int ocelot_xtr_poll_frame(struct ocelot *ocelot, int grp, struct sk_buff **skb); void ocelot_drain_cpu_queue(struct ocelot *ocelot, int grp); +void ocelot_ptp_rx_timestamp(struct ocelot *ocelot, struct sk_buff *skb, + u64 timestamp); /* Hardware initialization */ int ocelot_regfields_init(struct ocelot *ocelot, |