Commit a2740138 authored by Yevgeny Kliteynik's avatar Yevgeny Kliteynik Committed by Jakub Kicinski
Browse files

net/mlx5: HWS, renamed the files in accordance with naming convention



Removed the 'mlx5hws_' file name prefix from the internal HWS files.

Signed-off-by: default avatarYevgeny Kliteynik <kliteyn@nvidia.com>
Signed-off-by: default avatarTariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20241031125856.530927-4-tariqt@nvidia.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent e03cf321
Loading
Loading
Loading
Loading
+15 −15
Original line number Diff line number Diff line
@@ -136,21 +136,21 @@ mlx5_core-$(CONFIG_MLX5_SW_STEERING) += steering/sws/dr_domain.o \
#
# HW Steering
#
mlx5_core-$(CONFIG_MLX5_HW_STEERING) += steering/hws/mlx5hws_cmd.o \
					steering/hws/mlx5hws_context.o \
					steering/hws/mlx5hws_pat_arg.o \
					steering/hws/mlx5hws_buddy.o \
					steering/hws/mlx5hws_pool.o \
					steering/hws/mlx5hws_table.o \
					steering/hws/mlx5hws_action.o \
					steering/hws/mlx5hws_rule.o \
					steering/hws/mlx5hws_matcher.o \
					steering/hws/mlx5hws_send.o \
					steering/hws/mlx5hws_definer.o \
					steering/hws/mlx5hws_bwc.o \
					steering/hws/mlx5hws_debug.o \
					steering/hws/mlx5hws_vport.o \
					steering/hws/mlx5hws_bwc_complex.o
mlx5_core-$(CONFIG_MLX5_HW_STEERING) += steering/hws/cmd.o \
					steering/hws/context.o \
					steering/hws/pat_arg.o \
					steering/hws/buddy.o \
					steering/hws/pool.o \
					steering/hws/table.o \
					steering/hws/action.o \
					steering/hws/rule.o \
					steering/hws/matcher.o \
					steering/hws/send.o \
					steering/hws/definer.o \
					steering/hws/bwc.o \
					steering/hws/debug.o \
					steering/hws/vport.o \
					steering/hws/bwc_complex.o


#
+1 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
/* Copyright (c) 2024 NVIDIA Corporation & Affiliates */

#include "mlx5hws_internal.h"
#include "internal.h"

#define MLX5HWS_ACTION_METER_INIT_COLOR_OFFSET 1

+3 −3
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
/* Copyright (c) 2024 NVIDIA Corporation & Affiliates */

#ifndef MLX5HWS_ACTION_H_
#define MLX5HWS_ACTION_H_
#ifndef HWS_ACTION_H_
#define HWS_ACTION_H_

/* Max number of STEs needed for a rule (including match) */
#define MLX5HWS_ACTION_MAX_STE 20
@@ -304,4 +304,4 @@ mlx5hws_action_apply_setter(struct mlx5hws_actions_apply_data *apply,
		htonl(num_of_actions << 29);
}

#endif /* MLX5HWS_ACTION_H_ */
#endif /* HWS_ACTION_H_ */
+2 −2
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
/* Copyright (c) 2024 NVIDIA Corporation & Affiliates */

#include "mlx5hws_internal.h"
#include "mlx5hws_buddy.h"
#include "internal.h"
#include "buddy.h"

static int hws_buddy_init(struct mlx5hws_buddy_mem *buddy, u32 max_order)
{
+3 −3
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
/* Copyright (c) 2024 NVIDIA Corporation & Affiliates */

#ifndef MLX5HWS_BUDDY_H_
#define MLX5HWS_BUDDY_H_
#ifndef HWS_BUDDY_H_
#define HWS_BUDDY_H_

struct mlx5hws_buddy_mem {
	unsigned long **bitmap;
@@ -18,4 +18,4 @@ int mlx5hws_buddy_alloc_mem(struct mlx5hws_buddy_mem *buddy, u32 order);

void mlx5hws_buddy_free_mem(struct mlx5hws_buddy_mem *buddy, u32 seg, u32 order);

#endif /* MLX5HWS_BUDDY_H_ */
#endif /* HWS_BUDDY_H_ */
Loading