aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorPauli Virtanen <[email protected]>2025-03-18 19:06:43 +0000
committerLuiz Augusto von Dentz <[email protected]>2025-03-25 16:49:38 +0000
commit134f4b39df7b77225a80ef585c15d46f964f5e6f (patch)
tree1b31495e10d88407bb96b3b3ea0454d82b8a763c /net/unix/sysctl_net_unix.c
parentnet-timestamp: COMPLETION timestamp on packet tx completion (diff)
downloadkernel-134f4b39df7b77225a80ef585c15d46f964f5e6f.tar.gz
kernel-134f4b39df7b77225a80ef585c15d46f964f5e6f.zip
Bluetooth: add support for skb TX SND/COMPLETION timestamping
Support enabling TX timestamping for some skbs, and track them until packet completion. Generate software SCM_TSTAMP_COMPLETION when getting completion report from hardware. Generate software SCM_TSTAMP_SND before sending to driver. Sending from driver requires changes in the driver API, and drivers mostly are going to send the skb immediately. Make the default situation with no COMPLETION TX timestamping more efficient by only counting packets in the queue when there is nothing to track. When there is something to track, we need to make clones, since the driver may modify sent skbs. The tx_q queue length is bounded by the hdev flow control, which will not send new packets before it has got completion reports for old ones. Signed-off-by: Pauli Virtanen <[email protected]> Reviewed-by: Willem de Bruijn <[email protected]> Signed-off-by: Luiz Augusto von Dentz <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions