History

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.

Tom Herbert committed 10 years ago

Commit a87cb3e1 parent f1705ec14 files · +30 −0Browse files

Showing the changes to include/uapi (1 of 14 files). Show all

Unified · Split

include/uapi/asm-generic/socket.h+2−0
@@ -90,4 +90,6 @@ · 89 unmodified lines
90#define SO_ATTACH_REUSEPORT_CBPF 5190#define SO_ATTACH_REUSEPORT_CBPF 51
91#define SO_ATTACH_REUSEPORT_EBPF 5291#define SO_ATTACH_REUSEPORT_EBPF 52
92 92
93#define SO_CNX_ADVICE 53
94
93#endif /* __ASM_GENERIC_SOCKET_H */95#endif /* __ASM_GENERIC_SOCKET_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t