From nobody Fri Feb 16 11:25:24 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TbqNj2J2Sz5BcxQ; Fri, 16 Feb 2024 11:25:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbqNj0n1tz4KZN; Fri, 16 Feb 2024 11:25:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708082725; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/0nRf2D7RaSQoVRpUvxbMgs09q8I44e77/GnSICun5c=; b=oBN/OdoXR+iIxmPur+Rl7H3jOH76ialLDYxu2RsEkqcUxpip2XsrlYeNaZt5LhUOAOtJPn T6ZM9jcDksxxNzZqLFuTqLDQXkM9dlJtwyW99Oz8jmKxSte1+y6VYngDfL2LPrFKhNJ3Uc rMiNZaZ1YhssUScqGXNYg+3AlLZ35QSRcJKpIApVYgdPZqRlkyGdkh+QlP+3DfhBeOtNuP WEf+tek553pPsmPjw1QvIMMGvtlhNgmmHUt6uaXozhWGVMYPrWz14zvG8QylLdlWpXVb6y NZH5vE5HpjvO9jSuJhUQsGM76QWzOuIh/KP/q49qSqJcc9d1tNuLGEfKVrL+cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708082725; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/0nRf2D7RaSQoVRpUvxbMgs09q8I44e77/GnSICun5c=; b=BH4Cj56UYeVIz/ggMll2dUVLptGjl+BRE3ztXdoLersRo3JU0u30PHVDPLaDKZDS0frkPw Ay+Zu2ie31eewv2d18x65m2rqAv0u82WXWdJm6FcUuEppzDRJOnPdGjx11Ow55MYyUhAnW Q7xCZWs617TD3hk4Rhyy+oUfbseHMohnhac7qazTOdM7GFCaiBL5YkdLWdxSgXYUsYJM8f jIdRMo8j5Dl2+02Tl49uiHv5dbYutnOnTWBnhDQOIiiDk91k0F5Kswpgfe7DdlQrmof3RA dxOzSfVG0P+LKuJV7I6+T/Z0HArlULSPiTh24+px35dsMbv3cJA3CwuHCGyDuQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708082725; a=rsa-sha256; cv=none; b=F2ZuLYvRCPpCO4PI71u0mAEJdbsXQpE6WgnhHEBT/2/agWWhQzyawcPySpCTLkeKDtdqWu Oi4O7HGlt8ipP9+BGXL6jmkS+Fg/1aLKdMGEuQ7bSDs5Sa+X3cX8dNdZQh9GhWkPVqAKR2 ru95CZzx6cebDT4VuUExq/02DU50ps0WMqSzEJsvSaTl6LXJLPXFjKgrAKzdY0GyY4rmIz KZcUfp3A+kKGwOf5eEU0SGYPAgB5PIA8atNQwOnxGkY2/a4pmEfhPQjNBBZHV55FkAjF3K PDgOw6V739Sucu863junyILTdBu2FUJABsI//GR6Tw6vTqI4e+sbiR48qCmBgA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TbqNh6z2TzMXw; Fri, 16 Feb 2024 11:25:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41GBPOTV067157; Fri, 16 Feb 2024 11:25:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41GBPOxV067154; Fri, 16 Feb 2024 11:25:24 GMT (envelope-from git) Date: Fri, 16 Feb 2024 11:25:24 GMT Message-Id: <202402161125.41GBPOxV067154@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Michael Tuexen Subject: git: 2f4e46dfdd71 - main - RACK, BBR: handle EACCES like EPERM for IP output handling List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tuexen X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2f4e46dfdd710c6679f233480c9de430e6c4ef9b Auto-Submitted: auto-generated The branch main has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=2f4e46dfdd710c6679f233480c9de430e6c4ef9b commit 2f4e46dfdd710c6679f233480c9de430e6c4ef9b Author: Michael Tuexen AuthorDate: 2024-02-16 11:19:24 +0000 Commit: Michael Tuexen CommitDate: 2024-02-16 11:19:24 +0000 RACK, BBR: handle EACCES like EPERM for IP output handling The FreeBSD TCP base stack handles them also the same way. In case of packet filters dropping packets in the output path, this avoids retranmitting the dropped packet every 10ms or so. Reviewed by: rscheff MFC after: 1 week Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D43773 --- sys/netinet/tcp_stacks/bbr.c | 1 + sys/netinet/tcp_stacks/rack.c | 1 + 2 files changed, 2 insertions(+) diff --git a/sys/netinet/tcp_stacks/bbr.c b/sys/netinet/tcp_stacks/bbr.c index c643f0321099..931beba7a262 100644 --- a/sys/netinet/tcp_stacks/bbr.c +++ b/sys/netinet/tcp_stacks/bbr.c @@ -13809,6 +13809,7 @@ nomore: return (error); } case EPERM: + case EACCES: tp->t_softerror = error; /* FALLTHROUGH */ case EHOSTDOWN: diff --git a/sys/netinet/tcp_stacks/rack.c b/sys/netinet/tcp_stacks/rack.c index 0ec50bb5e5c5..49d946dbb63b 100644 --- a/sys/netinet/tcp_stacks/rack.c +++ b/sys/netinet/tcp_stacks/rack.c @@ -22376,6 +22376,7 @@ nomore: sendalot = 0; switch (error) { case EPERM: + case EACCES: tp->t_softerror = error; #ifdef TCP_ACCOUNTING crtsc = get_cyclecount();