diff options
| author | Eric Dumazet <[email protected]> | 2015-04-28 16:23:49 -0700 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-04-29 17:10:38 -0400 |
| commit | 6e9250f59ef9efb932c84850cd221f22c2a03c4a (patch) | |
| tree | 8492e1b4724aa12b31675b45e3bb681f860213f0 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | 64f40ff5bbdb1b679fb3c4dbc8230d6517d2b8dc (diff) | |
tcp: add TCP_CC_INFO socket option
Some Congestion Control modules can provide per flow information,
but current way to get this information is to use netlink.
Like TCP_INFO, let's add TCP_CC_INFO so that applications can
issue a getsockopt() if they have a socket file descriptor,
instead of playing complex netlink games.
Sample usage would be :
union tcp_cc_info info;
socklen_t len = sizeof(info);
if (getsockopt(fd, SOL_TCP, TCP_CC_INFO, &info, &len) == -1)
Signed-off-by: Eric Dumazet <[email protected]>
Cc: Yuchung Cheng <[email protected]>
Cc: Neal Cardwell <[email protected]>
Acked-by: Neal Cardwell <[email protected]>
Acked-by: Daniel Borkmann <[email protected]>
Acked-by: Yuchung Cheng <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions