]> git.baikalelectronics.ru Git - kernel.git/commit
net: mscc: ocelot: fix hardware timestamp dequeue logic
authorlaurent brando <laurent.brando@nxp.com>
Mon, 27 Jul 2020 10:26:14 +0000 (18:26 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jul 2020 19:04:40 +0000 (12:04 -0700)
commitcbd1a71fe0e9401fd6fe65cd01a46ea86dbc6531
treef99d63efbf54813c786392bb1f04521b040a120c
parent20e740beb50230d932cd17667cffdd47795fee54
net: mscc: ocelot: fix hardware timestamp dequeue logic

The next hw timestamp should be snapshoot to the read registers
only once the current timestamp has been read.
If none of the pending skbs matches the current HW timestamp
just gracefully flush the available timestamp by reading it.

Signed-off-by: laurent brando <laurent.brando@nxp.com>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot.c