summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJianyu Li <jianyu.li@mediatek.com>2026-06-01 19:36:39 +0800
committerJakub Kicinski <kuba@kernel.org>2026-06-03 18:52:25 -0700
commitc1f07a7f2d47aeb9878301e7bb36bc1c2bc2be8e (patch)
tree6e62c19b5a0bf1e877e46467bfeddefec0d173a4 /tools/perf/scripts/python
parent9a85ec3dc28b6df246801c19e4d9bae6297a25b0 (diff)
af_unix: Fix inq_len update problem in partial read
Currently inq_len is updated only when the whole skb is consumed. If only part of the data is read, following SIOCINQ query would get value greater than what actually left. This change update inq_len timely in unix_stream_read_generic(), and adjust unix_stream_read_skb() accordingly to prevent repetitive update. Fixes: f4e1fb04c123 ("af_unix: Use cached value for SOCK_STREAM in unix_inq_len().") Signed-off-by: Jianyu Li <jianyu.li@mediatek.com> Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com> Link: https://patch.msgid.link/20260601113640.231897-2-jianyu.li@mediatek.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions