]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: use data length instead of skb->len in tcp_probe
authorYafang Shao <laoar.shao@gmail.com>
Fri, 25 May 2018 10:14:05 +0000 (18:14 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 May 2018 14:15:37 +0000 (10:15 -0400)
commit813b37313d9f699057518521044a3f191c213561
treecd4be1fe7a178f274a1869b40d2fc93fc57008b8
parent50389fe36ae009f84ae1f05770ab780a0cbd35ec
tcp: use data length instead of skb->len in tcp_probe

skb->len is meaningless to user.
data length could be more helpful, with which we can easily filter out
the packet without payload.

Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/trace/events/tcp.h