]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
net/mlx5: E-Switch: Move eswitch chains to a new directory
authorSaeed Mahameed <saeedm@mellanox.com>
Sat, 14 Mar 2020 01:27:35 +0000 (18:27 -0700)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 30 Mar 2020 06:42:22 +0000 (23:42 -0700)
eswitch_offloads_chains.{c,h} were just introduced this kernel release
cycle, eswitch is in high development demand right now and many
features are planned to be added to it. eswitch deserves its own
directory and here we move these new files to there, in preparation for
upcoming eswitch features and new files.

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/Makefile
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
drivers/net/ethernet/mellanox/mlx5/core/esw/Makefile [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/esw/chains.c [moved from drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_chains.c with 99% similarity]
drivers/net/ethernet/mellanox/mlx5/core/esw/chains.h [moved from drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_chains.h with 98% similarity]
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c

index 7408ae380d230365964dd3a68516e0dfb2d29f7d..6d32915000fc55d8dc1cedd9a7d1a0700e705e9c 100644 (file)
@@ -43,7 +43,7 @@ mlx5_core-$(CONFIG_MLX5_TC_CT)             += en/tc_ct.o
 # Core extra
 #
 mlx5_core-$(CONFIG_MLX5_ESWITCH)   += eswitch.o eswitch_offloads.o eswitch_offloads_termtbl.o \
-                                     ecpf.o rdma.o eswitch_offloads_chains.o
+                                     ecpf.o rdma.o esw/chains.o
 mlx5_core-$(CONFIG_MLX5_MPFS)      += lib/mpfs.o
 mlx5_core-$(CONFIG_VXLAN)          += lib/vxlan.o
 mlx5_core-$(CONFIG_PTP_1588_CLOCK) += lib/clock.o
index a22ad6b90847e9cb6720efce68e8acd0b0dbd425..f4b28eb9d943f74e012c4becf586f1e0e0c9ff1c 100644 (file)
 #include <net/netfilter/nf_flow_table.h>
 #include <linux/workqueue.h>
 
+#include "esw/chains.h"
 #include "en/tc_ct.h"
 #include "en.h"
 #include "en_tc.h"
 #include "en_rep.h"
-#include "eswitch_offloads_chains.h"
 
 #define MLX5_CT_ZONE_BITS (mlx5e_tc_attr_to_reg_mappings[ZONE_TO_REG].mlen * 8)
 #define MLX5_CT_ZONE_MASK GENMASK(MLX5_CT_ZONE_BITS - 1, 0)
index d7fa89276ea33ff5443553e06e304745b6a72e65..559453b4c6b6b04f4f3b06a8a533349fc6c6b5c5 100644 (file)
@@ -41,7 +41,7 @@
 #include <net/ipv6_stubs.h>
 
 #include "eswitch.h"
-#include "eswitch_offloads_chains.h"
+#include "esw/chains.h"
 #include "en.h"
 #include "en_rep.h"
 #include "en_tc.h"
index 901b5fa5568f8d4ccbedaa39113d031314d384cd..6474e0a01a5498e60d04f07c6c29e91424829cb1 100644 (file)
@@ -51,7 +51,7 @@
 #include "en_rep.h"
 #include "en_tc.h"
 #include "eswitch.h"
-#include "eswitch_offloads_chains.h"
+#include "esw/chains.h"
 #include "fs_core.h"
 #include "en/port.h"
 #include "en/tc_tun.h"
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/esw/Makefile b/drivers/net/ethernet/mellanox/mlx5/core/esw/Makefile
new file mode 100644 (file)
index 0000000..c78512e
--- /dev/null
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0-only
+subdir-ccflags-y += -I$(src)/..
similarity index 99%
rename from drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_chains.c
rename to drivers/net/ethernet/mellanox/mlx5/core/esw/chains.c
index 184cea62254f6dd0ff6390f7da120942f0ebeb75..0290010407379e71d64d1d8551184fbdb0b15920 100644 (file)
@@ -5,7 +5,7 @@
 #include <linux/mlx5/mlx5_ifc.h>
 #include <linux/mlx5/fs.h>
 
-#include "eswitch_offloads_chains.h"
+#include "esw/chains.h"
 #include "en/mapping.h"
 #include "mlx5_core.h"
 #include "fs_core.h"
similarity index 98%
rename from drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_chains.h
rename to drivers/net/ethernet/mellanox/mlx5/core/esw/chains.h
index f3b9ae6798f364f15258cd909efeb607a417a751..f8c4239846ead8598fac1f80e67804e093f62ee1 100644 (file)
@@ -4,6 +4,8 @@
 #ifndef __ML5_ESW_CHAINS_H__
 #define __ML5_ESW_CHAINS_H__
 
+#include "eswitch.h"
+
 bool
 mlx5_esw_chains_prios_supported(struct mlx5_eswitch *esw);
 bool
index 612bc7d1cdcdad9b74057fbe91a09dffd18237ee..f171eb2234b07e573ea49556582820d47ecf0ecd 100644 (file)
@@ -37,7 +37,7 @@
 #include <linux/mlx5/fs.h>
 #include "mlx5_core.h"
 #include "eswitch.h"
-#include "eswitch_offloads_chains.h"
+#include "esw/chains.h"
 #include "rdma.h"
 #include "en.h"
 #include "fs_core.h"