rstreason: make it work in trace world
authorJason Xing <kernelxing@tencent.com>
Thu, 25 Apr 2024 03:13:40 +0000 (11:13 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Fri, 26 Apr 2024 13:34:01 +0000 (15:34 +0200)
commitb533fb9cf4f7c6ca2aa255a5a1fdcde49fff2b24
tree3441c70fb71b9bb73af14f90af4c1ece881d4d23
parent215d40248bde5562a21e4c6cdeaeca0495c9365a
rstreason: make it work in trace world

At last, we should let it work by introducing this reset reason in
trace world.

One of the possible expected outputs is:
... tcp_send_reset: skbaddr=xxx skaddr=xxx src=xxx dest=xxx
state=TCP_ESTABLISHED reason=NOT_SPECIFIED

Signed-off-by: Jason Xing <kernelxing@tencent.com>
Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/trace/events/tcp.h
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_output.c
net/ipv6/tcp_ipv6.c