From patchwork Thu Aug 17 09:11:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leon Romanovsky X-Patchwork-Id: 13356162 X-Patchwork-Delegate: kuba@kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D369512B86 for ; Thu, 17 Aug 2023 09:12:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0CE9FC433CD; Thu, 17 Aug 2023 09:12:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692263565; bh=GXIGtEMigdYTSCm2iTmqFELl4pZbSdBA2ThXERzYR1Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tGRviZinUBE4lgehqCUeo1V4Hgys+hK6OWx4J1S4kpbsTNJRVTL7a6Xt/xvjwAwPw ytyE6pi6+UwC3LmFKpVfToarP8gp+vmMCUu3NRDN14VzWOT/7xkk4P98raAWYKny8b HzuJUJVgduQ7D/X8kcD7cgBhlYmnQZO866vh+cmVZPDyqn+F9bCeSECeo3JVGpVXM9 hvRDlyT4ikLw2JA81Fp7P8z7KusTmlsgOOVy09FO3HUbrnFZLIQtaLo06l9r9d6GaA 6rTb4bZvelDg+zU/966U6JyUdBCCUj9pgS8KfrsPdFj+5nUtlmRA92l2b3v80ReSjc 0CgZneqfQ6raQ== From: Leon Romanovsky To: "David S. Miller" , Jakub Kicinski , Eric Dumazet , Paolo Abeni Cc: Leon Romanovsky , Dima Chumak , Jiri Pirko , Jonathan Corbet , linux-doc@vger.kernel.org, netdev@vger.kernel.org, Saeed Mahameed , Steffen Klassert , Simon Horman Subject: [PATCH net-next v3 5/8] net/mlx5: Add IFC bits to support IPsec enable/disable Date: Thu, 17 Aug 2023 12:11:27 +0300 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org From: Leon Romanovsky Add hardware definitions to allow to control IPSec capabilities. Signed-off-by: Leon Romanovsky --- include/linux/mlx5/mlx5_ifc.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h index 08dcb1f43be7..fc3db401f8a2 100644 --- a/include/linux/mlx5/mlx5_ifc.h +++ b/include/linux/mlx5/mlx5_ifc.h @@ -65,9 +65,11 @@ enum { enum { MLX5_SET_HCA_CAP_OP_MOD_GENERAL_DEVICE = 0x0, + MLX5_SET_HCA_CAP_OP_MOD_ETHERNET_OFFLOADS = 0x1, MLX5_SET_HCA_CAP_OP_MOD_ODP = 0x2, MLX5_SET_HCA_CAP_OP_MOD_ATOMIC = 0x3, MLX5_SET_HCA_CAP_OP_MOD_ROCE = 0x4, + MLX5_SET_HCA_CAP_OP_MOD_IPSEC = 0x15, MLX5_SET_HCA_CAP_OP_MOD_GENERAL_DEVICE2 = 0x20, MLX5_SET_HCA_CAP_OP_MOD_PORT_SELECTION = 0x25, }; @@ -3451,6 +3453,7 @@ union mlx5_ifc_hca_cap_union_bits { struct mlx5_ifc_virtio_emulation_cap_bits virtio_emulation_cap; struct mlx5_ifc_macsec_cap_bits macsec_cap; struct mlx5_ifc_crypto_cap_bits crypto_cap; + struct mlx5_ifc_ipsec_cap_bits ipsec_cap; u8 reserved_at_0[0x8000]; };