]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: PTP: Configure PTP traps and FIFO events
authorPetr Machata <petrm@mellanox.com>
Sun, 30 Jun 2019 06:04:58 +0000 (09:04 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jul 2019 01:58:34 +0000 (18:58 -0700)
commit2d8e5c3fff3b3d17e8bfdc12f2ad2a567b0ea8b4
tree79469ea3766e9d4a922b45fdb78ac5738e764c77
parent3e250d939727d997c4b25a9cf8857801b588d5f3
mlxsw: spectrum: PTP: Configure PTP traps and FIFO events

Configure MTPTPT to set which message types should arrive under which
PTP trap, and MOGCR to clear the timestamp queue after its contents are
reported through PTP_ING_FIFO or PTP_EGR_FIFO.

With this configuration, PTP packets start arriving through the PTP
traps. However since timestamping is disabled by default and there is
currently no way to enable it, they will not be timestamped.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.h