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>
Showing
- include/uapi/linux/snmp.h 2 additions, 0 deletionsinclude/uapi/linux/snmp.h
- net/core/sock_reuseport.c 11 additions, 4 deletionsnet/core/sock_reuseport.c
- net/ipv4/inet_connection_sock.c 13 additions, 2 deletionsnet/ipv4/inet_connection_sock.c
- net/ipv4/proc.c 2 additions, 0 deletionsnet/ipv4/proc.c
- net/ipv4/tcp_minisocks.c 3 additions, 0 deletionsnet/ipv4/tcp_minisocks.c
Please register or sign in to comment