tcp: prepare CC get_info() access from getsockopt()
authorEric Dumazet <edumazet@google.com>
Tue, 28 Apr 2015 23:23:48 +0000 (16:23 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Apr 2015 21:10:38 +0000 (17:10 -0400)
commit64f40ff5bbdb1b679fb3c4dbc8230d6517d2b8dc
tree4767b2030e5099a7a63c05c42a7d30c309d62474
parentbdd1f9edacb5f5835d1e6276571bbbe5b88ded48
tcp: prepare CC get_info() access from getsockopt()

We would like that optional info provided by Congestion Control
modules using netlink can also be read using getsockopt()

This patch changes get_info() to put this information in a buffer,
instead of skb, like tcp_get_info(), so that following patch
can reuse this common infrastructure.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Yuchung Cheng <ycheng@google.com>
Cc: Neal Cardwell <ncardwell@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
include/uapi/linux/inet_diag.h
net/ipv4/inet_diag.c
net/ipv4/tcp_dctcp.c
net/ipv4/tcp_illinois.c
net/ipv4/tcp_vegas.c
net/ipv4/tcp_vegas.h