]> git.baikalelectronics.ru Git - kernel.git/commit
net: tcp: add RTAX_CC_ALGO fib handling
authorDaniel Borkmann <dborkman@redhat.com>
Mon, 5 Jan 2015 22:57:47 +0000 (23:57 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Jan 2015 03:55:24 +0000 (22:55 -0500)
commit1dcb444dac3f33c243a0f65dfe4ed1326540acbf
treec04b2007e7294668f40e16091b1a11647497c86e
parente76d3f98ef2d08669cda5f59c9e969e27ac29316
net: tcp: add RTAX_CC_ALGO fib handling

This patch adds the minimum necessary for the RTAX_CC_ALGO congestion
control metric to be set up and dumped back to user space.

While the internal representation of RTAX_CC_ALGO is handled as a u32
key, we avoided to expose this implementation detail to user space, thus
instead, we chose the netlink attribute that is being exchanged between
user space to be the actual congestion control algorithm name, similarly
as in the setsockopt(2) API in order to allow for maximum flexibility,
even for 3rd party modules.

It is a bit unfortunate that RTAX_QUICKACK used up a whole RTAX slot as
it should have been stored in RTAX_FEATURES instead, we first thought
about reusing it for the congestion control key, but it brings more
complications and/or confusion than worth it.

Joint work with Florian Westphal.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
include/uapi/linux/rtnetlink.h
net/core/rtnetlink.c
net/decnet/dn_fib.c
net/decnet/dn_table.c
net/ipv4/fib_semantics.c
net/ipv6/route.c