From nobody Wed Sep 04 08:50:24 2024 X-Original-To: dev-commits-src-main@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 4WzGR503Qnz5TRmw; Wed, 04 Sep 2024 08:50: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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WzGR45LkXz4VvT; Wed, 4 Sep 2024 08:50:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725439824; 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=Gb7xgrMM1MzsdOAmxTjQoVfA0/IZsbe8eaBkC9Yf4ag=; b=m1jpK2LjzmY7jW6pA0NOkWBNIyo6jdxrcpk/p7T5ou0UqI6+9iNPQvGUuDyY838Q4s/HT3 WSmkpTXrDPZZlQR2B201/jbCCtrYfdS+ZFBt5dHoGlAuM0FH0ECYd0havYEw8Ipzb9hTM+ c3ttYljp9EfGD1l8WiunaosOn+Ug2A9cskasPpHEQkIORSn5MkOYYUG7/4vDL4CNYkSuT4 amgjUc5Alhhr3oiwvE1VA7im/ExgsSygb1CX22m6m0YLZIxDj5yNkD0Y33nJFk3v1Ix3QO OErnoaP749OQsHsniMIik3KHxyl/zcLzULKR7wLTCL0IEJNufeiTFGvIF2WQtg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725439824; a=rsa-sha256; cv=none; b=Vin6CuOoDeylx/lF8weJQO9VGYM45vA0bbWwwBEdLhU09sXXO9fV98TRXLNihcrb0rq5Oc X22SsLmpw9jFUBspBWjPBS4fGeZNsv2GVbHDAchhVttBms6iPBX9ooGK24fUPdmWEz45KG wDDb+scYyfLoYgA28q/XZ2v1FOlvdv2QvJCA3ARfxD06Y+gPBsXmZKVUwq7VcC7y758TyK f6lSRSlwl8Oko3MDr3PyD00LraOWZb4rQYwX2GTgQyaHs/RjRXA14Muf9PqESQjxb3qwo+ 1ey6o4g5/Shg6FYYzLGmP+Y88OZlRzQNSKjhZz9tdNzoD/L3+NsXT2pZ9aLwrw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725439824; 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=Gb7xgrMM1MzsdOAmxTjQoVfA0/IZsbe8eaBkC9Yf4ag=; b=uKyB9ZqefiZ6R3BkgZ8u4dDAQLHJAC0OwPfEGpSFunhSiEOkS6IlK0F4ZgQ4HEGr+DQnG5 9o9jFFV4Ikf3gJPHEavsd/ly3Ka6O3ZBckUQliD6sr8KPor/Y14zAMGtPIkwwl1gcWtyrJ ta7dXna0/hrHQx5itpqvFd0p7DA+wU32HGh4B9UM5HQSuJEjhBTRmgjaI6uSU8otaPnylG d54grkD7Y+5h67g+CWgMvVsWZWtAwQ1l5JocSxer3Rif5G5/Q7hWQ/oohzJDLctRxmNAl9 ZJlDbfO40oLkVL7bAKo4dx00GxOklYPTv8nRIvvHmISjiLJzpi2U2gHAb60JPQ== 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 4WzGR44bz5zHbf; Wed, 4 Sep 2024 08:50:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4848oOe1096814; Wed, 4 Sep 2024 08:50:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4848oO2M096811; Wed, 4 Sep 2024 08:50:24 GMT (envelope-from git) Date: Wed, 4 Sep 2024 08:50:24 GMT Message-Id: <202409040850.4848oO2M096811@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 1af77be32760 - main - ipsec_offlad: remove not needed IFP_HS_INPUT/OUTPUT flags List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1af77be32760a86df242a1ffc3292dc3a7e59e27 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=1af77be32760a86df242a1ffc3292dc3a7e59e27 commit 1af77be32760a86df242a1ffc3292dc3a7e59e27 Author: Konstantin Belousov AuthorDate: 2024-09-01 16:20:14 +0000 Commit: Konstantin Belousov CommitDate: 2024-09-04 08:49:38 +0000 ipsec_offlad: remove not needed IFP_HS_INPUT/OUTPUT flags Calculate the hdr_ext_size unconditionally, it is kept unused for SAs not handling the input. Sponsored by: NVidia networking --- sys/netipsec/ipsec_offload.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sys/netipsec/ipsec_offload.c b/sys/netipsec/ipsec_offload.c index 7453fb3818a6..5e8755d5f243 100644 --- a/sys/netipsec/ipsec_offload.c +++ b/sys/netipsec/ipsec_offload.c @@ -97,8 +97,6 @@ struct ifp_handle_sav { #define IFP_HS_HANDLED 0x00000001 #define IFP_HS_REJECTED 0x00000002 -#define IFP_HS_INPUT 0x00000004 -#define IFP_HS_OUTPUT 0x00000008 #define IFP_HS_MARKER 0x00000010 static CK_LIST_HEAD(, ifp_handle_sav) ipsec_accel_all_sav_handles; @@ -405,8 +403,7 @@ ipsec_accel_handle_sav(struct secasvar *sav, struct ifnet *ifp, ihs->drv_spi = drv_spi; ihs->ifdata = priv; ihs->flags = flags; - if ((flags & IFP_HS_OUTPUT) != 0) - ihs->hdr_ext_size = esp_hdrsiz(sav); + ihs->hdr_ext_size = esp_hdrsiz(sav); mtx_lock(&ipsec_accel_sav_tmp); CK_LIST_FOREACH(i, &sav->accel_ifps, sav_link) { if (i->ifp == ifp) {