Netdev List
 help / color / mirror / Atom feed
From: Saeed Mahameed <saeedm@mellanox.com>
To: "David S. Miller" <davem@davemloft.net>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	Alex Vesker <valex@mellanox.com>,
	Erez Shitrit <erezsh@mellanox.com>,
	Yevgeny Kliteynik <kliteyn@mellanox.com>,
	Mark Bloch <markb@mellanox.com>,
	Saeed Mahameed <saeedm@mellanox.com>
Subject: [net-next V2 14/18] net/mlx5: DR, Add CONFIG_MLX5_SW_STEERING for software steering support
Date: Tue, 3 Sep 2019 20:04:56 +0000	[thread overview]
Message-ID: <20190903200409.14406-15-saeedm@mellanox.com> (raw)
In-Reply-To: <20190903200409.14406-1-saeedm@mellanox.com>

From: Alex Vesker <valex@mellanox.com>

Add new mlx5 Kconfig flag to allow selecting software steering
support and compile all the steering files only if the flag is
selected.

Signed-off-by: Alex Vesker <valex@mellanox.com>
Signed-off-by: Yevgeny Kliteynik <kliteyn@mellanox.com>
Reviewed-by: Erez Shitrit <erezsh@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
---
 drivers/net/ethernet/mellanox/mlx5/core/Kconfig           | 7 +++++++
 drivers/net/ethernet/mellanox/mlx5/core/Makefile          | 7 +++++++
 drivers/net/ethernet/mellanox/mlx5/core/steering/Makefile | 2 ++
 3 files changed, 16 insertions(+)
 create mode 100644 drivers/net/ethernet/mellanox/mlx5/core/steering/Makefile

diff --git a/drivers/net/ethernet/mellanox/mlx5/core/Kconfig b/drivers/net/ethernet/mellanox/mlx5/core/Kconfig
index 37fef8cd25e3..0d8dd885b7d6 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/Kconfig
+++ b/drivers/net/ethernet/mellanox/mlx5/core/Kconfig
@@ -154,3 +154,10 @@ config MLX5_EN_TLS
 	Build support for TLS cryptography-offload accelaration in the NIC.
 	Note: Support for hardware with this capability needs to be selected
 	for this option to become available.
+
+config MLX5_SW_STEERING
+	bool "Mellanox Technologies software-managed steering"
+	depends on MLX5_CORE_EN && MLX5_ESWITCH
+	default y
+	help
+	Build support for software-managed steering in the NIC.
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/Makefile b/drivers/net/ethernet/mellanox/mlx5/core/Makefile
index e9163875efd6..716558476eda 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/Makefile
+++ b/drivers/net/ethernet/mellanox/mlx5/core/Makefile
@@ -67,3 +67,10 @@ mlx5_core-$(CONFIG_MLX5_EN_IPSEC) += en_accel/ipsec.o en_accel/ipsec_rxtx.o \
 
 mlx5_core-$(CONFIG_MLX5_EN_TLS) += en_accel/tls.o en_accel/tls_rxtx.o en_accel/tls_stats.o \
 				   en_accel/ktls.o en_accel/ktls_tx.o
+
+mlx5_core-$(CONFIG_MLX5_SW_STEERING) += steering/dr_domain.o steering/dr_table.o \
+					steering/dr_matcher.o steering/dr_rule.o \
+					steering/dr_icm_pool.o steering/dr_crc32.o \
+					steering/dr_ste.o steering/dr_send.o \
+					steering/dr_cmd.o steering/dr_fw.o \
+					steering/dr_action.o
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/steering/Makefile b/drivers/net/ethernet/mellanox/mlx5/core/steering/Makefile
new file mode 100644
index 000000000000..c78512eed8d7
--- /dev/null
+++ b/drivers/net/ethernet/mellanox/mlx5/core/steering/Makefile
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0-only
+subdir-ccflags-y += -I$(src)/..
-- 
2.21.0


  parent reply	other threads:[~2019-09-03 20:05 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-03 20:04 [pull request][net-next V2 00/18] Mellanox, mlx5 software managed steering Saeed Mahameed
2019-09-03 20:04 ` [net-next V2 01/18] net/mlx5: Add flow steering actions to fs_cmd shim layer Saeed Mahameed
2019-09-03 20:04 ` [net-next V2 02/18] net/mlx5: DR, Add the internal direct rule types definitions Saeed Mahameed
2019-09-03 20:04 ` [net-next V2 03/18] net/mlx5: DR, Add direct rule command utilities Saeed Mahameed
2019-09-03 20:04 ` [net-next V2 04/18] net/mlx5: DR, ICM pool memory allocator Saeed Mahameed
2019-09-03 20:04 ` [net-next V2 05/18] net/mlx5: DR, Expose an internal API to issue RDMA operations Saeed Mahameed
2019-09-03 20:04 ` [net-next V2 06/18] net/mlx5: DR, Add Steering entry (STE) utilities Saeed Mahameed
2019-09-03 20:04 ` [net-next V2 07/18] net/mlx5: DR, Expose steering domain functionality Saeed Mahameed
2019-09-03 20:04 ` [net-next V2 08/18] net/mlx5: DR, Expose steering table functionality Saeed Mahameed
2019-09-03 20:04 ` [net-next V2 09/18] net/mlx5: DR, Expose steering matcher functionality Saeed Mahameed
2019-09-03 20:04 ` [net-next V2 10/18] net/mlx5: DR, Expose steering action functionality Saeed Mahameed
2019-09-03 20:04 ` [net-next V2 11/18] net/mlx5: DR, Expose steering rule functionality Saeed Mahameed
2019-09-03 20:04 ` [net-next V2 12/18] net/mlx5: DR, Add required FW steering functionality Saeed Mahameed
2019-09-03 20:04 ` [net-next V2 13/18] net/mlx5: DR, Expose APIs for direct rule managing Saeed Mahameed
2019-09-03 20:04 ` Saeed Mahameed [this message]
2019-09-03 20:04 ` [net-next V2 15/18] net/mlx5: Add direct rule fs_cmd implementation Saeed Mahameed
2019-09-03 20:05 ` [net-next V2 16/18] net/mlx5: Add API to set the namespace steering mode Saeed Mahameed
2019-09-03 20:05 ` [net-next V2 17/18] net/mlx5: Add support to use SMFS in switchdev mode Saeed Mahameed
2019-09-03 20:05 ` [net-next V2 18/18] net/mlx5: Add devlink flow_steering_mode parameter Saeed Mahameed
2019-09-04  4:48 ` [pull request][net-next V2 00/18] Mellanox, mlx5 software managed steering David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190903200409.14406-15-saeedm@mellanox.com \
    --to=saeedm@mellanox.com \
    --cc=davem@davemloft.net \
    --cc=erezsh@mellanox.com \
    --cc=kliteyn@mellanox.com \
    --cc=markb@mellanox.com \
    --cc=netdev@vger.kernel.org \
    --cc=valex@mellanox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox