linux/drivers/net/ethernet/mellanox/mlx5/core/wc.c

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

#include <linux/io.h>
#include <linux/mlx5/transobj.h>
#include "lib/clock.h"
#include "mlx5_core.h"
#include "wq.h"

#define TEST_WC_NUM_WQES
#define TEST_WC_LOG_CQ_SZ
#define TEST_WC_SQ_LOG_WQ_SZ
#define TEST_WC_POLLING_MAX_TIME_JIFFIES

struct mlx5_wc_cq {};

struct mlx5_wc_sq {};

static int mlx5_wc_create_cqwq(struct mlx5_core_dev *mdev, void *cqc,
			       struct mlx5_wc_cq *cq)
{}

static int create_wc_cq(struct mlx5_wc_cq *cq, void *cqc_data)
{}

static int mlx5_wc_create_cq(struct mlx5_core_dev *mdev, struct mlx5_wc_cq *cq)
{}

static void mlx5_wc_destroy_cq(struct mlx5_wc_cq *cq)
{}

static int create_wc_sq(struct mlx5_core_dev *mdev, void *sqc_data,
			struct mlx5_wc_sq *sq)
{}

static int mlx5_wc_create_sq(struct mlx5_core_dev *mdev, struct mlx5_wc_sq *sq)
{}

static void mlx5_wc_destroy_sq(struct mlx5_wc_sq *sq)
{}

static void mlx5_wc_post_nop(struct mlx5_wc_sq *sq, bool signaled)
{}

static int mlx5_wc_poll_cq(struct mlx5_wc_sq *sq)
{}

static void mlx5_core_test_wc(struct mlx5_core_dev *mdev)
{}

bool mlx5_wc_support_get(struct mlx5_core_dev *mdev)
{}
EXPORT_SYMBOL();