Commit c174cd0
Bluetooth: increment TX timestamping tskey always for stream sockets
Documentation/networking/timestamping.rst implies TX timestamping OPT_ID
tskey increments for each sendmsg. In practice: TCP socket increments
it for all sendmsg, timestamping on or off, but UDP only when
timestamping is on. The user-visible counter resets when OPT_ID is
turned on, so difference can be seen only if timestamping is enabled for
some packets only (eg. via SO_TIMESTAMPING CMSG).
Fix BT sockets to work in the same way: stream sockets increment tskey
for all sendmsg (seqpacket already increment for timestamped only).
Fixes: 134f4b3 ("Bluetooth: add support for skb TX SND/COMPLETION timestamping")
Signed-off-by: Pauli Virtanen <[email protected]>
Signed-off-by: Luiz Augusto von Dentz <[email protected]>1 parent e92900c commit c174cd0
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3072 | 3072 | | |
3073 | 3073 | | |
3074 | 3074 | | |
| 3075 | + | |
3075 | 3076 | | |
3076 | 3077 | | |
3077 | 3078 | | |
| |||
3087 | 3088 | | |
3088 | 3089 | | |
3089 | 3090 | | |
| 3091 | + | |
| 3092 | + | |
| 3093 | + | |
3090 | 3094 | | |
3091 | 3095 | | |
3092 | 3096 | | |
3093 | 3097 | | |
3094 | 3098 | | |
3095 | | - | |
3096 | | - | |
| 3099 | + | |
| 3100 | + | |
3097 | 3101 | | |
3098 | 3102 | | |
3099 | 3103 | | |
| |||
0 commit comments