diff options
| author | Pavan Chebbi <[email protected]> | 2021-06-27 17:19:48 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-06-28 20:41:06 +0000 |
| commit | 7f5515d19cd7aa02a866fd86622a022f12e06f0f (patch) | |
| tree | ab499c8638268ee8ebddd107b858dcf6142fb702 /net/switchdev/switchdev.c | |
| parent | bnxt_en: Get the full 48-bit hardware timestamp periodically (diff) | |
| download | kernel-7f5515d19cd7aa02a866fd86622a022f12e06f0f.tar.gz kernel-7f5515d19cd7aa02a866fd86622a022f12e06f0f.zip | |
bnxt_en: Get the RX packet timestamp
If the RX packet is timestamped by the hardware, the RX completion
record will contain the lower 32-bit of the timestamp. This needs
to be combined with the upper 16-bit of the periodic timestamp that
we get from the timer. The previous snapshot in ptp->old_timer is
used to make sure that the snapshot is not ahead of the RX timestamp
and we adjust for wrap-around if needed.
v2: Make ptp->old_time read access safe on 32-bit CPUs.
Reviewed-by: Edwin Peer <[email protected]>
Signed-off-by: Pavan Chebbi <[email protected]>
Signed-off-by: Michael Chan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
