tcp: Add stats for socket migration.
authorKuniyuki Iwashima <kuniyu@amazon.co.jp>
Tue, 22 Jun 2021 23:35:29 +0000 (08:35 +0900)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Jun 2021 19:56:08 +0000 (12:56 -0700)
commit55d444b310c64b084dcc62ba3e4dc3862269fb96
tree48678971ce4b31dbfaf01d105104bebf37f7d7e7
parent7525de2516fba8661bdea409718708c711c5d5e1
tcp: Add stats for socket migration.

This commit adds two stats for the socket migration feature to evaluate the
effectiveness: LINUX_MIB_TCPMIGRATEREQ(SUCCESS|FAILURE).

If the migration fails because of the own_req race in receiving ACK and
sending SYN+ACK paths, we do not increment the failure stat. Then another
CPU is responsible for the req.

Link: https://lore.kernel.org/bpf/CAK6E8=cgFKuGecTzSCSQ8z3YJ_163C0uwO9yRvfDSE7vOe9mJA@mail.gmail.com/
Suggested-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.co.jp>
Acked-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/snmp.h
net/core/sock_reuseport.c
net/ipv4/inet_connection_sock.c
net/ipv4/proc.c
net/ipv4/tcp_minisocks.c