diff options
author | Tom Herbert <tom@herbertland.com> | 2016-02-24 19:02:52 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-26 04:01:22 +0100 |
commit | a87cb3e48ee86d29868d3f59cfb9ce1a8fa63314 (patch) | |
tree | 4002824d66c34364f18019c659aa6adaedb9ab27 /arch/mips/include | |
parent | net: ipv6: Make address flushing on ifdown optional (diff) | |
download | linux-a87cb3e48ee86d29868d3f59cfb9ce1a8fa63314.tar.xz linux-a87cb3e48ee86d29868d3f59cfb9ce1a8fa63314.zip |
net: Facility to report route quality of connected sockets
This patch add the SO_CNX_ADVICE socket option (setsockopt only). The
purpose is to allow an application to give feedback to the kernel about
the quality of the network path for a connected socket. The value
argument indicates the type of quality report. For this initial patch
the only supported advice is a value of 1 which indicates "bad path,
please reroute"-- the action taken by the kernel is to call
dst_negative_advice which will attempt to choose a different ECMP route,
reset the TX hash for flow label and UDP source port in encapsulation,
etc.
This facility should be useful for connected UDP sockets where only the
application can provide any feedback about path quality. It could also
be useful for TCP applications that have additional knowledge about the
path outside of the normal TCP control loop.
Signed-off-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/mips/include')
-rw-r--r-- | arch/mips/include/uapi/asm/socket.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/include/uapi/asm/socket.h b/arch/mips/include/uapi/asm/socket.h index 5910fe294e93..2027240aafbb 100644 --- a/arch/mips/include/uapi/asm/socket.h +++ b/arch/mips/include/uapi/asm/socket.h @@ -106,4 +106,6 @@ #define SO_ATTACH_REUSEPORT_CBPF 51 #define SO_ATTACH_REUSEPORT_EBPF 52 +#define SO_CNX_ADVICE 53 + #endif /* _UAPI_ASM_SOCKET_H */ |