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 * Enable/Disable TX loopback 22 * 23 * @param port 24 * The port identifier of the Ethernet device. 25 * @param on 26 * 1 - Enable TX loopback. 27 * 0 - Disable TX loopback. 28 * @return 29 * - (0) if successful. 30 * - (-ENODEV) if *port* invalid. 31 * - (-EINVAL) if bad parameter. 32 */ 33 int 34 rte_pmd_dpaa_set_tx_loopback(uint8_t port, uint8_t on); 35 36 #endif /* _PMD_DPAA_H_ */ 37