linux/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_arg.c

// SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
// Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.

#include "dr_types.h"

#define DR_ICM_MODIFY_HDR_GRANULARITY_4K

/* modify-header arg pool */
enum dr_arg_chunk_size {};

/* argument pool area */
struct dr_arg_pool {};

struct mlx5dr_arg_mgr {};

static int dr_arg_pool_alloc_objs(struct dr_arg_pool *pool)
{}

static struct mlx5dr_arg_obj *dr_arg_pool_get_arg_obj(struct dr_arg_pool *pool)
{}

static void dr_arg_pool_put_arg_obj(struct dr_arg_pool *pool,
				    struct mlx5dr_arg_obj *arg_obj)
{}

static struct dr_arg_pool *dr_arg_pool_create(struct mlx5dr_domain *dmn,
					      enum dr_arg_chunk_size chunk_size)
{}

static void dr_arg_pool_destroy(struct dr_arg_pool *pool)
{}

static enum dr_arg_chunk_size dr_arg_get_chunk_size(u16 num_of_actions)
{}

u32 mlx5dr_arg_get_obj_id(struct mlx5dr_arg_obj *arg_obj)
{}

struct mlx5dr_arg_obj *mlx5dr_arg_get_obj(struct mlx5dr_arg_mgr *mgr,
					  u16 num_of_actions,
					  u8 *data)
{}

void mlx5dr_arg_put_obj(struct mlx5dr_arg_mgr *mgr,
			struct mlx5dr_arg_obj *arg_obj)
{}

struct mlx5dr_arg_mgr*
mlx5dr_arg_mgr_create(struct mlx5dr_domain *dmn)
{}

void mlx5dr_arg_mgr_destroy(struct mlx5dr_arg_mgr *mgr)
{}