diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2020-09-18 04:07:23 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-18 13:52:33 -0700 |
commit | 9dda66acddcbcd5c9e94a1292c679738ba999345 (patch) | |
tree | 322ee6047f34ea67788d265697215403cc397156 /tools/perf/tests/openat-syscall-all-cpus.c | |
parent | 5f6857e808a8bd078296575b417c4b9d160b9779 (diff) | |
download | linux-next-9dda66acddcbcd5c9e94a1292c679738ba999345.tar.gz |
net: mscc: ocelot: fix race condition with TX timestamping
The TX-timestampable skb is added late to the ocelot_port->tx_skbs. It
is in a race with the TX timestamp IRQ, which checks that queue trying
to match the timestamp with the skb by the ts_id. The skb should be
added to the queue before the IRQ can fire.
Fixes: 4e3b0468e6d7 ("net: mscc: PTP Hardware Clock (PHC) support")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/tests/openat-syscall-all-cpus.c')
0 files changed, 0 insertions, 0 deletions