From nobody Fri Jul 12 11:24:59 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 4WL8QM6NyVz5QBpS; Fri, 12 Jul 2024 11:24:59 +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 4WL8QM4J1Lz4hp8; Fri, 12 Jul 2024 11:24:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720783499; 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=xXy8isp+GZvlQ162OhIihgCgqQxf9/oIoDYsF7CQ/gc=; b=lqMSz6nhF/Wl0OgDHSHBd9XexyolYn25I4I3Orbu1MxQtsTdnGy8SlEByDYYk6FHZpueOD zRsW9NCBYfNnjgmospI163JgWfkyWNO0Ea3bU757/gII3r376nh8W2HRuR1kmbVUBD0XR1 W05AJ5RAtMHxgZPLzakgKHUADsNip2c8+Irv2ZMvdGeKn92tQ3+Y2RPpeqjtDwyNePoKDq iQHqJDMJkxZIRk1duaUF2qgqZdU59Da9M3rmLOqRn1rrtzxtF6Mudr1PUG+i7eCwJmQ5ei opVz5m51baHTsc0E8/5gvowbozFoFzJM1OJxGdzR2Ap+KK85dnCUT1pER/ozYg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720783499; a=rsa-sha256; cv=none; b=QoY4BtBOSpyzxmnlSAPgBH6+kwpCvBXfB9JSef6MR2bMdxWHgqdI17FOeWQp8wnAf5HCdj DaMpXyNgCWghBI7ydZDOem6WxTzDI776L+8o+XdJ01xLiyC1XZc0VCosUXhcjF4JqsDyrA dnhs5MRWrm+W2qTq15gZUxxOUmAM31715ropFv2PM9zfxQlpBLE2rCHkKNdGa0OPLPOB0Y VpsQQCTkUDnXlkl2znoote2YcAr9Vi5KKR9S9mqjodlv0GQs6EyG5sdpl617IIi/OG2G+Q VqAtyfAIhz3yrsCqRAYNid6bafg9jaXGRzh1IM0HQmSfSaz4REoCwKY1Dkhchg== 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=1720783499; 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=xXy8isp+GZvlQ162OhIihgCgqQxf9/oIoDYsF7CQ/gc=; b=RDeFmbN0Bj8qU6tPtWrevB0JJKmgmwXatXU4RwHk7UioSdffSc0SopO8Cznz1RplWltFQS +0Mk4R5ied0KFOweSnL/TeJT53SCKEq9aEy/CJNxKbaLT3Wy6b/KVWqMt0NrP3/28E6MdQ MWZAEba6Lcp2dQGZSj4WOGZt5cPnBZ5iBmps5lZ+EGn+FyifgvU/4bxu/FFZInqseoNP2W 8CBrzW7Fz4syS8T2wBFD+dgKJA8vHemBVXjl3eboBGrdKPDYgPaB8Su/XiJ4AVNNKuapeX eu9SpYdVv81qu9K/7ZmMnP8IDpAtA8YNQMH3U0JjwoITjrp8UPjeyJhG8fRtmg== 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 4WL8QM3vsHzhDx; Fri, 12 Jul 2024 11:24:59 +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 46CBOxH3092708; Fri, 12 Jul 2024 11:24:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46CBOxlu092705; Fri, 12 Jul 2024 11:24:59 GMT (envelope-from git) Date: Fri, 12 Jul 2024 11:24:59 GMT Message-Id: <202407121124.46CBOxlu092705@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: b256ff9303ba - main - sys/pfkeyv2.h: define extensions for ipsec inline accel control 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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: b256ff9303ba6457584de4fe695f8b0322cd5fdc Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=b256ff9303ba6457584de4fe695f8b0322cd5fdc commit b256ff9303ba6457584de4fe695f8b0322cd5fdc Author: Konstantin Belousov AuthorDate: 2024-02-07 01:49:14 +0000 Commit: Konstantin Belousov CommitDate: 2024-07-12 03:29:31 +0000 sys/pfkeyv2.h: define extensions for ipsec inline accel control The extensions allow to restrict interface where SP or SA are offloaded, and to receive software and hardware offload counters for given SA. Sponsored by: NVIDIA networking Differential revision: https://reviews.freebsd.org/D44316 --- sys/net/pfkeyv2.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/sys/net/pfkeyv2.h b/sys/net/pfkeyv2.h index a0246c9223ba..8df7536f7563 100644 --- a/sys/net/pfkeyv2.h +++ b/sys/net/pfkeyv2.h @@ -296,6 +296,13 @@ struct sadb_x_sa_replay { }; _Static_assert(sizeof(struct sadb_x_sa_replay) == 8, "struct size mismatch"); +struct sadb_x_if_hw_offl { + u_int16_t sadb_x_if_hw_offl_len; + u_int16_t sadb_x_if_hw_offl_exttype; + u_int32_t sadb_x_if_hw_offl_flags; + u_int8_t sadb_x_if_hw_offl_if[32]; /* IF_NAMESIZE is 16, keep room */ +}; + #define SADB_EXT_RESERVED 0 #define SADB_EXT_SA 1 #define SADB_EXT_LIFETIME_CURRENT 2 @@ -326,7 +333,10 @@ _Static_assert(sizeof(struct sadb_x_sa_replay) == 8, "struct size mismatch"); #define SADB_X_EXT_SA_REPLAY 26 /* Replay window override. */ #define SADB_X_EXT_NEW_ADDRESS_SRC 27 #define SADB_X_EXT_NEW_ADDRESS_DST 28 -#define SADB_EXT_MAX 28 +#define SADB_X_EXT_LFT_CUR_SW_OFFL 29 +#define SADB_X_EXT_LFT_CUR_HW_OFFL 30 +#define SADB_X_EXT_IF_HW_OFFL 31 +#define SADB_EXT_MAX 31 #define SADB_SATYPE_UNSPEC 0 #define SADB_SATYPE_AH 2