]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
tcp_ratelimit: Handle some edge cases with TLS + RL send tags.
authorJohn Baldwin <jhb@FreeBSD.org>
Tue, 1 Feb 2022 00:40:04 +0000 (16:40 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 1 Feb 2022 00:40:04 +0000 (16:40 -0800)
commitd782385e9bc7bf14ab0f6577bad7526cc51b6b64
tree47314e00146cd33abaec76800ca31452c8c62e4e
parentd958bc7963d415d6745abf3e6829f05dabf4c9ed
tcp_ratelimit: Handle some edge cases with TLS + RL send tags.

- After a connection has fallen back from NIC TLS to SW TLS, any
  pacing rate changes should modify the inpcb send tag even though
  SB_TLS_IFNET is set.

- If a connection tries to modify the pacing rate before the send
  tag has been converted from plain TLS to TLS + RL, don't fail
  the rate request set but let it fall through to setting the rate
  on the non-TLS inpcb RL tag.

Reviewed by: gallatin, rrs, hselasky
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D34085
sys/netinet/tcp_ratelimit.c