[Intel-wired-lan] [next-queue PATCH v1 2/4] igc: Add support for RX timestamping
Vinicius Costa Gomes
vinicius.gomes at intel.com
Tue Nov 26 19:20:16 UTC 2019
Vinicius Costa Gomes <vinicius.gomes at intel.com> writes:
> This adds support for timestamping received packets.
>
> It is based on the i210, as many features of i225 work the same way.
> The main difference from i210 is that i225 has support for choosing
> the timer register to use when timestamping packets. Right now, we
> only support using timer 0. The other difference is that i225 stores
> two timestamps in the receive descriptor, right now, we only retrieve
> one.
>
> Signed-off-by: Vinicius Costa Gomes <vinicius.gomes at intel.com>
> ---
[...]
> diff --git a/drivers/net/ethernet/intel/igc/igc_defines.h b/drivers/net/ethernet/intel/igc/igc_defines.h
> index fa345adad5c9..a5b7e5e05a89 100644
> --- a/drivers/net/ethernet/intel/igc/igc_defines.h
> +++ b/drivers/net/ethernet/intel/igc/igc_defines.h
> @@ -283,12 +283,21 @@
> #define IGC_RCTL_RDMTS_HALF 0x00000000 /* Rx desc min thresh size */
> #define IGC_RCTL_BAM 0x00008000 /* broadcast enable */
>
> +/* Split Replication Receive Control */
> +#define IGC_SRRCTL_TIMESTAMP 0x04000
I made a mistake here, it should read "0x40000000" or BIT(30). It's
causing timestamps to only be accessed via the registers, instead of via
the descriptors. Will send a v2 soon.
Cheers,
--
Vinicius
More information about the Intel-wired-lan
mailing list