New upstream version 18.02
[deb_dpdk.git] / drivers / net / dpaa / rte_pmd_dpaa.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright 2018 NXP
3  */
4
5 #ifndef _PMD_DPAA_H_
6 #define _PMD_DPAA_H_
7
8 /**
9  * @file rte_pmd_dpaa.h
10  *
11  * NXP dpaa PMD specific functions.
12  *
13  * @warning
14  * @b EXPERIMENTAL: this API may change, or be removed, without prior notice
15  *
16  */
17
18 #include <rte_ethdev_driver.h>
19
20 /**
21  * @warning
22  * @b EXPERIMENTAL: this API may change, or be removed, without prior notice
23  *
24  * Enable/Disable TX loopback
25  *
26  * @param port
27  *    The port identifier of the Ethernet device.
28  * @param on
29  *    1 - Enable TX loopback.
30  *    0 - Disable TX loopback.
31  * @return
32  *   - (0) if successful.
33  *   - (-ENODEV) if *port* invalid.
34  *   - (-EINVAL) if bad parameter.
35  */
36 int __rte_experimental
37 rte_pmd_dpaa_set_tx_loopback(uint8_t port, uint8_t on);
38
39 #endif /* _PMD_DPAA_H_ */