1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright 2020 Mellanox Technologies, Ltd
9 #include <ethdev_driver.h>
10 #include <rte_string_fns.h>
12 #include <mlx5_common_mp.h>
13 #include <mlx5_common_mr.h>
14 #include <mlx5_malloc.h>
17 #include "mlx5_rxtx.h"
18 #include "mlx5_utils.h"
21 * Broadcast request of starting data-path to secondary processes. The request
25 * Pointer to Ethernet structure.
28 mlx5_mp_os_req_start_rxtx(struct rte_eth_dev *dev)
34 * Broadcast request of stopping data-path to secondary processes. The request
38 * Pointer to Ethernet structure.
41 mlx5_mp_os_req_stop_rxtx(struct rte_eth_dev *dev)
47 * Request Verbs Rx/Tx queue stop or start to the primary process.
50 * Pointer to Ethernet structure.
52 * Queue ID to control.
55 * MLX5_MP_REQ_QUEUE_RX_START - start Rx queue
56 * MLX5_MP_REQ_QUEUE_TX_START - stop Tx queue
57 * MLX5_MP_REQ_QUEUE_RX_STOP - stop Rx queue
58 * MLX5_MP_REQ_QUEUE_TX_STOP - stop Tx queue
60 * 0 on success, a negative errno value otherwise and
64 mlx5_mp_os_req_queue_control(struct rte_eth_dev *dev, uint16_t queue_id,
65 enum mlx5_mp_req_type req_type)
68 RTE_SET_USED(queue_id);
69 RTE_SET_USED(req_type);