]> asedeno.scripts.mit.edu Git - linux.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)
commit2d68c0745a0e8349ff71b04af5ee020d40f78d90
treecd4be1fe7a178f274a1869b40d2fc93fc57008b8
parent06c14de5a25d8d8a9b3d1b2ba50040cc39db2ccf
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