netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] tcp: add tos reflection feature
@ 2020-09-10  0:50 Wei Wang
  2020-09-10  0:50 ` [PATCH net-next 1/3] tcp: record received TOS value in the request socket Wei Wang
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Wei Wang @ 2020-09-10  0:50 UTC (permalink / raw)
  To: David S . Miller, netdev; +Cc: Eric Dumazet, Wei Wang

This patch series adds a new tcp feature to reflect TOS value received in
SYN, and send it out in SYN-ACK, and eventually set the TOS value of the
established socket with this reflected TOS value. This provides a way to
set the traffic class/QoS level for all traffic in the same connection
to be the same as the incoming SYN. It could be useful for datacenters
to provide equivalent QoS according to the incoming request.
This feature is guarded by /proc/sys/net/ipv4/tcp_reflect_tos, and is by
default turned off.

Wei Wang (3):
  tcp: record received TOS value in the request socket
  ip: pass tos into ip_build_and_send_pkt()
  tcp: reflect tos value received in SYN to the socket

 include/linux/tcp.h        |  1 +
 include/net/ip.h           |  2 +-
 include/net/netns/ipv4.h   |  1 +
 net/dccp/ipv4.c            |  6 ++++--
 net/ipv4/ip_output.c       |  5 +++--
 net/ipv4/syncookies.c      |  6 +++---
 net/ipv4/sysctl_net_ipv4.c |  9 +++++++++
 net/ipv4/tcp_input.c       |  1 +
 net/ipv4/tcp_ipv4.c        | 11 ++++++++++-
 net/ipv6/tcp_ipv6.c        | 10 +++++++++-
 10 files changed, 42 insertions(+), 10 deletions(-)

-- 
2.28.0.618.gf4bc123cb7-goog


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-09-10 20:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-10  0:50 [PATCH net-next 0/3] tcp: add tos reflection feature Wei Wang
2020-09-10  0:50 ` [PATCH net-next 1/3] tcp: record received TOS value in the request socket Wei Wang
2020-09-10  0:50 ` [PATCH net-next 2/3] ip: pass tos into ip_build_and_send_pkt() Wei Wang
2020-09-10  0:50 ` [PATCH net-next 3/3] tcp: reflect tos value received in SYN to the socket Wei Wang
2020-09-10 20:15 ` [PATCH net-next 0/3] tcp: add tos reflection feature David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).