xref: /dpdk/drivers/net/mlx5/mlx5_testpmd.h (revision f41a5092e6ae655954bf14f33f54ddf4c83e1cc0)
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright 2021 6WIND S.A.
3  * Copyright 2021 Mellanox Technologies, Ltd
4  */
5 
6 #ifndef RTE_PMD_MLX5_TEST_H_
7 #define RTE_PMD_MLX5_TEST_H_
8 
9 #include <cmdline_parse.h>
10 #include <cmdline_parse_num.h>
11 #include <cmdline_parse_string.h>
12 
13 /**
14  * RTE_ETH_EVENT_RX_AVAIL_THRESH handler sample code.
15  * It's called in testpmd, the work flow here is delay a while until
16  * RX queueu is empty, then disable host shaper.
17  *
18  * @param[in] port_id
19  *   Port identifier.
20  * @param[in] rxq_id
21  *   Rx queue identifier.
22  */
23 void
24 mlx5_test_avail_thresh_event_handler(uint16_t port_id, uint16_t rxq_id);
25 
26 #endif
27