octeontx2-af: cn10k: RPM hardware timestamp configuration
authorHariprasad Kelam <hkelam@marvell.com>
Tue, 28 Sep 2021 11:30:59 +0000 (17:00 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Sep 2021 12:50:37 +0000 (13:50 +0100)
commitd1489208681dfe432609fdaa49b160219c6e221c
tree2f8c80325bfd4a54fc5c29c48c13c8690f1f920d
parente37e08fffc373206ad4e905c05729ea6bbdcb22c
octeontx2-af: cn10k: RPM hardware timestamp configuration

MAC on CN10K support hardware timestamping such that 8 bytes addition
header is prepended to incoming packets. This patch does necessary
configuration to enable Hardware time stamping upon receiving request
from PF netdev interfaces.

Timestamp configuration is different on MAC (CGX) Octeontx2 silicon
and MAC (RPM) OcteonTX3 CN10k. Based on silicon variant appropriate
fn() pointer is called. Refactor MAC specific mbox messages to remove
unnecessary gaps in mboxids.

Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/cgx.c
drivers/net/ethernet/marvell/octeontx2/af/lmac_common.h
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
drivers/net/ethernet/marvell/octeontx2/af/rpm.c
drivers/net/ethernet/marvell/octeontx2/af/rpm.h
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c