diff options
| author | 2026-10-04 13:10:53 -0400 | |
|---|---|---|
| committer | 2026-10-06 17:43:28 -0700 | |
| commit | 88fb9fad5cbe95d2d3e1ac02e764d88217e5f668 (patch) | |
| tree | 0ffa2d3e507c270b499a0e0ce632623898415c50 /scripts/Makefile.thinlto | |
| parent | Merge branch 'net-phy-keep-a-phy-interrupt-across-a-generic-bind-cycle' (diff) | |
net/packet: ignore timestamp bits when testing tx frame status
Since the commit in Fixes, the tx completion handler writes the frame
status as TP_STATUS_AVAILABLE | ts, where ts can be
TP_STATUS_TS_SOFTWARE or TP_STATUS_TS_RAW_HARDWARE.
Two places compare a tx frame status to TP_STATUS_AVAILABLE for
equality, and so fail to detect such a released frame:
- tpacket_snd(), when packet_xmit() fails: the packet is silently
dropped instead of an error being returned to the caller for retry.
- packet_poll(), on the tx ring head frame: the socket is not reported
as writable.
Mask out the timestamp bits in both. In packet_lookup_frame(), only do
so when testing a tx ring frame for TP_STATUS_AVAILABLE.
Cc: stable+noautosel@kernel.org # LLM report + LLM fix, not seen in real life
Fixes: b9c32fb27170 ("packet: if hw/sw ts enabled in rx/tx ring, report which ts we got")
Signed-off-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20261004171847.186954-1-willemdebruijn.kernel@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
