7158e46cb9
Add LWM (Limit WaterMark) field to Rxq object which indicates the percentage of Rx queue size used by HW to raise descriptor event to the user. Allow LWM setting in modify_rq command. Allow the LWM configuration dynamically by adding RDY2RDY state change. Signed-off-by: Spike Du <spiked@nvidia.com> Acked-by: Matan Azrad <matan@nvidia.com>
19 lines
546 B
C
19 lines
546 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright 2020 Mellanox Technologies, Ltd
|
|
*/
|
|
|
|
#ifndef RTE_PMD_MLX5_DEVX_H_
|
|
#define RTE_PMD_MLX5_DEVX_H_
|
|
|
|
#include "mlx5.h"
|
|
|
|
int mlx5_txq_devx_obj_new(struct rte_eth_dev *dev, uint16_t idx);
|
|
int mlx5_txq_devx_modify(struct mlx5_txq_obj *obj,
|
|
enum mlx5_txq_modify_type type, uint8_t dev_port);
|
|
void mlx5_txq_devx_obj_release(struct mlx5_txq_obj *txq_obj);
|
|
int mlx5_devx_modify_rq(struct mlx5_rxq_priv *rxq, uint8_t type);
|
|
|
|
extern struct mlx5_obj_ops devx_obj_ops;
|
|
|
|
#endif /* RTE_PMD_MLX5_DEVX_H_ */
|