src/dpdk/drivers/net/mlx5/mlx5_devx.c
static int
mlx5_devx_ind_table_modify(struct rte_eth_dev *dev, const unsigned int log_n,
			   const uint16_t *queues, const uint32_t queues_n,
			   struct mlx5_ind_table_obj *ind_tbl)
{
	int ret = 0;
	struct mlx5_devx_rqt_attr *rqt_attr = NULL;

	MLX5_ASSERT(ind_tbl);
	rqt_attr = mlx5_devx_ind_table_create_rqt_attr(dev, log_n,
							queues,
							queues_n);
	if (!rqt_attr)
		return -rte_errno;
	ret = mlx5_devx_cmd_modify_rqt(ind_tbl->rqt, rqt_attr);
	mlx5_free(rqt_attr);
	if (ret)
		DRV_LOG(ERR, "Port %u cannot modify DevX RQT.",
			dev->data->port_id);
	return ret;
}
/**
 * Modify RQT using DevX API as a filed of indirection table.
 *
 * @param dev
 *   Pointer to Ethernet device.
 * @param log_n
 *   Log of number of queues in the array.
 * @param ind_tbl
 *   DevX indirection table object.
 *
 * @return
 *   0 on success, a negative errno value otherwise and rte_errno is set.
 */
Modify RQT using DevX API as a filed of indirection table.
@param dev
Pointer to Ethernet device.
@param log_n
Log of number of queues in the array.

@return
0 on success, a negative errno value otherwise and rte_errno is set.
Modify RQT using DevX API as a filed of indirection table . @param dev Pointer to Ethernet device . @param log_n Log of number of queues in the array . @return 0 on success a negative errno value otherwise and rte_errno is set .
static int
mlx5_devx_ind_table_modify(struct rte_eth_dev *dev, const unsigned int log_n,
			   const uint16_t *queues, const uint32_t queues_n,
			   struct mlx5_ind_table_obj *ind_tbl)
{
	int ret = 0;
	struct mlx5_devx_rqt_attr *rqt_attr = NULL;
	MLX5_ASSERT(ind_tbl);
	rqt_attr = mlx5_devx_ind_table_create_rqt_attr(dev, log_n,
							queues,
							queues_n);
	if (!rqt_attr)
		return -rte_errno;
	ret = mlx5_devx_cmd_modify_rqt(ind_tbl->rqt, rqt_attr);
	mlx5_free(rqt_attr);
	if (ret)
		DRV_LOG(ERR, "Port %u cannot modify DevX RQT.",
			dev->data->port_id);
	return ret;
}
static int mlx5_devx_ind_table_modify ( struct rte_eth_dev * dev , const unsigned int log_n , const uint16_t * queues , const uint32_t queues_n , struct mlx5_ind_table_obj * ind_tbl ) { int ret = 0 ; struct mlx5_devx_rqt_attr * rqt_attr = NULL ; MLX5_ASSERT ( ind_tbl ) ; rqt_attr = mlx5_devx_ind_table_create_rqt_attr ( dev , log_n , queues , queues_n ) ; if ( ! rqt_attr ) return - rte_errno ; ret = mlx5_devx_cmd_modify_rqt ( ind_tbl -> rqt , rqt_attr ) ; mlx5_free ( rqt_attr ) ; if ( ret ) DRV_LOG ( ERR , " " , dev -> data -> port_id ) ; return ret ; }
Modify RQT using DevX API as a filed of indirection table.
Modify RQT using DevX API as a filed of indirection table .