aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dpaa/rte_pmd_dpaa.h
blob: 37eea9b0326f20aa48c9f6aa59b3fa3a29309d48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* SPDX-License-Identifier: BSD-3-Clause
 * Copyright 2018 NXP
 */

#ifndef _PMD_DPAA_H_
#define _PMD_DPAA_H_

/**
 * @file rte_pmd_dpaa.h
 *
 * NXP dpaa PMD specific functions.
 *
 * @warning
 * @b EXPERIMENTAL: this API may change, or be removed, without prior notice
 *
 */

#include <rte_ethdev_driver.h>

/**
 * Enable/Disable TX loopback
 *
 * @param port
 *    The port identifier of the Ethernet device.
 * @param on
 *    1 - Enable TX loopback.
 *    0 - Disable TX loopback.
 * @return
 *   - (0) if successful.
 *   - (-ENODEV) if *port* invalid.
 *   - (-EINVAL) if bad parameter.
 */
int
rte_pmd_dpaa_set_tx_loopback(uint8_t port, uint8_t on);

#endif /* _PMD_DPAA_H_ */