Skip to content

Commit 0027d70

Browse files
Chris MiSaeed Mahameed
authored andcommitted
net/mlx5e: Move esw/sample to en/tc/sample
Module sample belongs to en/tc instead of esw. Move it and rename accordingly. Signed-off-by: Chris Mi <[email protected]> Reviewed-by: Roi Dayan <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 5024fa9 commit 0027d70

File tree

7 files changed

+104
-104
lines changed

7 files changed

+104
-104
lines changed

drivers/net/ethernet/mellanox/mlx5/core/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ mlx5_core-$(CONFIG_MLX5_CLS_ACT) += en_tc.o en/rep/tc.o en/rep/neigh.o \
4646
en/tc_tun_vxlan.o en/tc_tun_gre.o en/tc_tun_geneve.o \
4747
en/tc_tun_mplsoudp.o diag/en_tc_tracepoint.o
4848
mlx5_core-$(CONFIG_MLX5_TC_CT) += en/tc_ct.o
49+
mlx5_core-$(CONFIG_MLX5_TC_SAMPLE) += en/tc/sample.o
4950

5051
#
5152
# Core extra
@@ -56,7 +57,6 @@ mlx5_core-$(CONFIG_MLX5_ESWITCH) += esw/acl/helper.o \
5657
esw/acl/egress_lgcy.o esw/acl/egress_ofld.o \
5758
esw/acl/ingress_lgcy.o esw/acl/ingress_ofld.o \
5859
esw/devlink_port.o esw/vporttbl.o
59-
mlx5_core-$(CONFIG_MLX5_TC_SAMPLE) += esw/sample.o
6060
mlx5_core-$(CONFIG_MLX5_BRIDGE) += esw/bridge.o en/rep/bridge.o
6161

6262
mlx5_core-$(CONFIG_MLX5_MPFS) += lib/mpfs.o

drivers/net/ethernet/mellanox/mlx5/core/en/rep/tc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include "en/mapping.h"
1818
#include "en/tc_tun.h"
1919
#include "lib/port_tun.h"
20-
#include "esw/sample.h"
20+
#include "en/tc/sample.h"
2121

2222
struct mlx5e_rep_indr_block_priv {
2323
struct net_device *netdev;
@@ -677,7 +677,7 @@ bool mlx5e_rep_tc_update_skb(struct mlx5_cqe64 *cqe,
677677
#endif /* CONFIG_NET_TC_SKB_EXT */
678678
#if IS_ENABLED(CONFIG_MLX5_TC_SAMPLE)
679679
if (mapped_obj.type == MLX5_MAPPED_OBJ_SAMPLE) {
680-
mlx5_esw_sample_skb(skb, &mapped_obj);
680+
mlx5e_tc_sample_skb(skb, &mapped_obj);
681681
return false;
682682
}
683683
#endif /* CONFIG_MLX5_TC_SAMPLE */

0 commit comments

Comments
 (0)