]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/i40e/rte_pmd_i40e.h
net/i40e: set Tx loopback from PF
[dpdk.git] / drivers / net / i40e / rte_pmd_i40e.h
index be6e704522747f8b07db2414ce12471899a65c80..14fce97f2cd66b63fc2b29744a0adf614dd535f1 100644 (file)
@@ -117,4 +117,20 @@ int rte_pmd_i40e_set_vf_vlan_anti_spoof(uint8_t port,
                                        uint16_t vf_id,
                                        uint8_t on);
 
+/**
+ * Enable/Disable TX loopback on all the PF and VFs.
+ *
+ * @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_i40e_set_tx_loopback(uint8_t port,
+                                uint8_t on);
+
 #endif /* _PMD_I40E_H_ */