From 861fa1490335b8e3cc91a1efafd8b9e481813931 Mon Sep 17 00:00:00 2001 From: Nils Nieuwejaar Date: Sun, 15 Aug 2021 11:30:44 -0400 Subject: 14017 Add support for TCP_QUICKACK Reviewed by: Joshua M. Clulow Reviewed by: Andy Fiddaman Approved by: Dan McDonald --- usr/src/uts/common/inet/tcp/tcp_input.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'usr/src/uts/common/inet/tcp/tcp_input.c') diff --git a/usr/src/uts/common/inet/tcp/tcp_input.c b/usr/src/uts/common/inet/tcp/tcp_input.c index b3e4a07303..dd264528fc 100644 --- a/usr/src/uts/common/inet/tcp/tcp_input.c +++ b/usr/src/uts/common/inet/tcp/tcp_input.c @@ -25,6 +25,7 @@ * Copyright 2019 Joyent, Inc. * Copyright (c) 2014, 2016 by Delphix. All rights reserved. * Copyright 2020 OmniOS Community Edition (OmniOSce) Association. + * Copyright 2022 Oxide Computer Company */ /* This file contains all TCP input processing functions. */ @@ -4754,6 +4755,9 @@ update_ack: tcp->tcp_rack_cur_max = tcp->tcp_rack_abs_max; else tcp->tcp_rack_cur_max = cur_max; + } else if (tcp->tcp_quickack) { + /* The executable asked that we ack each packet */ + flags |= TH_ACK_NEEDED; } else if (TCP_IS_DETACHED(tcp)) { /* We don't have an ACK timer for detached TCP. */ flags |= TH_ACK_NEEDED; -- cgit v1.2.3