net/octeontx2: switch Rx timestamp to dynamic mbuf field
authorThomas Monjalon <thomas@monjalon.net>
Thu, 29 Oct 2020 06:48:48 +0000 (07:48 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 3 Nov 2020 15:21:15 +0000 (16:21 +0100)
commitaf50731085f5057df92813c362d31f0ad1b9efaf
tree2ccd3004bea27f4aab81578dfc6bd54938258462
parentf6800feb3ea3169fdd924bc2fd89ce208e68906c
net/octeontx2: switch Rx timestamp to dynamic mbuf field

The mbuf timestamp is moved to a dynamic field
in order to allow removal of the deprecated static field.
The related mbuf flag is also replaced.

The registration of field and flag is done in both
otx2_nix_dev_start() and otx2_nix_timesync_enable().

The dynamic offset and flag are stored in struct otx2_timesync_info
to favor cache locality.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: David Marchand <david.marchand@redhat.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
drivers/net/octeontx2/otx2_ethdev.c
drivers/net/octeontx2/otx2_ptp.c
drivers/net/octeontx2/otx2_rx.h