]> git.droids-corp.org - dpdk.git/commitdiff
ethdev: make driver-only headers private
authorBruce Richardson <bruce.richardson@intel.com>
Fri, 29 Jan 2021 16:48:19 +0000 (16:48 +0000)
committerDavid Marchand <david.marchand@redhat.com>
Fri, 29 Jan 2021 19:59:09 +0000 (20:59 +0100)
The rte_ethdev_driver.h, rte_ethdev_vdev.h and rte_ethdev_pci.h files are
for drivers only and should be a private to DPDK and not installed.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Steven Webster <steven.webster@windriver.com>
255 files changed:
app/test/test_link_bonding.c
app/test/test_pdump.c
app/test/virtual_pmd.c
doc/guides/rel_notes/release_21_02.rst
drivers/bus/dpaa/dpaa_bus.c
drivers/bus/dpaa/include/fman.h
drivers/bus/fslmc/fslmc_bus.c
drivers/bus/fslmc/fslmc_vfio.c
drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c
drivers/bus/fslmc/portal/dpaa2_hw_dpci.c
drivers/bus/fslmc/portal/dpaa2_hw_dpio.c
drivers/event/dpaa2/dpaa2_eventdev.c
drivers/event/dpaa2/dpaa2_hw_dpcon.c
drivers/event/octeontx/ssovf_evdev.c
drivers/mempool/dpaa2/dpaa2_hw_mempool.c
drivers/net/af_packet/rte_eth_af_packet.c
drivers/net/af_xdp/rte_eth_af_xdp.c
drivers/net/ark/ark_ethdev.c
drivers/net/ark/ark_ethdev_rx.h
drivers/net/ark/ark_ethdev_tx.h
drivers/net/ark/ark_ext.h
drivers/net/ark/ark_global.h
drivers/net/ark/ark_pktchkr.c
drivers/net/ark/ark_pktgen.c
drivers/net/atlantic/atl_ethdev.c
drivers/net/atlantic/atl_rxtx.c
drivers/net/atlantic/rte_pmd_atlantic.c
drivers/net/avp/avp_ethdev.c
drivers/net/axgbe/axgbe_common.h
drivers/net/bnx2x/bnx2x_ethdev.c
drivers/net/bnx2x/bnx2x_ethdev.h
drivers/net/bnxt/bnxt.h
drivers/net/bnxt/bnxt_ethdev.c
drivers/net/bnxt/bnxt_stats.h
drivers/net/bnxt/rte_pmd_bnxt.c
drivers/net/bonding/eth_bond_private.h
drivers/net/bonding/rte_eth_bond_api.c
drivers/net/bonding/rte_eth_bond_pmd.c
drivers/net/cxgbe/base/t4_hw.c
drivers/net/cxgbe/base/t4vf_hw.c
drivers/net/cxgbe/cxgbe_ethdev.c
drivers/net/cxgbe/cxgbe_main.c
drivers/net/cxgbe/cxgbevf_ethdev.c
drivers/net/cxgbe/cxgbevf_main.c
drivers/net/cxgbe/sge.c
drivers/net/dpaa/dpaa_ethdev.c
drivers/net/dpaa/dpaa_ethdev.h
drivers/net/dpaa/dpaa_rxtx.c
drivers/net/dpaa2/base/dpaa2_hw_dpni.c
drivers/net/dpaa2/dpaa2_ethdev.c
drivers/net/dpaa2/dpaa2_rxtx.c
drivers/net/e1000/em_ethdev.c
drivers/net/e1000/em_rxtx.c
drivers/net/e1000/igb_ethdev.c
drivers/net/e1000/igb_flow.c
drivers/net/e1000/igb_pf.c
drivers/net/e1000/igb_rxtx.c
drivers/net/ena/ena_ethdev.c
drivers/net/enetc/enetc_ethdev.c
drivers/net/enic/enic_ethdev.c
drivers/net/enic/enic_flow.c
drivers/net/enic/enic_fm_flow.c
drivers/net/enic/enic_main.c
drivers/net/enic/enic_res.c
drivers/net/enic/enic_rxtx.c
drivers/net/enic/enic_rxtx_vec_avx2.c
drivers/net/enic/enic_vf_representor.c
drivers/net/failsafe/failsafe.c
drivers/net/failsafe/failsafe_ops.c
drivers/net/failsafe/failsafe_private.h
drivers/net/failsafe/failsafe_rxtx.c
drivers/net/fm10k/fm10k_ethdev.c
drivers/net/fm10k/fm10k_rxtx.c
drivers/net/fm10k/fm10k_rxtx_vec.c
drivers/net/hinic/base/hinic_pmd_hwdev.c
drivers/net/hinic/hinic_pmd_ethdev.c
drivers/net/hinic/hinic_pmd_ethdev.h
drivers/net/hns3/hns3_cmd.c
drivers/net/hns3/hns3_ethdev.c
drivers/net/hns3/hns3_ethdev.h
drivers/net/hns3/hns3_ethdev_vf.c
drivers/net/hns3/hns3_fdir.c
drivers/net/hns3/hns3_mbx.c
drivers/net/hns3/hns3_mp.c
drivers/net/hns3/hns3_regs.c
drivers/net/hns3/hns3_rxtx.c
drivers/net/hns3/hns3_rxtx_vec.c
drivers/net/hns3/hns3_rxtx_vec_sve.c
drivers/net/i40e/i40e_ethdev.c
drivers/net/i40e/i40e_ethdev_vf.c
drivers/net/i40e/i40e_fdir.c
drivers/net/i40e/i40e_flow.c
drivers/net/i40e/i40e_pf.c
drivers/net/i40e/i40e_rxtx.c
drivers/net/i40e/i40e_rxtx_vec_altivec.c
drivers/net/i40e/i40e_rxtx_vec_avx2.c
drivers/net/i40e/i40e_rxtx_vec_avx512.c
drivers/net/i40e/i40e_rxtx_vec_common.h
drivers/net/i40e/i40e_rxtx_vec_neon.c
drivers/net/i40e/i40e_rxtx_vec_sse.c
drivers/net/i40e/i40e_vf_representor.c
drivers/net/iavf/iavf_ethdev.c
drivers/net/iavf/iavf_fdir.c
drivers/net/iavf/iavf_generic_flow.c
drivers/net/iavf/iavf_hash.c
drivers/net/iavf/iavf_rxtx.c
drivers/net/iavf/iavf_rxtx_vec_common.h
drivers/net/iavf/iavf_rxtx_vec_sse.c
drivers/net/iavf/iavf_vchnl.c
drivers/net/ice/ice_acl_filter.c
drivers/net/ice/ice_dcf.c
drivers/net/ice/ice_dcf.h
drivers/net/ice/ice_dcf_ethdev.c
drivers/net/ice/ice_ethdev.c
drivers/net/ice/ice_ethdev.h
drivers/net/ice/ice_generic_flow.c
drivers/net/ice/ice_hash.c
drivers/net/ice/ice_rxtx.c
drivers/net/ice/ice_switch_filter.c
drivers/net/igc/igc_ethdev.c
drivers/net/igc/igc_filter.h
drivers/net/igc/igc_txrx.c
drivers/net/ionic/ionic_ethdev.c
drivers/net/ionic/ionic_lif.c
drivers/net/ionic/ionic_rxtx.c
drivers/net/ipn3ke/ipn3ke_ethdev.c
drivers/net/ipn3ke/ipn3ke_ethdev.h
drivers/net/ipn3ke/ipn3ke_flow.c
drivers/net/ipn3ke/ipn3ke_representor.c
drivers/net/ipn3ke/ipn3ke_tm.c
drivers/net/ixgbe/ixgbe_bypass.c
drivers/net/ixgbe/ixgbe_ethdev.c
drivers/net/ixgbe/ixgbe_fdir.c
drivers/net/ixgbe/ixgbe_flow.c
drivers/net/ixgbe/ixgbe_ipsec.c
drivers/net/ixgbe/ixgbe_pf.c
drivers/net/ixgbe/ixgbe_rxtx.c
drivers/net/ixgbe/ixgbe_rxtx_vec_common.h
drivers/net/ixgbe/ixgbe_rxtx_vec_neon.c
drivers/net/ixgbe/ixgbe_rxtx_vec_sse.c
drivers/net/ixgbe/ixgbe_vf_representor.c
drivers/net/ixgbe/rte_pmd_ixgbe.c
drivers/net/kni/rte_eth_kni.c
drivers/net/liquidio/base/lio_23xx_vf.c
drivers/net/liquidio/base/lio_mbox.c
drivers/net/liquidio/lio_ethdev.c
drivers/net/liquidio/lio_rxtx.c
drivers/net/memif/memif_socket.c
drivers/net/memif/rte_eth_memif.c
drivers/net/memif/rte_eth_memif.h
drivers/net/mlx4/mlx4.c
drivers/net/mlx4/mlx4.h
drivers/net/mlx4/mlx4_ethdev.c
drivers/net/mlx4/mlx4_flow.c
drivers/net/mlx4/mlx4_flow.h
drivers/net/mlx4/mlx4_intr.c
drivers/net/mlx4/mlx4_mp.c
drivers/net/mlx4/mlx4_rxq.c
drivers/net/mlx4/mlx4_rxtx.h
drivers/net/mlx4/mlx4_txq.c
drivers/net/mlx5/linux/mlx5_ethdev_os.c
drivers/net/mlx5/linux/mlx5_mp_os.c
drivers/net/mlx5/linux/mlx5_os.c
drivers/net/mlx5/linux/mlx5_verbs.c
drivers/net/mlx5/linux/mlx5_vlan_os.c
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_defs.h
drivers/net/mlx5/mlx5_ethdev.c
drivers/net/mlx5/mlx5_flow.c
drivers/net/mlx5/mlx5_flow_dv.c
drivers/net/mlx5/mlx5_flow_verbs.c
drivers/net/mlx5/mlx5_mac.c
drivers/net/mlx5/mlx5_rss.c
drivers/net/mlx5/mlx5_rxmode.c
drivers/net/mlx5/mlx5_rxq.c
drivers/net/mlx5/mlx5_stats.c
drivers/net/mlx5/mlx5_trigger.c
drivers/net/mlx5/mlx5_txpp.c
drivers/net/mlx5/mlx5_txq.c
drivers/net/mlx5/mlx5_vlan.c
drivers/net/mlx5/windows/mlx5_ethdev_os.c
drivers/net/mlx5/windows/mlx5_mp_os.c
drivers/net/mlx5/windows/mlx5_os.c
drivers/net/mlx5/windows/mlx5_vlan_os.c
drivers/net/mvneta/mvneta_ethdev.c
drivers/net/mvpp2/mrvl_ethdev.c
drivers/net/netvsc/hn_ethdev.c
drivers/net/netvsc/hn_rndis.c
drivers/net/netvsc/hn_vf.c
drivers/net/nfb/nfb_ethdev.c
drivers/net/nfb/nfb_tx.h
drivers/net/nfp/nfp_net.c
drivers/net/nfp/nfpcore/nfp_cpp.h
drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c
drivers/net/nfp/nfpcore/nfp_cppcore.c
drivers/net/null/rte_eth_null.c
drivers/net/octeontx/octeontx_ethdev.h
drivers/net/octeontx/octeontx_rxtx.c
drivers/net/octeontx/octeontx_rxtx.h
drivers/net/octeontx2/otx2_ethdev.c
drivers/net/octeontx2/otx2_link.c
drivers/net/octeontx2/otx2_ptp.c
drivers/net/pcap/rte_eth_pcap.c
drivers/net/pfe/pfe_eth.h
drivers/net/pfe/pfe_ethdev.c
drivers/net/qede/qede_ethdev.h
drivers/net/ring/rte_eth_ring.c
drivers/net/sfc/sfc.h
drivers/net/sfc/sfc_dp_rx.h
drivers/net/sfc/sfc_dp_tx.h
drivers/net/sfc/sfc_ethdev.c
drivers/net/sfc/sfc_ev.h
drivers/net/sfc/sfc_flow.c
drivers/net/sfc/sfc_rx.h
drivers/net/sfc/sfc_tx.h
drivers/net/softnic/rte_eth_softnic.c
drivers/net/softnic/rte_eth_softnic_internals.h
drivers/net/szedata2/rte_eth_szedata2.c
drivers/net/tap/rte_eth_tap.c
drivers/net/tap/rte_eth_tap.h
drivers/net/thunderx/nicvf_ethdev.c
drivers/net/thunderx/nicvf_ethdev.h
drivers/net/thunderx/nicvf_rxtx.c
drivers/net/thunderx/nicvf_rxtx.h
drivers/net/thunderx/nicvf_struct.h
drivers/net/txgbe/txgbe_ethdev.c
drivers/net/txgbe/txgbe_ipsec.c
drivers/net/txgbe/txgbe_pf.c
drivers/net/txgbe/txgbe_rxtx.c
drivers/net/vhost/rte_eth_vhost.c
drivers/net/virtio/virtio_ethdev.c
drivers/net/virtio/virtio_pci.h
drivers/net/virtio/virtio_rxtx.c
drivers/net/virtio/virtio_rxtx_simple.c
drivers/net/virtio/virtio_rxtx_simple_altivec.c
drivers/net/virtio/virtio_rxtx_simple_neon.c
drivers/net/virtio/virtio_rxtx_simple_sse.c
drivers/net/virtio/virtio_user_ethdev.c
drivers/net/vmxnet3/vmxnet3_ethdev.c
drivers/net/vmxnet3/vmxnet3_rxtx.c
lib/librte_ethdev/ethdev_driver.h [new file with mode: 0644]
lib/librte_ethdev/ethdev_pci.h [new file with mode: 0644]
lib/librte_ethdev/ethdev_private.c
lib/librte_ethdev/ethdev_vdev.h [new file with mode: 0644]
lib/librte_ethdev/meson.build
lib/librte_ethdev/rte_class_eth.c
lib/librte_ethdev/rte_ethdev.c
lib/librte_ethdev/rte_ethdev.h
lib/librte_ethdev/rte_ethdev_driver.h [deleted file]
lib/librte_ethdev/rte_ethdev_pci.h [deleted file]
lib/librte_ethdev/rte_ethdev_vdev.h [deleted file]
lib/librte_ethdev/rte_flow_driver.h
lib/librte_ethdev/rte_mtr_driver.h
lib/librte_ethdev/rte_tm_driver.h

index e8b76bd8500c09c6b33ce842099e778ebd67dea0..8a5c8310a8b4a3302f6e0db7b4f1555db70a7144 100644 (file)
@@ -17,7 +17,7 @@
 #include <rte_common.h>
 #include <rte_debug.h>
 #include <rte_ethdev.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_log.h>
 #include <rte_lcore.h>
 #include <rte_memory.h>
index 21fcc1bc4cbab15ffee9d53ccfd05c52bad9bed5..b49fcfb3f18f8b88e02ba95914d17c73c75acdf1 100644 (file)
@@ -6,7 +6,7 @@
 #include <stdint.h>
 #include <limits.h>
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_pdump.h>
 #include "rte_eal.h"
 #include "rte_lcore.h"
index 2c24c9b3f524f0c80cc825caa149755d3354a68d..7036f401ed95c847234074f3654ed130a8bb48d2 100644 (file)
@@ -4,7 +4,7 @@
 
 #include <rte_mbuf.h>
 #include <rte_ethdev.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_pci.h>
 #include <rte_bus_pci.h>
 #include <rte_malloc.h>
index 184d1f0d35fe45bb5808ccf949c509b148a53cb0..c36b9e45b51c74e200698c17f6944ef5c845cba4 100644 (file)
@@ -151,11 +151,18 @@ Removed Items
    Also, make sure to start the actual text at the margin.
    =======================================================
 
+* The internal header files ``rte_ethdev_driver.h``, ``rte_ethdev_vdev.h`` and
+  ``rte_ethdev_pci.h`` are no longer installed as part of the DPDK
+  ``ninja install`` action and are renamed to ``ethdev_driver.h``,
+  ``ethdev_vdev.h`` and ``ethdev_pci.h`` respectively in the source tree, to
+  reflect the fact that they are non-public headers.
+
 * Removed support for NetXtreme devices belonging to ``BCM573xx and
   BCM5740x`` families. Specifically the support for the following Broadcom
   PCI device IDs ``0x16c8, 0x16c9, 0x16ca, 0x16ce, 0x16cf, 0x16df, 0x16d0,``
   ``0x16d1, 0x16d2, 0x16d4, 0x16d5, 0x16e7, 0x16e8, 0x16e9`` has been removed.
 
+
 API Changes
 -----------
 
index f39d6e20923952ba1ea18d095dbcefcb54c01101..662cbfaae52c54e7a168a18a766efa8a7a2258df 100644 (file)
@@ -27,7 +27,7 @@
 #include <rte_eal.h>
 #include <rte_alarm.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_malloc.h>
 #include <rte_ring.h>
 #include <rte_bus.h>
index f2b0bf91e743f0c76c5df4c7fba7a3c981b22175..516c6c151581c06ecb17dcd887acc2334324d890 100644 (file)
@@ -12,7 +12,7 @@
 #include <stdbool.h>
 #include <net/if.h>
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_ether.h>
 
 #include <compat.h>
index 58435589b21dc0d66641fe5b473a0e3256fbf6f2..26910ac01f44e0db753860d9ee3ad1f3613bd99d 100644 (file)
@@ -13,7 +13,7 @@
 #include <rte_malloc.h>
 #include <rte_devargs.h>
 #include <rte_memcpy.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_mbuf_dyn.h>
 
 #include <rte_fslmc.h>
index b52f36c33e4f2d2fae0e4b64b0fb592d63873db8..c8373e627ae3e33a763483ac109501244f49d479 100644 (file)
@@ -22,7 +22,7 @@
 
 #include <eal_filesystem.h>
 #include <rte_mbuf.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_malloc.h>
 #include <rte_memcpy.h>
 #include <rte_string_fns.h>
index d9619848d8c494d4cf3a799f297932a34f802819..122aa1740daa986c158bc0b83c20be2e154dfbd7 100644 (file)
@@ -19,7 +19,7 @@
 #include <rte_cycles.h>
 #include <rte_kvargs.h>
 #include <rte_dev.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_mbuf_pool_ops.h>
 
 #include <fslmc_logs.h>
index d393ce618646cdd1b8b5c1a59f6a6af630617fd8..8ed969c7c023687aee2616cba15dc22b0d38e722 100644 (file)
@@ -18,7 +18,7 @@
 #include <rte_cycles.h>
 #include <rte_kvargs.h>
 #include <rte_dev.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 
 #include <fslmc_logs.h>
 #include <rte_fslmc.h>
index 1a9dd18b9974f2b6d017007227e723c7e736f579..c6f8312a1de89ad61b20663a424ef380a3d33ecc 100644 (file)
@@ -24,7 +24,7 @@
 #include<sys/eventfd.h>
 
 #include <rte_mbuf.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_malloc.h>
 #include <rte_memcpy.h>
 #include <rte_string_fns.h>
index eeb2494bd066adb65bfa0ee0f4d898de2061b3a7..e4fa3a2e464713da473d1c56e58ec8b646a721db 100644 (file)
@@ -24,7 +24,7 @@
 #include <rte_memory.h>
 #include <rte_pci.h>
 #include <rte_bus_vdev.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_cryptodev.h>
 #include <rte_event_eth_rx_adapter.h>
 #include <rte_event_eth_tx_adapter.h>
index 200b71640bdb6fb922f50e40c24f52bf279d05d8..acc1fde7717bb0393eca6ae7ab09f3b0334d5210 100644 (file)
@@ -18,7 +18,7 @@
 #include <rte_cycles.h>
 #include <rte_kvargs.h>
 #include <rte_dev.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 
 #include <rte_fslmc.h>
 #include <mc/fsl_dpcon.h>
index e60a7dc69e5ae89669fa8d39663e2e870bfd8680..17325bbf6aaee59c42099d080e361938bad68ecd 100644 (file)
@@ -8,7 +8,7 @@
 #include <rte_debug.h>
 #include <rte_dev.h>
 #include <rte_eal.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_event_eth_rx_adapter.h>
 #include <rte_kvargs.h>
 #include <rte_lcore.h>
index 97ce08d78f50483495a50e1f97762bbbc4a64238..ca49a8d42acb5ce623b6eaef5cb2907810c234ba 100644 (file)
@@ -14,7 +14,7 @@
 #include <errno.h>
 
 #include <rte_mbuf.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_malloc.h>
 #include <rte_memcpy.h>
 #include <rte_string_fns.h>
index 671ee87ae2f1fb732e21dd24112231693e2bdfe3..bfe5a0a451c6f2280a68c29438f1761b6c1d72ff 100644 (file)
@@ -8,8 +8,8 @@
 
 #include <rte_string_fns.h>
 #include <rte_mbuf.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_vdev.h>
+#include <ethdev_driver.h>
+#include <ethdev_vdev.h>
 #include <rte_malloc.h>
 #include <rte_kvargs.h>
 #include <rte_bus_vdev.h>
index 703b7417edc4e7bf28239227eefdcf1d787058bf..b8d5ad0d91127f7b657938ce1150bc45408b8801 100644 (file)
@@ -19,8 +19,8 @@
 #include <bpf/xsk.h>
 
 #include <rte_ethdev.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_vdev.h>
+#include <ethdev_driver.h>
+#include <ethdev_vdev.h>
 #include <rte_kvargs.h>
 #include <rte_bus_vdev.h>
 #include <rte_string_fns.h>
index a658993512638fd675793c13277dd5707bbb4d5d..ef650a4658a06d6a30b64c695458f1995303dfef 100644 (file)
@@ -7,7 +7,7 @@
 #include <dlfcn.h>
 
 #include <rte_bus_pci.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_pci.h>
 #include <rte_kvargs.h>
 
 #include "rte_pmd_ark.h"
index 001fa9bdfa2ae6f16268d3f95dfd76292fe7a827..33c1f2c953af9f295cd6c811fb5b184d8bfc67d8 100644 (file)
@@ -9,7 +9,7 @@
 
 #include <rte_mbuf.h>
 #include <rte_mempool.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 
 extern uint64_t ark_timestamp_rx_dynflag;
 extern int ark_timestamp_dynfield_offset;
index e448ce222555216fc3cb8b15d86c4ee5c23cfe4a..12c71a7158a92b258607408551bdc84ee4d40556 100644 (file)
@@ -7,7 +7,7 @@
 
 #include <stdint.h>
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 
 
 uint16_t eth_ark_xmit_pkts_noop(void *vtxq,
index 5a987e4d67d8a17b01d2334a37f53d92a5a2f6da..821fb55bbaf5ad5316f535031b3ccb7aee4acba9 100644 (file)
@@ -5,7 +5,7 @@
 #ifndef _ARK_EXT_H_
 #define _ARK_EXT_H_
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 
 /*
  * This is the template file for users who which to define a dynamic
index 403df5900be5cbb66748feba9436b13d523819a8..91726ecc2014e4fb02f18d2ead98ef7e26cb0d3d 100644 (file)
@@ -9,7 +9,7 @@
 #include <assert.h>
 
 #include <rte_mbuf.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_malloc.h>
 #include <rte_memcpy.h>
 #include <rte_string_fns.h>
index b8fb69497dd6017a25cc665f99dac52e6ad071ec..0f2d31e5befbf24046ab5323598ef4b22cd24f43 100644 (file)
@@ -8,7 +8,7 @@
 #include <unistd.h>
 
 #include <rte_string_fns.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_malloc.h>
 
 #include "ark_pktchkr.h"
index 4a02662a46e795e8ab60fa423bcbf8a91c4d7f7d..ac4322a3591d810c2876fff7de721037edd6e597 100644 (file)
@@ -10,7 +10,7 @@
 #include <rte_string_fns.h>
 #include <rte_eal.h>
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_malloc.h>
 
 #include "ark_pktgen.h"
index b0716773addb6d3c53edce0d56c4da50dce40c81..473f6209f6aa4d20f177e586da63c534356becbd 100644 (file)
@@ -3,7 +3,7 @@
  */
 
 #include <rte_string_fns.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_pci.h>
 #include <rte_alarm.h>
 
 #include "atl_ethdev.h"
index 449ffd454d5a87a3001251830c5a4a17cf7cee72..7d367c9306ecdb042d1c1dc20d4d737388ec7935 100644 (file)
@@ -3,7 +3,7 @@
  */
 
 #include <rte_malloc.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_net.h>
 
 #include "atl_ethdev.h"
index 2962f5c6cb0ce7337cb3c7fe4208feff2fe386dc..00fc2872e538560a85c9b91966f6b166491354fb 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright(c) 2018 Aquantia Corporation
  */
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 
 #include "rte_pmd_atlantic.h"
 #include "atl_ethdev.h"
index f531e03c02c5d1023e56d0122582d2737fecdff8..566a3606a2bb43526c029973b6a7f34265dc6f8e 100644 (file)
@@ -8,8 +8,8 @@
 #include <errno.h>
 #include <unistd.h>
 
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_driver.h>
+#include <ethdev_pci.h>
 #include <rte_memcpy.h>
 #include <rte_string_fns.h>
 #include <rte_malloc.h>
index 91404ca01cc6ebee74601e31034b77e3e9660028..b83fdcca8548bd2d0a2baade4a33d7b2c5ba6aaf 100644 (file)
@@ -35,7 +35,7 @@
 #include <rte_ethdev.h>
 #include <rte_dev.h>
 #include <rte_errno.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_pci.h>
 #include <rte_common.h>
 #include <rte_cycles.h>
 #include <rte_io.h>
index d35c75a2e211a082f96daa6cbf28fbcb19d512b6..50db70dfcd2c3578c6fe83eb851517b02742dbfd 100644 (file)
@@ -10,7 +10,7 @@
 
 #include <rte_string_fns.h>
 #include <rte_dev.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_pci.h>
 #include <rte_alarm.h>
 
 /*
index f712bb3e84c6689792d65429b74e9a3f8406bcbe..fa1c3ba9556234f602bb5a5c8564f2cfc7074f9e 100644 (file)
@@ -31,7 +31,7 @@
 #include <rte_debug.h>
 #include <rte_pci.h>
 #include <rte_malloc.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_spinlock.h>
 #include <rte_eal.h>
 #include <rte_mempool.h>
index d2d76b623a911a8fa9f4143f9d0be7a3a4c3e2b2..0db6e58f3def07a7e00fa8cbf3267c38cc963add 100644 (file)
@@ -12,7 +12,7 @@
 
 #include <rte_pci.h>
 #include <rte_bus_pci.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_memory.h>
 #include <rte_lcore.h>
 #include <rte_spinlock.h>
index 74b0f3d1dc758e203849fd82e94659ea9203dcb6..e8a7a8ecd4b7d3c15e06a6c8fbe8228c916964e6 100644 (file)
@@ -7,8 +7,8 @@
 #include <stdbool.h>
 
 #include <rte_dev.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_driver.h>
+#include <ethdev_pci.h>
 #include <rte_malloc.h>
 #include <rte_cycles.h>
 #include <rte_alarm.h>
index 3cf2a1b822d9ae5c0d3ddc18c4251272468e288c..50c3d92b9a2fa88b38d33cd1d66303768976dfb4 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef _BNXT_STATS_H_
 #define _BNXT_STATS_H_
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 
 void bnxt_free_stats(struct bnxt *bp);
 int bnxt_stats_get_op(struct rte_eth_dev *eth_dev,
index d67db46c65eb0e11bd7dd85bb471b0ba6dbcb16c..965381c0c4d7250579b79f1d1c135810fef2e251 100644 (file)
@@ -8,7 +8,7 @@
 #include <unistd.h>
 
 #include <rte_dev.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_malloc.h>
 #include <rte_cycles.h>
 #include <rte_byteorder.h>
index 8f198bd50e768522b882d753c0dd2f3b68214df8..75fb8dc02e5a6ae12d7484e72a9bb13e7ace9279 100644 (file)
@@ -8,7 +8,7 @@
 #include <stdint.h>
 #include <sys/queue.h>
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_flow.h>
 #include <rte_spinlock.h>
 #include <rte_bitmap.h>
index 55c8e3167c0be9876638ca9f2c5a8ca4fd715f2e..17e6ff8b908e154018398c29362a40603df5d5ce 100644 (file)
@@ -6,7 +6,7 @@
 
 #include <rte_mbuf.h>
 #include <rte_malloc.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_tcp.h>
 #include <rte_bus_vdev.h>
 #include <rte_kvargs.h>
index 66ab8dd6930a4933071f120711ce375819faa1dc..5241c60089d603c8e5974e00fbe80cb128a22a0e 100644 (file)
@@ -7,8 +7,8 @@
 
 #include <rte_mbuf.h>
 #include <rte_malloc.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_vdev.h>
+#include <ethdev_driver.h>
+#include <ethdev_vdev.h>
 #include <rte_tcp.h>
 #include <rte_udp.h>
 #include <rte_ip.h>
index ef20dc6675afcd43510a90e9645220d2494d44d6..0e3033b550febdbdb57bf1e0b929611bc0485bb8 100644 (file)
@@ -16,7 +16,7 @@
 #include <rte_eal.h>
 #include <rte_alarm.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_malloc.h>
 #include <rte_random.h>
 #include <rte_dev.h>
index cd011bc1b87c57106f608537713400cd99d6b8c3..561d759dbc0d65ce4aa5df60438e830bacc860b2 100644 (file)
@@ -3,7 +3,7 @@
  * All rights reserved.
  */
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_ether.h>
 
 #include "common.h"
index cfa385bab74b52efc1580f71f7d5e9ff243b7b22..bfa57c979df9bf96e0d19f82cda12508edbbe20d 100644 (file)
@@ -28,8 +28,8 @@
 #include <rte_eal.h>
 #include <rte_alarm.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_driver.h>
+#include <ethdev_pci.h>
 #include <rte_malloc.h>
 #include <rte_random.h>
 #include <rte_dev.h>
index 3b56eccfbe8e3cb9b35746fcfe3adb18d48afccd..83ad758e8863e99d225c740955dfbbf978addbd7 100644 (file)
@@ -27,8 +27,8 @@
 #include <rte_eal.h>
 #include <rte_alarm.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_driver.h>
+#include <ethdev_pci.h>
 #include <rte_random.h>
 #include <rte_dev.h>
 #include <rte_kvargs.h>
index c2918f5356e88c73b6ab10b7afa1121c41c63d41..bf1815c25f7e504461c42c39fdab7abc4315a85c 100644 (file)
@@ -3,8 +3,8 @@
  * All rights reserved.
  */
 
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_driver.h>
+#include <ethdev_pci.h>
 
 #include "cxgbe.h"
 #include "cxgbe_pfvf.h"
index 9ee060504f2edd67cdf5646dd490a10ada365263..f639612ae45ad3c45600fd2ebca822ed2073f7ac 100644 (file)
@@ -3,8 +3,8 @@
  * All rights reserved.
  */
 
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_driver.h>
+#include <ethdev_pci.h>
 #include <rte_malloc.h>
 
 #include "base/common.h"
index 8c7dbe3a1d4954903941eca4aa0aa1be027e285a..56b8ec1f33b484eb98503a97bad5e8e7b7b7dd05 100644 (file)
@@ -28,7 +28,7 @@
 #include <rte_eal.h>
 #include <rte_alarm.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_malloc.h>
 #include <rte_random.h>
 #include <rte_dev.h>
index 0c87c136d7b97452356efc4c8cc68aa931cea6c8..d643514de6efb5a2777dccd2a5b4ebc34f683731 100644 (file)
@@ -29,7 +29,7 @@
 #include <rte_eal.h>
 #include <rte_alarm.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_malloc.h>
 #include <rte_ring.h>
 
index a858b1372c3ba242c1efb247dc08cc046f03c263..b5728e09c29f72686118b9eb5ae2fc9c74639a68 100644 (file)
@@ -9,7 +9,7 @@
 
 /* System headers */
 #include <stdbool.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_event_eth_rx_adapter.h>
 
 #include <fsl_usd.h>
index e2459d9b9919726c46b10bed2b571aaa7ee4b2b0..e38fba23c0b5c2cf459457f9f0e77d87426f8255 100644 (file)
@@ -26,7 +26,7 @@
 #include <rte_eal.h>
 #include <rte_alarm.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_malloc.h>
 #include <rte_ring.h>
 #include <rte_ip.h>
index 25b1d2bb6d9f26b09c5363b12f2868fb9aae8bd5..87c893db5161aa9c4fa71862063f3eed0c13d7e6 100644 (file)
@@ -9,7 +9,7 @@
 #include <net/if.h>
 
 #include <rte_mbuf.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_malloc.h>
 #include <rte_memcpy.h>
 #include <rte_string_fns.h>
index 6f38da3cce1816b037e8d00ee8d758c56d560ef4..38774e255bcd3baa61e2a321e3bf1e30e47b0fd1 100644 (file)
@@ -9,7 +9,7 @@
 #include <net/if.h>
 
 #include <rte_mbuf.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_malloc.h>
 #include <rte_memcpy.h>
 #include <rte_string_fns.h>
index 9cca6d16c30db7d49b3d78287a47752874cd2f14..003b379fa74cab60f606733da5b82c035e9d3ad0 100644 (file)
@@ -9,7 +9,7 @@
 #include <net/if.h>
 
 #include <rte_mbuf.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_malloc.h>
 #include <rte_memcpy.h>
 #include <rte_string_fns.h>
index 2036c6e917547b9f95982eb5a3b47380586c523a..9b8c4a7de5ab56fc25634c2cc64e390fd9f80825 100644 (file)
@@ -15,8 +15,8 @@
 #include <rte_pci.h>
 #include <rte_bus_pci.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_driver.h>
+#include <ethdev_pci.h>
 #include <rte_memory.h>
 #include <rte_eal.h>
 #include <rte_malloc.h>
index 19e3bffd468f314d9f1d8f40da0f60868118811d..db5d1222ce3902cbe6d873eba22127fa4b97296d 100644 (file)
@@ -32,7 +32,7 @@
 #include <rte_malloc.h>
 #include <rte_mbuf.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_prefetch.h>
 #include <rte_ip.h>
 #include <rte_udp.h>
index dfe87508c2c5b1c3e2e44026c40b6b093c9b9c3c..ec355cbf35abf3d0fb72b17a0988454c1db224ff 100644 (file)
@@ -17,8 +17,8 @@
 #include <rte_pci.h>
 #include <rte_bus_pci.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_driver.h>
+#include <ethdev_pci.h>
 #include <rte_memory.h>
 #include <rte_eal.h>
 #include <rte_malloc.h>
index ccb184df954f19fcdd6cc8cc8ea36230125a747c..33f6b1d6b32d006269b626ba8a2e6ca34722b256 100644 (file)
@@ -15,8 +15,8 @@
 #include <rte_debug.h>
 #include <rte_pci.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_driver.h>
+#include <ethdev_pci.h>
 #include <rte_memory.h>
 #include <rte_eal.h>
 #include <rte_atomic.h>
index 9d74c08abe4e8a9843f54a74853213006781908a..2ce74dd5a9a56c51394a016e05d0e38e3d8f2df4 100644 (file)
@@ -16,7 +16,7 @@
 #include <rte_debug.h>
 #include <rte_eal.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_memcpy.h>
 #include <rte_malloc.h>
 #include <rte_random.h>
index dd520cd82cc8508aaf52133572649a589be5b4f2..1500d2ffffe0ca33384ae46a36c74d5c4e80a848 100644 (file)
@@ -31,7 +31,7 @@
 #include <rte_malloc.h>
 #include <rte_mbuf.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_prefetch.h>
 #include <rte_udp.h>
 #include <rte_tcp.h>
index 20ff3653c67061eabd2ec941de5d6e67999948ce..c796af4aa7ea90a413da15b01bc3174fa742c743 100644 (file)
@@ -5,8 +5,8 @@
 
 #include <rte_string_fns.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_driver.h>
+#include <ethdev_pci.h>
 #include <rte_tcp.h>
 #include <rte_atomic.h>
 #include <rte_dev.h>
index 4d2c9c047481105508c61c2214e6ab9854b89d89..0b45168c6099ccbb2f293165a7e4d3d765c7304e 100644 (file)
@@ -3,7 +3,7 @@
  */
 
 #include <stdbool.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_pci.h>
 #include <rte_random.h>
 #include <dpaax_iova_table.h>
 
index 1c8d60e2648ae1c922a730a15465d26f5a0e1105..b3f441c8f71cd8e6eee4a33e12913c98fd8a083c 100644 (file)
@@ -9,8 +9,8 @@
 #include <rte_dev.h>
 #include <rte_pci.h>
 #include <rte_bus_pci.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_driver.h>
+#include <ethdev_pci.h>
 #include <rte_kvargs.h>
 #include <rte_string_fns.h>
 
index 1eec96abca96f2a466d7e969931671e9f2964b27..97ee7509cee68e25b908b8963eb119b1baa75a43 100644 (file)
@@ -5,7 +5,7 @@
 #include <errno.h>
 #include <stdint.h>
 #include <rte_log.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_flow_driver.h>
 #include <rte_ether.h>
 #include <rte_ip.h>
index ad1e89a581cd6e337fc6e2bcc6a3b23b4b9d5a1c..21d9b1cef794fa5384bbbbd28aa0ef310d999af6 100644 (file)
@@ -5,7 +5,7 @@
 #include <errno.h>
 #include <stdint.h>
 #include <rte_log.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_flow_driver.h>
 #include <rte_ether.h>
 #include <rte_hash.h>
index 805eb5e46a32970ca6109c2ce7d989860bc8f274..2a06d468720775522a3d6a96323dbc18db4e38b7 100644 (file)
@@ -15,7 +15,7 @@
 #include <rte_malloc.h>
 #include <rte_mbuf.h>
 #include <rte_string_fns.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 
 #include "enic_compat.h"
 #include "enic.h"
index 1405db15ab4669e53121f11d1aa47d14bb7488bb..689bf748ae92bba3d585c3b09f91b114cd84bbc3 100644 (file)
@@ -4,7 +4,7 @@
  */
 
 #include "enic_compat.h"
-#include "rte_ethdev_driver.h"
+#include "ethdev_driver.h"
 #include "wq_enet_desc.h"
 #include "rq_enet_desc.h"
 #include "cq_enet_desc.h"
index 4b6b97eb10a972c228cb24d4f2618e60d2fbcdb2..a2a02227e3424714588d15d031d6429dafbafd77 100644 (file)
@@ -4,7 +4,7 @@
  */
 
 #include <rte_mbuf.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_net.h>
 #include <rte_prefetch.h>
 
index f0bea33423929e2276488586f597e4d5562595bc..1848f52717448b48c65049e2c1eea28c9485593c 100644 (file)
@@ -4,7 +4,7 @@
  */
 
 #include <rte_mbuf.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_vect.h>
 
 #include "enic_compat.h"
index c2c03c02816692db5235b87a8a30cb540390e447..f7b79c1c4ecfa75ed051f67f830ef802e4f2e90e 100644 (file)
@@ -8,8 +8,8 @@
 #include <rte_bus_pci.h>
 #include <rte_common.h>
 #include <rte_dev.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_driver.h>
+#include <ethdev_pci.h>
 #include <rte_flow_driver.h>
 #include <rte_kvargs.h>
 #include <rte_pci.h>
index ba81c8217404a69f078d5ba46553d197e51d1395..e3bda0df2bf9e62944e64cfc77608af261a31a7b 100644 (file)
@@ -7,8 +7,8 @@
 
 #include <rte_alarm.h>
 #include <rte_malloc.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_vdev.h>
+#include <ethdev_driver.h>
+#include <ethdev_vdev.h>
 #include <rte_devargs.h>
 #include <rte_kvargs.h>
 #include <rte_bus_vdev.h>
index 492047f58737e8b67e37899ccdfd97e891fa4249..2b6ca9080d8b2d671cdd7d19547fa238c1fa18dd 100644 (file)
@@ -9,7 +9,7 @@
 
 #include <rte_debug.h>
 #include <rte_atomic.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_malloc.h>
 #include <rte_flow.h>
 #include <rte_cycles.h>
index 0f9a572af8bd6f4f8729fb5307a73a3351a765eb..cd39d103c63a8e1fbce8610ae5430aba4068a2ee 100644 (file)
@@ -12,7 +12,7 @@
 
 #include <rte_atomic.h>
 #include <rte_dev.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_devargs.h>
 #include <rte_flow.h>
 #include <rte_interrupts.h>
index fee08fa23c2285329387f79245e3ba4322e6af57..fe672932998a119fea23a3f1038b15c859ec6f58 100644 (file)
@@ -6,7 +6,7 @@
 #include <rte_atomic.h>
 #include <rte_debug.h>
 #include <rte_mbuf.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 
 #include "failsafe_private.h"
 
index c187088a334d72dff2844d291f1d01e960533475..fd471c415e0f08dfb399b11ca9a4f00192ee32b8 100644 (file)
@@ -2,8 +2,8 @@
  * Copyright(c) 2013-2016 Intel Corporation
  */
 
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_driver.h>
+#include <ethdev_pci.h>
 #include <rte_malloc.h>
 #include <rte_memzone.h>
 #include <rte_string_fns.h>
index 4accaa2cd652e8030162bd3aa1af75c9bfc7d576..8585c5b9e43005971fc5e1f675181c63b42873bb 100644 (file)
@@ -4,7 +4,7 @@
 
 #include <inttypes.h>
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_common.h>
 #include <rte_net.h>
 #include "fm10k.h"
index 6fcc939ad9a9d02ddd3bdb71c93f2711fc2a2dc6..39e3cdac1f563f7a0de3b7729ac79470f3f2f592 100644 (file)
@@ -4,7 +4,7 @@
 
 #include <inttypes.h>
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_common.h>
 #include "fm10k.h"
 #include "base/fm10k_type.h"
index 41c99bdbf8128fe3d9ba490f65e8cf10b88ad8fc..cb9cf6efa287bf1e7faa7b535c56e2c0ab92388e 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright(c) 2017 Huawei Technologies Co., Ltd
  */
 
-#include<rte_ethdev_driver.h>
+#include<ethdev_driver.h>
 #include <rte_bus_pci.h>
 #include <rte_hash.h>
 #include <rte_jhash.h>
index 5a2c171099edf8820e9c7c45ffbf1fba9b217e84..1d6b710c9f4191567efc79eba0fbc451c2bec0df 100644 (file)
@@ -4,7 +4,7 @@
 
 #include <rte_pci.h>
 #include <rte_bus_pci.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_pci.h>
 #include <rte_mbuf.h>
 #include <rte_malloc.h>
 #include <rte_memcpy.h>
index c7338d83be31d18a78099d2804ec0d8a5ef8856b..70b4d32ff2ff99a1bbf9a3a56f00d4d5a6065af7 100644 (file)
@@ -7,7 +7,7 @@
 
 #include <rte_ethdev.h>
 #include <rte_ethdev_core.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 
 #include "base/hinic_compat.h"
 #include "base/hinic_pmd_cfg.h"
index f58f4f7adcea4d5ef6960cebaebe6b8281172290..45dbead512e41a11f2506f034cc2af4a39437404 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright(c) 2018-2019 Hisilicon Limited.
  */
 
-#include <rte_ethdev_pci.h>
+#include <ethdev_pci.h>
 #include <rte_io.h>
 
 #include "hns3_ethdev.h"
index 449d967784fb50739f549e28eca04bede0cb8800..a796469435e1eea32089f0080b87f534ef639a4c 100644 (file)
@@ -4,7 +4,7 @@
 
 #include <rte_alarm.h>
 #include <rte_bus_pci.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_pci.h>
 #include <rte_pci.h>
 
 #include "hns3_ethdev.h"
index 0d17170fa7a736bb5f779e6e4a85982d922d6826..6374a767940f8327108cd4c746500148ba5ace1e 100644 (file)
@@ -6,7 +6,7 @@
 #define _HNS3_ETHDEV_H_
 
 #include <sys/time.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_byteorder.h>
 #include <rte_io.h>
 #include <rte_spinlock.h>
index bb4ec6bb399fafa653fc2981669aa95277201aba..394ffe38cdb814c057aa7f24cf72a8e1187c04fe 100644 (file)
@@ -4,7 +4,7 @@
 
 #include <linux/pci_regs.h>
 #include <rte_alarm.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_pci.h>
 #include <rte_io.h>
 #include <rte_pci.h>
 #include <rte_vfio.h>
index 857cc94c987a19b0ece1ac59ec39016e65038e96..896540df78ea4a4db0c284bbbcccd559ad167a60 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright(c) 2018-2019 Hisilicon Limited.
  */
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_hash.h>
 #include <rte_hash_crc.h>
 #include <rte_io.h>
index d2a5db8aabe32d5bf4bb36b9bcfc0d7b17d38663..1d500b984ca400d4f53da608489b00af487deb5c 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright(c) 2018-2019 Hisilicon Limited.
  */
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_io.h>
 
 #include "hns3_ethdev.h"
index ed2567a8ffe08daf9ea03ec56b36cd1ad124872d..3342a781ada74723e4ffb16bebe3c0b57e37c270 100644 (file)
@@ -3,7 +3,7 @@
  */
 
 #include <rte_eal.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_string_fns.h>
 #include <rte_io.h>
 
index f2cb465eed347b2aebf4a11dca17c1795ee175a6..01550458b7665833c45e54fbfe9f75f95d7f0824 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright(c) 2018-2019 Hisilicon Limited.
  */
 
-#include <rte_ethdev_pci.h>
+#include <ethdev_pci.h>
 #include <rte_io.h>
 
 #include "hns3_ethdev.h"
index 0badfc9260472b64142ed6594248dbae5ef7b0d9..676962553fcd7569a567bf76e39eb91b99b7fa48 100644 (file)
@@ -6,7 +6,7 @@
 #include <rte_common.h>
 #include <rte_cycles.h>
 #include <rte_vxlan.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_io.h>
 #include <rte_net.h>
 #include <rte_malloc.h>
index a26c83d14630b7ceeb505fa62d533b065de06397..2bc43724494d3a811f1381b969330506411011a9 100644 (file)
@@ -3,7 +3,7 @@
  */
 
 #include <rte_io.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 
 #include "hns3_ethdev.h"
 #include "hns3_rxtx.h"
index 8c2c8f610895cc59721ddb4f66c03bfafcc1ba00..b02bae7a0df0218ac1b0aa9c8bcfd97df193e7b7 100644 (file)
@@ -4,7 +4,7 @@
 
 #include <arm_sve.h>
 #include <rte_io.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 
 #include "hns3_ethdev.h"
 #include "hns3_rxtx.h"
index 946994b80a42e26d08a7c1b5f829f925a5d77446..d7cd049891696531a8a84ef36049855b287f8770 100644 (file)
@@ -17,8 +17,8 @@
 #include <rte_pci.h>
 #include <rte_bus_pci.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_driver.h>
+#include <ethdev_pci.h>
 #include <rte_memzone.h>
 #include <rte_malloc.h>
 #include <rte_memcpy.h>
index 5d7db7fe13ceee918be33a6babc84089f62a3f4a..2909b4d8949f05ef09ac81250e5adbd9363f0c01 100644 (file)
@@ -25,8 +25,8 @@
 #include <rte_eal.h>
 #include <rte_alarm.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_driver.h>
+#include <ethdev_pci.h>
 #include <rte_malloc.h>
 #include <rte_dev.h>
 
index f5defcf585191baf593ede63ce6ff72eda33e9ef..c572d003cb04496faf9168f66c0d671ec8abc44d 100644 (file)
@@ -11,7 +11,7 @@
 #include <stdarg.h>
 
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_log.h>
 #include <rte_memzone.h>
 #include <rte_malloc.h>
index 7fe760dba21e29ff50b2016b6c6059bd99cec24c..4d442823122044ea46922e124b073f6cd51e4d4c 100644 (file)
@@ -12,7 +12,7 @@
 
 #include <rte_debug.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_log.h>
 #include <rte_malloc.h>
 #include <rte_tailq.h>
index 65d649b627d5311f09a2eb877f6a25b2ff78770e..f3d6d899f680a6b9288c64d4fb0c4b3eb166ac64 100644 (file)
@@ -14,7 +14,7 @@
 #include <rte_string_fns.h>
 #include <rte_pci.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_malloc.h>
 #include <rte_memcpy.h>
 
index 668edd66268312c2463009b26380247844596c9f..804fce86063d8769853b7d29f9f60f87222441e4 100644 (file)
@@ -17,7 +17,7 @@
 #include <rte_mbuf.h>
 #include <rte_malloc.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_tcp.h>
 #include <rte_sctp.h>
 #include <rte_udp.h>
index d3238bfb6a52b4d5578b0000809c52811cd03195..e6e468752cb8a098fa01058f359cfa9729a0e8d7 100644 (file)
@@ -4,7 +4,7 @@
  */
 
 #include <stdint.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_malloc.h>
 
 #include "base/i40e_prototype.h"
index e5a1deaeb23929afce857ee318a40e23e2734bc0..ea554b4fda4e9dd5d00101ff3341b876a18a5935 100644 (file)
@@ -3,7 +3,7 @@
  */
 
 #include <stdint.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_malloc.h>
 
 #include "base/i40e_prototype.h"
index e92f97b7ed1863e7b31e4fe9b0ba25bc2bc8b134..80b153e8f6034bdf4fb4c898e429a51614ad8d43 100644 (file)
@@ -3,7 +3,7 @@
  */
 
 #include <stdint.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_malloc.h>
 
 #include "base/i40e_prototype.h"
index 31f73f605458f281cfc96c751f8ebff5335b0596..33cebbe88ba215a279dfc6f8f96bbff26d54abb5 100644 (file)
@@ -5,7 +5,7 @@
 #ifndef _I40E_RXTX_VEC_COMMON_H_
 #define _I40E_RXTX_VEC_COMMON_H_
 #include <stdint.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_malloc.h>
 
 #include "i40e_ethdev.h"
index f094de69ae8dc9e2d31639b91ee632c52ff7508d..d81269624eae8ca387ddfa3cfa1e7911ea5db578 100644 (file)
@@ -4,7 +4,7 @@
  */
 
 #include <stdint.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_malloc.h>
 #include <rte_vect.h>
 
index 0bcb48e24e7475bd1f844a10abf7441f90aba266..45fce0a022aece499f23ecbc1ff437f6aac0d7ae 100644 (file)
@@ -3,7 +3,7 @@
  */
 
 #include <stdint.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_malloc.h>
 
 #include "base/i40e_prototype.h"
index 9e40406a3de7d09c8af3b2ad9a5a1621a9dba86f..7ed47c1a2ce5c59f8d95ec68f303b2163bbd0426 100644 (file)
@@ -7,7 +7,7 @@
 #include <rte_pci.h>
 #include <rte_malloc.h>
 
-#include "rte_ethdev_driver.h"
+#include "ethdev_driver.h"
 #include "base/i40e_type.h"
 #include "base/virtchnl.h"
 #include "i40e_ethdev.h"
index cf6ea0b15c676c5183d879ef292a07ed9ade83f0..e9c8c1157a1755e289323edaea7cf6b975eed878 100644 (file)
@@ -19,8 +19,8 @@
 #include <rte_atomic.h>
 #include <rte_eal.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_driver.h>
+#include <ethdev_pci.h>
 #include <rte_malloc.h>
 #include <rte_memzone.h>
 #include <rte_dev.h>
index f48f574a5d6ca429ee0af4550d802e5e960b3200..4e864b4b9ce291d6bf86baca9d1cd9635c52d220 100644 (file)
@@ -11,7 +11,7 @@
 #include <stdarg.h>
 
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_malloc.h>
 #include <rte_tailq.h>
 
index aabbcf34c250558b239b8b38355b36e265440ef0..8635ff83ca2a090eb3b4bd5d351953f841e7cc1a 100644 (file)
@@ -11,7 +11,7 @@
 #include <stdarg.h>
 
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_malloc.h>
 #include <rte_tailq.h>
 
index 958c73c4fb35e4c1bd407645eaef3996346d9008..f437fc31709dd82dd1b320d77e45473f91b4a6ec 100644 (file)
@@ -12,7 +12,7 @@
 
 #include <rte_debug.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_log.h>
 #include <rte_malloc.h>
 #include <rte_eth_ctrl.h>
index 1ddbad0f1f287cb0255f524a3f3a6d8957ad547f..3d471d9acc2ecbdfc4d58f9bb78ad031dc61ac65 100644 (file)
@@ -17,7 +17,7 @@
 #include <rte_mbuf.h>
 #include <rte_malloc.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_tcp.h>
 #include <rte_sctp.h>
 #include <rte_udp.h>
index 7ad1e0f68a229ef853d15a3374cade2a49e8d487..46a18732d39596ce7380bcfa28ce2106a465aa11 100644 (file)
@@ -5,7 +5,7 @@
 #ifndef _IAVF_RXTX_VEC_COMMON_H_
 #define _IAVF_RXTX_VEC_COMMON_H_
 #include <stdint.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_malloc.h>
 
 #include "iavf.h"
index 75c77f9d3228790f5352b6d162da1c2b355dd6e7..8574d0830f906ded26111e74a52e2418e1d98735 100644 (file)
@@ -3,7 +3,7 @@
  */
 
 #include <stdint.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_malloc.h>
 
 #include "iavf.h"
index 3ef29d509d8bfe3e1f2b69bff345a44056834c60..8add88898727da659b9ebec6a381418f2461cd10 100644 (file)
@@ -16,8 +16,8 @@
 #include <rte_atomic.h>
 #include <rte_eal.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_driver.h>
+#include <ethdev_pci.h>
 #include <rte_dev.h>
 
 #include "iavf.h"
index 363ce683184c72615a423db06ac5e7372cf1d3de..113cb687651de3a624c81f4603804021880c1b58 100644 (file)
@@ -11,7 +11,7 @@
 #include <stdarg.h>
 #include <rte_debug.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_log.h>
 #include <rte_malloc.h>
 #include <rte_eth_ctrl.h>
index 4a9af3292cf65cd0d98493c2289bb3aaeafbba1a..dbe42fa3dff170ae386705cacb9b62a694c2a635 100644 (file)
@@ -17,8 +17,8 @@
 #include <rte_atomic.h>
 #include <rte_eal.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_driver.h>
+#include <ethdev_pci.h>
 #include <rte_malloc.h>
 #include <rte_memzone.h>
 #include <rte_dev.h>
index ff029963bf705ba4cb16f075449cd9f478f0cac3..0cb90b5e9ff3d2389146746871d8599a087a4d9e 100644 (file)
@@ -5,7 +5,7 @@
 #ifndef _ICE_DCF_H_
 #define _ICE_DCF_H_
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 
 #include <iavf_prototype.h>
 #include <iavf_adminq_cmd.h>
index ea1f2951ba1a63369034a2eb13d5d0c865183786..86f70cf7ffd8808b60c6c58bf5c509ec5701cc11 100644 (file)
@@ -14,7 +14,7 @@
 #include <rte_atomic.h>
 #include <rte_eal.h>
 #include <rte_ether.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_pci.h>
 #include <rte_kvargs.h>
 #include <rte_malloc.h>
 #include <rte_memzone.h>
index ec29f0fe40a34bb18cc10aa54b031e8c42415ee0..c021d7ab6cb6d51260112d224fa49b13583a3dd0 100644 (file)
@@ -3,7 +3,7 @@
  */
 
 #include <rte_string_fns.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_pci.h>
 
 #include <stdio.h>
 #include <sys/types.h>
index 2b03c596713553946365b825af40804031262a0a..7e9cbd2e9a6c73121fe2f2b508080c4a97407e21 100644 (file)
@@ -7,7 +7,7 @@
 
 #include <rte_kvargs.h>
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 
 #include "base/ice_common.h"
 #include "base/ice_adminq_cmd.h"
index c4496dbbe12d6606f504be7267bc03cd7ecaa0b9..25d15a8adb6ef7102732c95382907bffd7d28863 100644 (file)
@@ -11,7 +11,7 @@
 #include <stdarg.h>
 
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_malloc.h>
 #include <rte_tailq.h>
 
index 2d23c8dd50e5577016545417cd2e3593aa83f8c8..322df649b1504ecdf7b8dfb6abf344b41b85bef6 100644 (file)
@@ -12,7 +12,7 @@
 
 #include <rte_debug.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_log.h>
 #include <rte_malloc.h>
 #include <rte_eth_ctrl.h>
index 69f994579af1e3eb225bb8f894126a699a28085c..4136d045e11a721d52b8a6cc2eb8c5fb3453fc0a 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright(c) 2018 Intel Corporation
  */
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_net.h>
 #include <rte_vect.h>
 
index 7bac77ecd1d7bbc1b322b37092813778d68c2520..5ca0985e218d1ca4d2db83ceeee93c0adad58fb7 100644 (file)
@@ -11,7 +11,7 @@
 #include <stdarg.h>
 #include <rte_debug.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_log.h>
 #include <rte_malloc.h>
 #include <rte_eth_ctrl.h>
index 802212fc5784b2ccb382500ae91cdfee331fb799..dbaa7a83e531975aa7dbee7d1f74715aa637d71a 100644 (file)
@@ -8,8 +8,8 @@
 #include <rte_string_fns.h>
 #include <rte_pci.h>
 #include <rte_bus_pci.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_driver.h>
+#include <ethdev_pci.h>
 #include <rte_malloc.h>
 #include <rte_alarm.h>
 
index 877f51c88bef2509afda7c5b3522728dcd852dc0..df8516bc40f7d122bc9f25dddf5c39cc57e01952 100644 (file)
@@ -8,7 +8,7 @@
 
 #include <rte_ethdev.h>
 #include <rte_ethdev_core.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_eth_ctrl.h>
 
 #include "igc_ethdev.h"
index 4654ec41f0423a8346ed97babe2fbb2b58a56642..c0a5d5e84f7b513fee8781c36e4497e3cabeface 100644 (file)
@@ -4,7 +4,7 @@
 
 #include <rte_config.h>
 #include <rte_malloc.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_net.h>
 
 #include "igc_logs.h"
index 2face7c6354664fe01a9e8610f21189707bcb3f1..ded3ffe48d640534dbd4215cfa6d67bb36b1f644 100644 (file)
@@ -5,9 +5,9 @@
 #include <rte_pci.h>
 #include <rte_bus_pci.h>
 #include <rte_ethdev.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_malloc.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_pci.h>
 
 #include "ionic_logs.h"
 #include "ionic.h"
index f39b54e8eff57e58a96560d033bbace6f78c8a8d..f3d55c0fa67081967b09dab472da7f9794993a30 100644 (file)
@@ -3,7 +3,7 @@
  */
 
 #include <rte_malloc.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 
 #include "ionic.h"
 #include "ionic_logs.h"
index 5d0e9d5d5afe4d86f97e3f5fe097cfcb77195b0a..61ad396469e041976294536f0e82c3accdcbb400 100644 (file)
@@ -31,7 +31,7 @@
 #include <rte_malloc.h>
 #include <rte_mbuf.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_prefetch.h>
 #include <rte_udp.h>
 #include <rte_tcp.h>
index 4446d2af9efe7e104a7c5548f6e65904dbbcaa9a..f8e751cb09228d46358836ac75efcc40dc04307e 100644 (file)
@@ -11,7 +11,7 @@
 
 #include <rte_mbuf.h>
 #include <rte_sched.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 
 #include <rte_io.h>
 #include <rte_rawdev.h>
index a6815a9cca813bedaafcf9b9b155504f9bbae3f3..ba3f8821e235dc96e676a34b7e11237c4272c9e2 100644 (file)
@@ -15,8 +15,8 @@
 
 #include <rte_mbuf.h>
 #include <rte_flow_driver.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_vdev.h>
+#include <ethdev_driver.h>
+#include <ethdev_vdev.h>
 #include <rte_malloc.h>
 #include <rte_memcpy.h>
 #include <rte_bus_vdev.h>
index f857e64afbb4151453cf4bb0d2d0ef28744d702c..c702e19ea503bea15d9d9c58b88551c59ed32327 100644 (file)
@@ -13,7 +13,7 @@
 #include <rte_io.h>
 #include <rte_debug.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_log.h>
 #include <rte_malloc.h>
 #include <rte_eth_ctrl.h>
index 9e15cce34fc1f86845cc7c03740314c78837b260..856d21ef9bdbaf035395459a75e0c98d0631a04c 100644 (file)
@@ -12,7 +12,7 @@
 
 #include <rte_mbuf.h>
 #include <rte_sched.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_spinlock.h>
 
 #include <rte_io.h>
index 17ac026d38f614d9072a23956c703a7a25421bc7..6a9b98fd7f7cef036a72de8c773afb7f845ab7de 100644 (file)
@@ -14,7 +14,7 @@
 
 #include <rte_mbuf.h>
 #include <rte_sched.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 
 #include <rte_io.h>
 #include <rte_rawdev.h>
index ae38ce355900c64f68edea08f39b9ff283679009..67ced6c7239632e881d436189acd2b4653fdaf99 100644 (file)
@@ -4,7 +4,7 @@
 
 #include <time.h>
 #include <rte_atomic.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include "ixgbe_ethdev.h"
 #include "ixgbe_bypass_api.h"
 #include "rte_pmd_ixgbe.h"
index c8b9ec8c1193a4e96012c7d15628bdcaad0aa534..761a0f26bb96995b6b65063abb7d4da650283779 100644 (file)
@@ -27,8 +27,8 @@
 #include <rte_eal.h>
 #include <rte_alarm.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_driver.h>
+#include <ethdev_pci.h>
 #include <rte_malloc.h>
 #include <rte_random.h>
 #include <rte_dev.h>
index 11b9effebaeb3c25184be75f19d1da0529df6665..27a49bbce5e72841802e7126d51bd1e2bb064d65 100644 (file)
@@ -13,7 +13,7 @@
 #include <rte_debug.h>
 #include <rte_pci.h>
 #include <rte_vxlan.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_malloc.h>
 
 #include "ixgbe_logs.h"
index 9aeb2e4a493d406f41f4beeb300e0c5e2606a334..0b10e91a9b5a3a2d91a6380e47932b224ccb0c6c 100644 (file)
@@ -25,7 +25,7 @@
 #include <rte_eal.h>
 #include <rte_alarm.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_malloc.h>
 #include <rte_random.h>
 #include <rte_dev.h>
index 62f2a5f764b00717e651aca241a0927251499196..e45c5501e6bfaf96ad863fd3d070226d42cf22bf 100644 (file)
@@ -2,8 +2,8 @@
  * Copyright(c) 2010-2017 Intel Corporation
  */
 
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_driver.h>
+#include <ethdev_pci.h>
 #include <rte_ip.h>
 #include <rte_jhash.h>
 #include <rte_security_driver.h>
index 15982af8da920ca8bfc4cffaa43616db58ba1148..fbf2b17d160f6bacf1f06bc55d631b347655e35d 100644 (file)
@@ -15,7 +15,7 @@
 #include <rte_debug.h>
 #include <rte_eal.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_memcpy.h>
 #include <rte_malloc.h>
 #include <rte_random.h>
index c0305a8238494810a7f5d51a969742b882e4076a..36e6ca90101936e5d39a59151e03e779b367470a 100644 (file)
@@ -33,7 +33,7 @@
 #include <rte_malloc.h>
 #include <rte_mbuf.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_security_driver.h>
 #include <rte_prefetch.h>
 #include <rte_udp.h>
index a97c27189b79160a50b1fcc002c0bbb4705b05f8..adba855ca30fbf5d2e859613b38fd52ae3e6b58f 100644 (file)
@@ -5,7 +5,7 @@
 #ifndef _IXGBE_RXTX_VEC_COMMON_H_
 #define _IXGBE_RXTX_VEC_COMMON_H_
 #include <stdint.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 
 #include "ixgbe_ethdev.h"
 #include "ixgbe_rxtx.h"
index a5a5b2167f878e7f8625ebcf414d78b81fd8398d..f83b800ad917ef8d9f9d9e5e7eb1cf6c4c07d91d 100644 (file)
@@ -3,7 +3,7 @@
  */
 
 #include <stdint.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_malloc.h>
 #include <rte_vect.h>
 
index 90c076825a02e0d1710f6ad94fae337347a097b8..9bbffe6119bf028e9dded7a410a480abf872bdce 100644 (file)
@@ -3,7 +3,7 @@
  */
 
 #include <stdint.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_malloc.h>
 
 #include "ixgbe_ethdev.h"
index 8185f0d3bbd323846b204c1d2c117fc992dad2b8..d5b636a1940866db3b8cffbb3f26dffca522f517 100644 (file)
@@ -6,7 +6,7 @@
 #include <rte_pci.h>
 #include <rte_malloc.h>
 
-#include "rte_ethdev_driver.h"
+#include "ethdev_driver.h"
 #include "base/ixgbe_type.h"
 #include "base/ixgbe_vf.h"
 #include "ixgbe_ethdev.h"
index d2f708242c8638bb3456b45e7b9d968be2aa2cc4..cf089cd9aee55411c5318dcb9b0af88bae1329ce 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright(c) 2010-2017 Intel Corporation
  */
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 
 #include "base/ixgbe_api.h"
 #include "base/ixgbe_x550.h"
index 1696787a9b361e31d3b124323f9a53376bec7f4b..9ce74e549b7ef678695d22c9df4c6ecd264ba340 100644 (file)
@@ -7,8 +7,8 @@
 #include <unistd.h>
 
 #include <rte_string_fns.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_vdev.h>
+#include <ethdev_driver.h>
+#include <ethdev_vdev.h>
 #include <rte_kni.h>
 #include <rte_kvargs.h>
 #include <rte_malloc.h>
index ddbc8c0e0cf55371e3a1a5bf8bcd0c3d9e3ad570..c6b8310b7179e0c952c279e7dc94b3ed3139e1ea 100644 (file)
@@ -4,7 +4,7 @@
 
 #include <string.h>
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_cycles.h>
 #include <rte_malloc.h>
 
index 1129001515e29d1cc5a4ab7081ef7d638c87a125..2ac2b1b3347205399ca9e21f60330253d1ad0da3 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright(c) 2017 Cavium, Inc
  */
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_cycles.h>
 
 #include "lio_logs.h"
index eb0fdab45a8a31e01b1f842f4403a7e01c42d3cf..0b189d5d15e269c95c851afefb9e82294bbcc546 100644 (file)
@@ -3,8 +3,8 @@
  */
 
 #include <rte_string_fns.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_driver.h>
+#include <ethdev_pci.h>
 #include <rte_cycles.h>
 #include <rte_malloc.h>
 #include <rte_alarm.h>
index 8d705bfe7fe124315c2c31a30165695f734a228e..a067b60e47ee98f13450e02aa28e357c2af60696 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright(c) 2017 Cavium, Inc
  */
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_cycles.h>
 #include <rte_malloc.h>
 
index c526f907785491c1513bddea56a14dcdb2928d3d..5b373738e6651eb97dd0cbe99bee1d154148c883 100644 (file)
@@ -13,8 +13,8 @@
 #include <rte_version.h>
 #include <rte_mbuf.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_vdev.h>
+#include <ethdev_driver.h>
+#include <ethdev_vdev.h>
 #include <rte_malloc.h>
 #include <rte_kvargs.h>
 #include <rte_bus_vdev.h>
index 8ed9aebab7468c4c97635c87e354a2a77d567983..77c95bcb7aaa8a7817e5e1d85c015cdcc0291ab6 100644 (file)
@@ -17,8 +17,8 @@
 #include <rte_version.h>
 #include <rte_mbuf.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_vdev.h>
+#include <ethdev_driver.h>
+#include <ethdev_vdev.h>
 #include <rte_malloc.h>
 #include <rte_kvargs.h>
 #include <rte_bus_vdev.h>
index 765a7e59982ad2822ad57c9c64cf77dc8a42b490..24321d3a39db8fead7c6ff9b2aaba212d0b9c604 100644 (file)
@@ -11,7 +11,7 @@
 
 #include <sys/queue.h>
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_ether.h>
 #include <rte_interrupts.h>
 
index d5d8c96351fba390cd41d7e2eda5030f664f88a7..27af426363b3e5b2cd55a0703304bab2dc9a92ea 100644 (file)
@@ -33,8 +33,8 @@
 #include <rte_common.h>
 #include <rte_dev.h>
 #include <rte_errno.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_driver.h>
+#include <ethdev_pci.h>
 #include <rte_ether.h>
 #include <rte_flow.h>
 #include <rte_interrupts.h>
index c6cb29493e511d73ee53a0d12811a3d65982f040..63df8fcf2b98aadc712e8bfab4d628dc40881b16 100644 (file)
@@ -19,7 +19,7 @@
 #pragma GCC diagnostic error "-Wpedantic"
 #endif
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_ether.h>
 #include <rte_interrupts.h>
 #include <rte_mempool.h>
index 9ff05c6738831fcb0dae28ff829626b044e1b54b..783ff94dce8d2259f6f44116a5c05b7566394ea6 100644 (file)
@@ -34,7 +34,7 @@
 
 #include <rte_bus_pci.h>
 #include <rte_errno.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_ether.h>
 #include <rte_flow.h>
 #include <rte_pci.h>
index 2a86382db7b903521d6e8ad3adc67cc9bcb4c762..b8ecfa829b2644979ff484d0cca439cba28b6bf0 100644 (file)
@@ -27,7 +27,7 @@
 
 #include <rte_byteorder.h>
 #include <rte_errno.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_ether.h>
 #include <rte_flow.h>
 #include <rte_flow_driver.h>
index 26465c66a448daf64e6e0d4c209f5ef20529c9e3..e4366f28bbdb1822afba17daea77d4b24491d204 100644 (file)
@@ -18,7 +18,7 @@
 #pragma GCC diagnostic error "-Wpedantic"
 #endif
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_flow.h>
 #include <rte_flow_driver.h>
 #include <rte_byteorder.h>
index 6786b12ab53500bad2be656ee8037a90ccfc3dca..d56009c4184522c48c25100537de2201d838de7e 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <rte_alarm.h>
 #include <rte_errno.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_io.h>
 #include <rte_interrupts.h>
 
index eca0c20a8a617c6589dd43318caad9498d8fe9f2..e05da89c0e4ba4622771e58d62c4520ce9a80913 100644 (file)
@@ -7,7 +7,7 @@
 #include <time.h>
 
 #include <rte_eal.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_string_fns.h>
 
 #include "mlx4.h"
index 0699bdd5f2c0197ab7349ee228a8e8bb0e259cd6..978cbb8201ea0d9ce9f36a9fcea4230e26a69f2c 100644 (file)
@@ -26,7 +26,7 @@
 #include <rte_byteorder.h>
 #include <rte_common.h>
 #include <rte_errno.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_flow.h>
 #include <rte_malloc.h>
 #include <rte_mbuf.h>
index 9de6c594115c4e1cd72685637e3827909e8dbb03..7c72ce6d178ba5b4621ad61d03177e45f26aad8e 100644 (file)
@@ -19,7 +19,7 @@
 #pragma GCC diagnostic error "-Wpedantic"
 #endif
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_mbuf.h>
 #include <rte_mempool.h>
 
index 37b84413fb0391f0197fd2763a52815fe6462c57..826207150599585961876c190af95462c84bafa2 100644 (file)
@@ -27,7 +27,7 @@
 
 #include <rte_common.h>
 #include <rte_errno.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_malloc.h>
 #include <rte_mbuf.h>
 #include <rte_mempool.h>
index e36a78091cb46b2a6b68d1ae7b9aa4477473c7da..0e8de9439e918e92b519485979114175a7069d37 100644 (file)
@@ -24,7 +24,7 @@
 #include <sys/un.h>
 #include <time.h>
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_bus_pci.h>
 #include <rte_mbuf.h>
 #include <rte_common.h>
index 08ade75799083c4fa972e5254fb84c85dbd746df..60fdee22a1698d4674f90075d670036b92cf6c9d 100644 (file)
@@ -7,7 +7,7 @@
 #include <time.h>
 
 #include <rte_eal.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_string_fns.h>
 
 #include <mlx5_common_mp.h>
index 9ac1d46b1b88275d8512ac795d1d3fb0b8ecb13d..7efa7c6cd250b68017a4604de4e2ec0c524ab50d 100644 (file)
@@ -16,8 +16,8 @@
 #include <fcntl.h>
 
 #include <rte_malloc.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_driver.h>
+#include <ethdev_pci.h>
 #include <rte_pci.h>
 #include <rte_bus_pci.h>
 #include <rte_common.h>
index 318e39b1dfd9f5b598e2735a70a91efc0df645f4..43ff85f9c470b8b8420c821f92fc75b8ebd25a2a 100644 (file)
@@ -14,7 +14,7 @@
 
 #include <rte_mbuf.h>
 #include <rte_malloc.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_common.h>
 
 #include <mlx5_glue.h>
index 40e895e0805e48b9b861ad1fe1233248383027fc..005904bdfe05d7c67bcf92b3def408c2027f0f07 100644 (file)
@@ -14,7 +14,7 @@
  */
 #include <sys/types.h>
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_common.h>
 #include <rte_malloc.h>
 #include <rte_hypervisor.h>
index 3730f32295551cbf74776de3ab9c1567e568a75d..50a6d2b19f33504ef12fa569147a3132048211df 100644 (file)
@@ -11,8 +11,8 @@
 #include <errno.h>
 
 #include <rte_malloc.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_driver.h>
+#include <ethdev_pci.h>
 #include <rte_pci.h>
 #include <rte_bus_pci.h>
 #include <rte_common.h>
index 101e9c20d0457383eec0a3b6addf1fda2b649ac9..4bbf628885d15bd7e614fbeb4716319f99543323 100644 (file)
@@ -15,7 +15,7 @@
 
 #include <rte_pci.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_rwlock.h>
 #include <rte_interrupts.h>
 #include <rte_errno.h>
index 85a09796530faba23a3d46383d60df0d9ef36da5..af29d93901d4194e413f0740258282188c28bd28 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef RTE_PMD_MLX5_DEFS_H_
 #define RTE_PMD_MLX5_DEFS_H_
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_vxlan.h>
 
 #include "mlx5_autoconf.h"
index 45ee7e44883c7644ed1cc53455978b21f5a88887..51b39ddde5dac3a343381eff395d975b0bd68481 100644 (file)
@@ -10,7 +10,7 @@
 #include <stdlib.h>
 #include <errno.h>
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_bus_pci.h>
 #include <rte_mbuf.h>
 #include <rte_common.h>
index 2ca6148c1dedcf163ebfa002c292f2bdb05b977c..6716a20141a583109eb574896fd77744263eb3d1 100644 (file)
@@ -12,7 +12,7 @@
 
 #include <rte_common.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_eal_paging.h>
 #include <rte_flow.h>
 #include <rte_cycles.h>
index c1ddff736478d53daa66b535effb08f310e300fe..707d6749e28174b127a34aebf601723b8efeda9e 100644 (file)
@@ -10,7 +10,7 @@
 
 #include <rte_common.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_flow.h>
 #include <rte_flow_driver.h>
 #include <rte_malloc.h>
index 2d4381946d94956129c5473a091d941b563b1617..934749096736dfb30fcaefdbf81e803a8d954e4c 100644 (file)
@@ -10,7 +10,7 @@
 
 #include <rte_common.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_flow.h>
 #include <rte_flow_driver.h>
 #include <rte_malloc.h>
index bd786fd63874db61460e10662cb2af8c8dedc86e..6ffcfcd97adb04b73416e7b18cd58134a15950d0 100644 (file)
@@ -11,7 +11,7 @@
 #include <netinet/in.h>
 
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_common.h>
 
 #include "mlx5_defs.h"
index 845cebe2e86c83e0d02a89de6532c7805b1f8f45..dc0131af3ac3d616ee3a46c981fdc07bf745321a 100644 (file)
@@ -9,7 +9,7 @@
 #include <string.h>
 
 #include <rte_malloc.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 
 #include <mlx5_malloc.h>
 
index 7613ff770d77190e69cbe35f5630cc414024f432..cf93ccac86591f53a7652735da0056874c71ffca 100644 (file)
@@ -7,7 +7,7 @@
 #include <errno.h>
 #include <string.h>
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 
 #include <mlx5_glue.h>
 #include "mlx5.h"
index 787b2b74dd99ab21f02060cdff7f22a9506a9540..92e3a792e1a2983dfc3a4b09273d1e4be6a9c6c6 100644 (file)
@@ -12,7 +12,7 @@
 
 #include <rte_mbuf.h>
 #include <rte_malloc.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_common.h>
 #include <rte_interrupts.h>
 #include <rte_debug.h>
index 82d4d4a7455e92941ac7aaf5832b42f11a47ede4..a6569b250ac9904894592bd08f8590d8f28e71e4 100644 (file)
@@ -8,7 +8,7 @@
 #include <stdio.h>
 #include <unistd.h>
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_common.h>
 #include <rte_malloc.h>
 
index 48210bf0b205fbf1a752e16778fba1fa5757f121..94dd56709e38cbac1688d6ce54d4fc11c4651049 100644 (file)
@@ -6,7 +6,7 @@
 #include <unistd.h>
 
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_interrupts.h>
 #include <rte_alarm.h>
 #include <rte_cycles.h>
index b38482d4e9a4c37c47ac29f27615fcde3b3c2604..696282ca3153f946c43f346ee21b3685371c00a2 100644 (file)
@@ -5,7 +5,7 @@
 #include <stdint.h>
 
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_interrupts.h>
 #include <rte_alarm.h>
 #include <rte_malloc.h>
index b81bb4a12dd3c54d8eccb6457330c9d15420f0da..5142e50858f562242dc43737edfefac494a7ae6c 100644 (file)
@@ -12,7 +12,7 @@
 
 #include <rte_mbuf.h>
 #include <rte_malloc.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_common.h>
 #include <rte_eal_paging.h>
 
index dbb9d362f363bef75a2111594eef5d69e813f55e..64678d3f513b1a8367df4759694f00eef337510a 100644 (file)
@@ -8,7 +8,7 @@
 #include <stdint.h>
 #include <unistd.h>
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_common.h>
 #include <rte_malloc.h>
 #include <rte_hypervisor.h>
index 076c6886991dcae3411aac79fd0b3c6c93aaba31..8609d38eca76ea4a7d6957addcb83066350ff6ed 100644 (file)
@@ -5,7 +5,7 @@
 
 #include <rte_errno.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_interrupts.h>
 
 #include <mlx5_glue.h>
index db793b1f7d9cef1c4c30fcf1c8a85954bd21f850..8313c29ffb76daad24cd7bce186a7f9a01f1a38d 100644 (file)
@@ -6,7 +6,7 @@
 #include <time.h>
 
 #include <rte_eal.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_string_fns.h>
 
 #include <mlx5_common_mp.h>
index b036432937d503ad0fe35ecaa157c6aeabb48486..e37cc65c17393a4effc2f76b2499541ca2789db5 100644 (file)
@@ -9,7 +9,7 @@
 #include <stdlib.h>
 
 #include <rte_windows.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_pci.h>
 
 #include <mlx5_glue.h>
 #include <mlx5_devx_cmds.h>
index d3b11e0001363018dde10eb5bda2a6dd312ebd42..3917c822e4e9d9b2dfad7332112d474780c8a4aa 100644 (file)
@@ -13,7 +13,7 @@
  */
 #include <sys/types.h>
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_common.h>
 
 #include <mlx5.h>
index 2cd73919ce6eb62cb002e295d5285281af5209f1..b0940b4462b2acfa44d8b458d1d7438edf353a1c 100644 (file)
@@ -5,7 +5,7 @@
  */
 
 #include <rte_string_fns.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_kvargs.h>
 #include <rte_bus_vdev.h>
 
index f25cf9e46d0774daef5c6f4bcaf9da3448dcd2ba..1d67f2abf181c102add2400e5857825a793769f0 100644 (file)
@@ -5,7 +5,7 @@
  */
 
 #include <rte_string_fns.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_kvargs.h>
 #include <rte_log.h>
 #include <rte_malloc.h>
index 5a401b4b06461fafeae54f47179425a435b0ab35..04904b1514416919cd92ae1d8ed230e818b04e10 100644 (file)
@@ -24,7 +24,7 @@
 #include <rte_atomic.h>
 #include <rte_branch_prediction.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_cycles.h>
 #include <rte_errno.h>
 #include <rte_memory.h>
index 1ce260c89b95372e7517a06d0ff420c3ca4a4fa9..e317539de72a8623147cf0ba4555147c0e21c9b2 100644 (file)
@@ -12,7 +12,7 @@
 #include <unistd.h>
 #include <time.h>
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_ethdev.h>
 #include <rte_string_fns.h>
 #include <rte_memzone.h>
index 86392917c5ab5f33f4e3465bb6a62b389b33474d..2dc7abe354adf87aae30cedffc1c72bf0f2b3b88 100644 (file)
@@ -16,7 +16,7 @@
 
 #include <rte_ether.h>
 #include <rte_ethdev.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_lcore.h>
 #include <rte_memory.h>
 #include <rte_bus_vmbus.h>
index c55bcdf1efdcbe76906a4f62b94d21bea6af89ac..7e91d5984740f61067e2ae4f677a118ebab950d7 100644 (file)
@@ -9,7 +9,7 @@
 #include <netcope/rxmac.h>
 #include <netcope/txmac.h>
 
-#include <rte_ethdev_pci.h>
+#include <ethdev_pci.h>
 #include <rte_kvargs.h>
 
 #include "nfb_stats.h"
index b6578cc38ad52dafb79269663b1eaf4311195669..28daeae0b8e80f9463b902b9205d7c85acbba096 100644 (file)
@@ -10,7 +10,7 @@
 #include <nfb/nfb.h>
 #include <nfb/ndp.h>
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_ethdev.h>
 #include <rte_malloc.h>
 
index 9ea24e5bda21fd573d1482ce485725ff1250e792..9927c9c44b2e44c75845a055958407d6558a6621 100644 (file)
@@ -17,8 +17,8 @@
 #include <rte_common.h>
 #include <rte_log.h>
 #include <rte_debug.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_driver.h>
+#include <ethdev_pci.h>
 #include <rte_dev.h>
 #include <rte_ether.h>
 #include <rte_malloc.h>
index 1427954c173c1b23537deeac12f4d20c4bea0c4f..78f7b8ca2f097fe3a79622a38eef47361b2f0519 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef __NFP_CPP_H__
 #define __NFP_CPP_H__
 
-#include <rte_ethdev_pci.h>
+#include <ethdev_pci.h>
 
 #include "nfp-common/nfp_platform.h"
 #include "nfp-common/nfp_resid.h"
index 36725d69ab0232516b3ccbeb036269f1b5c9d565..bad80a5a1c173fb73c3fe807b84c7388ba72c9a3 100644 (file)
@@ -33,7 +33,7 @@
 #include <sys/file.h>
 #include <sys/stat.h>
 
-#include <rte_ethdev_pci.h>
+#include <ethdev_pci.h>
 #include <rte_string_fns.h>
 
 #include "nfp_cpp.h"
index dec4a8b6d1a5c2d17fc3c5b7b7e8ee02cfd6697f..848c452eab84b88a13a8fb787dd469287a065ddf 100644 (file)
@@ -12,7 +12,7 @@
 #include <sys/types.h>
 
 #include <rte_byteorder.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_pci.h>
 
 #include "nfp_cpp.h"
 #include "nfp_target.h"
index 49ee8da8e4db1bd5761a17d40e75f76308b7210c..32764e8f0e80f7ff645add014f1c9392ee31e12a 100644 (file)
@@ -4,8 +4,8 @@
  */
 
 #include <rte_mbuf.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_vdev.h>
+#include <ethdev_driver.h>
+#include <ethdev_vdev.h>
 #include <rte_malloc.h>
 #include <rte_memcpy.h>
 #include <rte_bus_vdev.h>
index 780a094ffa215140be6c4b0eb5f58b6e6647cac3..b73515de37ca85166dbb9c42ad69586d90ea4dac 100644 (file)
@@ -8,7 +8,7 @@
 #include <stdbool.h>
 
 #include <rte_common.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_eventdev.h>
 #include <rte_mempool.h>
 #include <rte_memory.h>
index bbe43a874b7000f1b49ac89c30f225febcc92781..61865ef0bcdbed2be9ba4d3fd5b3b3b6baf2281f 100644 (file)
@@ -9,7 +9,7 @@
 
 #include <rte_atomic.h>
 #include <rte_common.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_ether.h>
 #include <rte_log.h>
 #include <rte_mbuf.h>
index 7c24d8b4fd29b3be534ca80250960b12f46bf015..2ed28ea5635d957ef294d7c892dd609e01986290 100644 (file)
@@ -5,7 +5,7 @@
 #ifndef        __OCTEONTX_RXTX_H__
 #define        __OCTEONTX_RXTX_H__
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 
 #define OFFLOAD_FLAGS                                  \
        uint16_t rx_offload_flags;                      \
index 9bfe95d6b11663ee755f17eeef9c68d52c5ded0e..e9fbbca4dae9b06d5d9af3c0d551b3d778b1ce8d 100644 (file)
@@ -4,7 +4,7 @@
 
 #include <inttypes.h>
 
-#include <rte_ethdev_pci.h>
+#include <ethdev_pci.h>
 #include <rte_io.h>
 #include <rte_malloc.h>
 #include <rte_mbuf.h>
index 439ec4fa8924e09e2d8c441991289d58319ad0ad..a79b997376fe922e07638e137b04c6c4278a9950 100644 (file)
@@ -3,7 +3,7 @@
  */
 
 #include <rte_common.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_pci.h>
 
 #include "otx2_ethdev.h"
 
index b8ef4c181d2dff7d95eea16bce10ab059845b3cb..91e5c0f6bd115414b6122983a6e48aa331faa644 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright(C) 2019 Marvell International Ltd.
  */
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 
 #include "otx2_ethdev.h"
 
index a32b1f3f37a3ab37198aff2081faff26cb61c86b..ff02ade70d1a011cdb687a941c9d4a6c07058212 100644 (file)
@@ -19,8 +19,8 @@
 #include <pcap.h>
 
 #include <rte_cycles.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_vdev.h>
+#include <ethdev_driver.h>
+#include <ethdev_vdev.h>
 #include <rte_kvargs.h>
 #include <rte_malloc.h>
 #include <rte_mbuf.h>
index 9820d7bf47d1cb7eade6377cb6b5396bb1effb2e..fbc11b4ffbef59c40a6e69a4a052b382d6ea18e8 100644 (file)
@@ -7,7 +7,7 @@
 
 #include <compat.h>
 #include <rte_ethdev.h>
-#include <rte_ethdev_vdev.h>
+#include <ethdev_vdev.h>
 
 #define ETH_ALEN 6
 #define GEMAC_NO_PHY            BIT(0)
index 3b079693fb8ecab8a5ae95e2e273ab61502cbd3a..8cf59e210d791d04d86a5ccab247d290e0e913bd 100644 (file)
@@ -5,7 +5,7 @@
 #include <sys/ioctl.h>
 #include <sys/epoll.h>
 #include <rte_kvargs.h>
-#include <rte_ethdev_vdev.h>
+#include <ethdev_vdev.h>
 #include <rte_bus_vdev.h>
 #include <rte_ether.h>
 #include <dpaa_of.h>
index 61a65ac42e62c1209b61f859db2844943e202069..da4b87f5e26deaa1bfe9470ad2a016ef50ee39d4 100644 (file)
@@ -11,8 +11,8 @@
 #include <sys/queue.h>
 
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_driver.h>
+#include <ethdev_pci.h>
 #include <rte_dev.h>
 #include <rte_ip.h>
 
index 41402a5159d4ec6f2b79c1c1c9eee3a2c0d61512..472d838582ee060112ab4beb44a0185afc487890 100644 (file)
@@ -4,7 +4,7 @@
 
 #include "rte_eth_ring.h"
 #include <rte_mbuf.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_malloc.h>
 #include <rte_memcpy.h>
 #include <rte_string_fns.h>
index ed059e142fe401ed733c0b179999680a98666bea..fdee8004821608374245d0033c070022b455cfe3 100644 (file)
@@ -14,7 +14,7 @@
 
 #include <rte_pci.h>
 #include <rte_bus_pci.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_kvargs.h>
 #include <rte_spinlock.h>
 #include <rte_atomic.h>
index f3e00e2e38822e181c1ef6114449561928994595..f20154b568793bce1839ba06515d91d4d523ced6 100644 (file)
@@ -11,7 +11,7 @@
 #define _SFC_DP_RX_H
 
 #include <rte_mempool.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 
 #include "sfc_dp.h"
 
index 3ecdfcdd28bb5d4821a09c466b4cf116f22594d7..b4af68984a01bff7e84c378933e16631eb9a7e2b 100644 (file)
@@ -10,7 +10,7 @@
 #ifndef _SFC_DP_TX_H
 #define _SFC_DP_TX_H
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 
 #include "sfc_dp.h"
 #include "sfc_debug.h"
index f2f5336435c460a582e805ff31f29a1727ea8a2f..d6f6a84eab62ed2577dfc2274b073dfec30d1781 100644 (file)
@@ -8,8 +8,8 @@
  */
 
 #include <rte_dev.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_driver.h>
+#include <ethdev_pci.h>
 #include <rte_pci.h>
 #include <rte_bus_pci.h>
 #include <rte_errno.h>
index 3c7e5580e2fc5d773e19e359456fac852d4276c5..03bfb14b5c4ab90b302b859bcdac8fcf6b8c91af 100644 (file)
@@ -10,7 +10,7 @@
 #ifndef _SFC_EV_H_
 #define _SFC_EV_H_
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 
 #include "efx.h"
 
index 4321045d1ada1384a2a896465305a0fedb124407..ab1d2cc595d0c8e835ecd87b9a885644e675410b 100644 (file)
@@ -10,7 +10,7 @@
 #include <rte_byteorder.h>
 #include <rte_tailq.h>
 #include <rte_common.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_ether.h>
 #include <rte_flow.h>
 #include <rte_flow_driver.h>
index d6ee9cf802bbef2521083598402632972b83ad17..0d64b9c8bb8f91fb0b5f103c429c4a09e9566f1b 100644 (file)
@@ -12,7 +12,7 @@
 
 #include <rte_mbuf.h>
 #include <rte_mempool.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 
 #include "efx.h"
 
index d583ee9c3d286ff4c91525791f0ac2baf9ebbf2d..3367bade37ab9856feb39b68d6bf60e53887f061 100644 (file)
@@ -11,7 +11,7 @@
 #define _SFC_TX_H
 
 #include <rte_mbuf.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 
 #include "efx.h"
 
index 3387ab485f394209ea1a6e9416886b9a8cb25ad1..99d8468c947a00af5d40af2e3e45c42faa2b1a64 100644 (file)
@@ -6,8 +6,8 @@
 #include <stdlib.h>
 #include <string.h>
 
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_vdev.h>
+#include <ethdev_driver.h>
+#include <ethdev_vdev.h>
 #include <rte_malloc.h>
 #include <rte_bus_vdev.h>
 #include <rte_kvargs.h>
index 9c8737c9e2593b949196dd9f993fb48bd926c47f..faf90a5a8c49891f099952df3306103b0a301c0e 100644 (file)
@@ -19,7 +19,7 @@
 #include <rte_pipeline.h>
 
 #include <rte_ethdev_core.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_tm_driver.h>
 #include <rte_flow_driver.h>
 #include <rte_mtr_driver.h>
index 7874c4f4f832ef6768784b5d94293740ddb840a8..6eaeadf1c828ffb63f1b7478527185c330f2623b 100644 (file)
@@ -15,8 +15,8 @@
 #include <libsze2.h>
 
 #include <rte_mbuf.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_driver.h>
+#include <ethdev_pci.h>
 #include <rte_malloc.h>
 #include <rte_memcpy.h>
 #include <rte_kvargs.h>
index 2542de3065c34a4d087505f2199806197b863002..c36d4bf76e13772d2c502fcf30d65868885ed0e9 100644 (file)
@@ -7,8 +7,8 @@
 #include <rte_byteorder.h>
 #include <rte_common.h>
 #include <rte_mbuf.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_vdev.h>
+#include <ethdev_driver.h>
+#include <ethdev_vdev.h>
 #include <rte_malloc.h>
 #include <rte_bus_vdev.h>
 #include <rte_kvargs.h>
index ba45de840995ddc34dda5837fd2432da59c9c8c9..a98ea11a3315dcf87fada8addcc0250540ee21ea 100644 (file)
@@ -13,7 +13,7 @@
 
 #include <linux/if_tun.h>
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_ether.h>
 #include <rte_gso.h>
 #include "tap_log.h"
index c2e7c334d41fc52a77c48920b4e6cc097a88fbe6..c45d6e00a975ada0c4e4ce1b855c2fbfdc29089e 100644 (file)
@@ -23,8 +23,8 @@
 #include <rte_dev.h>
 #include <rte_eal.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_driver.h>
+#include <ethdev_pci.h>
 #include <rte_interrupts.h>
 #include <rte_log.h>
 #include <rte_memory.h>
index 39141179970284f423cf9795b197766f6855b212..b8dd905d0bd6e62719f856d16e34d17f09739f45 100644 (file)
@@ -5,7 +5,7 @@
 #ifndef __THUNDERX_NICVF_ETHDEV_H__
 #define __THUNDERX_NICVF_ETHDEV_H__
 
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 
 #define THUNDERX_NICVF_PMD_VERSION      "2.0"
 #define THUNDERX_REG_BYTES             8
index d0ea95f1d11cdaec83d8d5eb29c42a057a83f7d6..91e09ff8d57a43d050c41b27356fcda2776367e5 100644 (file)
@@ -13,7 +13,7 @@
 #include <rte_common.h>
 #include <rte_cycles.h>
 #include <rte_errno.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_ether.h>
 #include <rte_log.h>
 #include <rte_mbuf.h>
index 1f274b29546fa1f1c5c3a4394f0379e76f5d94c1..d6ed660b4e6830180cb2f17ebd1c3032b5cfa165 100644 (file)
@@ -6,7 +6,7 @@
 #define __THUNDERX_NICVF_RXTX_H__
 
 #include <rte_byteorder.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 
 #define NICVF_RX_OFFLOAD_NONE           0x1
 #define NICVF_RX_OFFLOAD_CKSUM          0x2
index cf1c281a0618ced29410f87bcbdba82b85bb4b2e..0ca207d0dd8b02c1a2382c07d2729798152d46df 100644 (file)
@@ -11,7 +11,7 @@
 #include <rte_mempool.h>
 #include <rte_mbuf.h>
 #include <rte_interrupts.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_memory.h>
 
 struct nicvf_rbdr {
index eef4b6d4a58639179fe95ab70c40618a24f1c470..23f9d1709144d4cd965e0a6755d202c1fb62af5f 100644 (file)
@@ -7,7 +7,7 @@
 #include <stdint.h>
 #include <string.h>
 #include <rte_common.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_pci.h>
 
 #include <rte_interrupts.h>
 #include <rte_log.h>
index daa523b204fb54c5b79abaad175d641ec5f08167..9f4eee4081da8445b34b7a7c18302a2cffc7cceb 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright(c) 2015-2020
  */
 
-#include <rte_ethdev_pci.h>
+#include <ethdev_pci.h>
 #include <rte_security_driver.h>
 #include <rte_cryptodev.h>
 
index 151f2c7a4574b2d2dc1a897367862135e3665ca2..e4bd990b962324d60d8c656dca4494ad87f286fb 100644 (file)
@@ -15,7 +15,7 @@
 #include <rte_debug.h>
 #include <rte_eal.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_memcpy.h>
 #include <rte_malloc.h>
 #include <rte_random.h>
index 3ad92248c62f62cf1adbcd57b33b563fc97a8577..ac09e75a3e800280eb4ab497e5fa60a24f05d3e6 100644 (file)
@@ -19,7 +19,7 @@
 #include <rte_log.h>
 #include <rte_debug.h>
 #include <rte_ethdev.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_security_driver.h>
 #include <rte_memzone.h>
 #include <rte_atomic.h>
index 5845bb15f3c46c612a4fc58765081a5a8aca6873..d198fc8a8e9d7cf72c96e475f3a7fc21dce39ce7 100644 (file)
@@ -8,8 +8,8 @@
 #include <sys/epoll.h>
 
 #include <rte_mbuf.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_vdev.h>
+#include <ethdev_driver.h>
+#include <ethdev_vdev.h>
 #include <rte_malloc.h>
 #include <rte_memcpy.h>
 #include <rte_bus_vdev.h>
index 92a3d4efa58162a09f16c188ae4b294c979b0ca2..edcd6203d907dd2964f7b3026cb4a5a68bfa9651 100644 (file)
@@ -8,8 +8,8 @@
 #include <errno.h>
 #include <unistd.h>
 
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_driver.h>
+#include <ethdev_pci.h>
 #include <rte_memcpy.h>
 #include <rte_string_fns.h>
 #include <rte_memzone.h>
index ab61e911b896348e8013ee0479bad5a3c94e1aed..0382dc5b2c4c638fadb3b95e7524c821639b4e4a 100644 (file)
@@ -10,7 +10,7 @@
 
 #include <rte_pci.h>
 #include <rte_bus_pci.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 
 struct virtqueue;
 struct virtnet_ctl;
index 622d4bf20145ffcb71b370272eccc56a890da58d..fb7382eff76801d991898ebd6df33f2fbc881a3a 100644 (file)
@@ -15,7 +15,7 @@
 #include <rte_malloc.h>
 #include <rte_mbuf.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_prefetch.h>
 #include <rte_string_fns.h>
 #include <rte_errno.h>
index a26182bb46ea0d99d3d20d973faf102adfa87bfd..f248869a8ffa41f08c4060ce97492ebb4686c6eb 100644 (file)
@@ -15,7 +15,7 @@
 #include <rte_malloc.h>
 #include <rte_mbuf.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_prefetch.h>
 #include <rte_string_fns.h>
 #include <rte_errno.h>
index a260ebdf5735436f9cd16cde1de5a15291e7928b..f09a1eda49cf658515dee5cf2624160d5de27912 100644 (file)
@@ -14,7 +14,7 @@
 #include <rte_branch_prediction.h>
 #include <rte_cycles.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_errno.h>
 #include <rte_memory.h>
 #include <rte_mempool.h>
index 12e034dc0a2ed4f1cc4fdeb7eabbd2419b00861e..2cba8008073ccd86f2df65dcd092f7066d7599ab 100644 (file)
@@ -12,7 +12,7 @@
 #include <rte_branch_prediction.h>
 #include <rte_cycles.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_errno.h>
 #include <rte_memory.h>
 #include <rte_mempool.h>
index 1056e9c20bab7baa9e644b422c947707cdb6651e..85a5a6664a38aa0d7bb6d66bca4c5b0a294eebc9 100644 (file)
@@ -14,7 +14,7 @@
 #include <rte_branch_prediction.h>
 #include <rte_cycles.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_errno.h>
 #include <rte_memory.h>
 #include <rte_mempool.h>
index 241808cd8f396593f9df4211b6ae38a07c89d392..308275b70ee110b5d977ec42b69cd45700095b23 100644 (file)
@@ -13,7 +13,7 @@
 
 #include <rte_malloc.h>
 #include <rte_kvargs.h>
-#include <rte_ethdev_vdev.h>
+#include <ethdev_vdev.h>
 #include <rte_bus_vdev.h>
 #include <rte_alarm.h>
 #include <rte_cycles.h>
index 23a2ebbefa729b4a76de69b415c9bc0fe39d3753..ecdecc427c20356c728f529669177f605adefd2a 100644 (file)
@@ -26,8 +26,8 @@
 #include <rte_eal.h>
 #include <rte_alarm.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_driver.h>
+#include <ethdev_pci.h>
 #include <rte_string_fns.h>
 #include <rte_malloc.h>
 #include <rte_dev.h>
index 95c697f8e3ed12013f4038388f9b4db750787441..5cf53d4de8257e199097e97d3d50ec28989c8545 100644 (file)
@@ -32,7 +32,7 @@
 #include <rte_malloc.h>
 #include <rte_mbuf.h>
 #include <rte_ether.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 #include <rte_prefetch.h>
 #include <rte_ip.h>
 #include <rte_udp.h>
diff --git a/lib/librte_ethdev/ethdev_driver.h b/lib/librte_ethdev/ethdev_driver.h
new file mode 100644 (file)
index 0000000..57fdeda
--- /dev/null
@@ -0,0 +1,1465 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright(c) 2017 Intel Corporation
+ */
+
+#ifndef _RTE_ETHDEV_DRIVER_H_
+#define _RTE_ETHDEV_DRIVER_H_
+
+/**
+ * @file
+ *
+ * RTE Ethernet Device PMD API
+ *
+ * These APIs for the use from Ethernet drivers, user applications shouldn't
+ * use them.
+ *
+ */
+
+#include <rte_ethdev.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**< @internal Declaration of the hairpin peer queue information structure. */
+struct rte_hairpin_peer_info;
+
+/*
+ * Definitions of all functions exported by an Ethernet driver through the
+ * generic structure of type *eth_dev_ops* supplied in the *rte_eth_dev*
+ * structure associated with an Ethernet device.
+ */
+
+typedef int  (*eth_dev_configure_t)(struct rte_eth_dev *dev);
+/**< @internal Ethernet device configuration. */
+
+typedef int  (*eth_dev_start_t)(struct rte_eth_dev *dev);
+/**< @internal Function used to start a configured Ethernet device. */
+
+typedef int (*eth_dev_stop_t)(struct rte_eth_dev *dev);
+/**< @internal Function used to stop a configured Ethernet device. */
+
+typedef int  (*eth_dev_set_link_up_t)(struct rte_eth_dev *dev);
+/**< @internal Function used to link up a configured Ethernet device. */
+
+typedef int  (*eth_dev_set_link_down_t)(struct rte_eth_dev *dev);
+/**< @internal Function used to link down a configured Ethernet device. */
+
+typedef int (*eth_dev_close_t)(struct rte_eth_dev *dev);
+/**< @internal Function used to close a configured Ethernet device. */
+
+typedef int (*eth_dev_reset_t)(struct rte_eth_dev *dev);
+/** <@internal Function used to reset a configured Ethernet device. */
+
+typedef int (*eth_is_removed_t)(struct rte_eth_dev *dev);
+/**< @internal Function used to detect an Ethernet device removal. */
+
+/**
+ * @internal
+ * Function used to enable the Rx promiscuous mode of an Ethernet device.
+ *
+ * @param dev
+ *   ethdev handle of port.
+ *
+ * @return
+ *   Negative errno value on error, 0 on success.
+ *
+ * @retval 0
+ *   Success, promiscuous mode is enabled.
+ * @retval -ENOTSUP
+ *   Promiscuous mode is not supported.
+ * @retval -ENODEV
+ *   Device is gone.
+ * @retval -E_RTE_SECONDARY
+ *   Function was called from a secondary process instance and not supported.
+ * @retval -ETIMEDOUT
+ *   Attempt to enable promiscuos mode failed because of timeout.
+ * @retval -EAGAIN
+ *   Failed to enable promiscuous mode.
+ */
+typedef int (*eth_promiscuous_enable_t)(struct rte_eth_dev *dev);
+
+/**
+ * @internal
+ * Function used to disable the Rx promiscuous mode of an Ethernet device.
+ *
+ * @param dev
+ *   ethdev handle of port.
+ *
+ * @return
+ *   Negative errno value on error, 0 on success.
+ *
+ * @retval 0
+ *   Success, promiscuous mode is disabled.
+ * @retval -ENOTSUP
+ *   Promiscuous mode disabling is not supported.
+ * @retval -ENODEV
+ *   Device is gone.
+ * @retval -E_RTE_SECONDARY
+ *   Function was called from a secondary process instance and not supported.
+ * @retval -ETIMEDOUT
+ *   Attempt to disable promiscuos mode failed because of timeout.
+ * @retval -EAGAIN
+ *   Failed to disable promiscuous mode.
+ */
+typedef int (*eth_promiscuous_disable_t)(struct rte_eth_dev *dev);
+
+/**
+ * @internal
+ * Enable the receipt of all multicast packets by an Ethernet device.
+ *
+ * @param dev
+ *   ethdev handle of port.
+ *
+ * @return
+ *   Negative errno value on error, 0 on success.
+ *
+ * @retval 0
+ *   Success, all-multicast mode is enabled.
+ * @retval -ENOTSUP
+ *   All-multicast mode is not supported.
+ * @retval -ENODEV
+ *   Device is gone.
+ * @retval -E_RTE_SECONDARY
+ *   Function was called from a secondary process instance and not supported.
+ * @retval -ETIMEDOUT
+ *   Attempt to enable all-multicast mode failed because of timeout.
+ * @retval -EAGAIN
+ *   Failed to enable all-multicast mode.
+ */
+typedef int (*eth_allmulticast_enable_t)(struct rte_eth_dev *dev);
+
+/**
+ * @internal
+ * Disable the receipt of all multicast packets by an Ethernet device.
+ *
+ * @param dev
+ *   ethdev handle of port.
+ *
+ * @return
+ *   Negative errno value on error, 0 on success.
+ *
+ * @retval 0
+ *   Success, all-multicast mode is disabled.
+ * @retval -ENOTSUP
+ *   All-multicast mode disabling is not supported.
+ * @retval -ENODEV
+ *   Device is gone.
+ * @retval -E_RTE_SECONDARY
+ *   Function was called from a secondary process instance and not supported.
+ * @retval -ETIMEDOUT
+ *   Attempt to disable all-multicast mode failed because of timeout.
+ * @retval -EAGAIN
+ *   Failed to disable all-multicast mode.
+ */
+typedef int (*eth_allmulticast_disable_t)(struct rte_eth_dev *dev);
+
+typedef int (*eth_link_update_t)(struct rte_eth_dev *dev,
+                               int wait_to_complete);
+/**< @internal Get link speed, duplex mode and state (up/down) of an Ethernet device. */
+
+typedef int (*eth_stats_get_t)(struct rte_eth_dev *dev,
+                               struct rte_eth_stats *igb_stats);
+/**< @internal Get global I/O statistics of an Ethernet device. */
+
+/**
+ * @internal
+ * Reset global I/O statistics of an Ethernet device to 0.
+ *
+ * @param dev
+ *   ethdev handle of port.
+ *
+ * @return
+ *   Negative errno value on error, 0 on success.
+ *
+ * @retval 0
+ *   Success, statistics has been reset.
+ * @retval -ENOTSUP
+ *   Resetting statistics is not supported.
+ * @retval -EINVAL
+ *   Resetting statistics is not valid.
+ * @retval -ENOMEM
+ *   Not enough memory to get the stats.
+ */
+typedef int (*eth_stats_reset_t)(struct rte_eth_dev *dev);
+
+typedef int (*eth_xstats_get_t)(struct rte_eth_dev *dev,
+       struct rte_eth_xstat *stats, unsigned int n);
+/**< @internal Get extended stats of an Ethernet device. */
+
+typedef int (*eth_xstats_get_by_id_t)(struct rte_eth_dev *dev,
+                                     const uint64_t *ids,
+                                     uint64_t *values,
+                                     unsigned int n);
+/**< @internal Get extended stats of an Ethernet device. */
+
+/**
+ * @internal
+ * Reset extended stats of an Ethernet device.
+ *
+ * @param dev
+ *   ethdev handle of port.
+ *
+ * @return
+ *   Negative errno value on error, 0 on success.
+ *
+ * @retval 0
+ *   Success, statistics has been reset.
+ * @retval -ENOTSUP
+ *   Resetting statistics is not supported.
+ * @retval -EINVAL
+ *   Resetting statistics is not valid.
+ * @retval -ENOMEM
+ *   Not enough memory to get the stats.
+ */
+typedef int (*eth_xstats_reset_t)(struct rte_eth_dev *dev);
+
+typedef int (*eth_xstats_get_names_t)(struct rte_eth_dev *dev,
+       struct rte_eth_xstat_name *xstats_names, unsigned int size);
+/**< @internal Get names of extended stats of an Ethernet device. */
+
+typedef int (*eth_xstats_get_names_by_id_t)(struct rte_eth_dev *dev,
+       struct rte_eth_xstat_name *xstats_names, const uint64_t *ids,
+       unsigned int size);
+/**< @internal Get names of extended stats of an Ethernet device. */
+
+typedef int (*eth_queue_stats_mapping_set_t)(struct rte_eth_dev *dev,
+                                            uint16_t queue_id,
+                                            uint8_t stat_idx,
+                                            uint8_t is_rx);
+/**< @internal Set a queue statistics mapping for a tx/rx queue of an Ethernet device. */
+
+typedef int (*eth_dev_infos_get_t)(struct rte_eth_dev *dev,
+                                  struct rte_eth_dev_info *dev_info);
+/**< @internal Get specific information of an Ethernet device. */
+
+typedef const uint32_t *(*eth_dev_supported_ptypes_get_t)(struct rte_eth_dev *dev);
+/**< @internal Get supported ptypes of an Ethernet device. */
+
+/**
+ * @internal
+ * Inform Ethernet device about reduced range of packet types to handle.
+ *
+ * @param dev
+ *   The Ethernet device identifier.
+ * @param ptype_mask
+ *   The ptype family that application is interested in should be bitwise OR of
+ *   RTE_PTYPE_*_MASK or 0.
+ * @return
+ *   - (0) if Success.
+ */
+typedef int (*eth_dev_ptypes_set_t)(struct rte_eth_dev *dev,
+                                    uint32_t ptype_mask);
+
+typedef int (*eth_queue_start_t)(struct rte_eth_dev *dev,
+                                   uint16_t queue_id);
+/**< @internal Start rx and tx of a queue of an Ethernet device. */
+
+typedef int (*eth_queue_stop_t)(struct rte_eth_dev *dev,
+                                   uint16_t queue_id);
+/**< @internal Stop rx and tx of a queue of an Ethernet device. */
+
+typedef int (*eth_rx_queue_setup_t)(struct rte_eth_dev *dev,
+                                   uint16_t rx_queue_id,
+                                   uint16_t nb_rx_desc,
+                                   unsigned int socket_id,
+                                   const struct rte_eth_rxconf *rx_conf,
+                                   struct rte_mempool *mb_pool);
+/**< @internal Set up a receive queue of an Ethernet device. */
+
+typedef int (*eth_tx_queue_setup_t)(struct rte_eth_dev *dev,
+                                   uint16_t tx_queue_id,
+                                   uint16_t nb_tx_desc,
+                                   unsigned int socket_id,
+                                   const struct rte_eth_txconf *tx_conf);
+/**< @internal Setup a transmit queue of an Ethernet device. */
+
+typedef int (*eth_rx_enable_intr_t)(struct rte_eth_dev *dev,
+                                   uint16_t rx_queue_id);
+/**< @internal Enable interrupt of a receive queue of an Ethernet device. */
+
+typedef int (*eth_rx_disable_intr_t)(struct rte_eth_dev *dev,
+                                   uint16_t rx_queue_id);
+/**< @internal Disable interrupt of a receive queue of an Ethernet device. */
+
+typedef void (*eth_queue_release_t)(void *queue);
+/**< @internal Release memory resources allocated by given RX/TX queue. */
+
+typedef int (*eth_fw_version_get_t)(struct rte_eth_dev *dev,
+                                    char *fw_version, size_t fw_size);
+/**< @internal Get firmware information of an Ethernet device. */
+
+typedef int (*eth_tx_done_cleanup_t)(void *txq, uint32_t free_cnt);
+/**< @internal Force mbufs to be from TX ring. */
+
+typedef void (*eth_rxq_info_get_t)(struct rte_eth_dev *dev,
+       uint16_t rx_queue_id, struct rte_eth_rxq_info *qinfo);
+
+typedef void (*eth_txq_info_get_t)(struct rte_eth_dev *dev,
+       uint16_t tx_queue_id, struct rte_eth_txq_info *qinfo);
+
+typedef int (*eth_burst_mode_get_t)(struct rte_eth_dev *dev,
+       uint16_t queue_id, struct rte_eth_burst_mode *mode);
+
+typedef int (*mtu_set_t)(struct rte_eth_dev *dev, uint16_t mtu);
+/**< @internal Set MTU. */
+
+typedef int (*vlan_filter_set_t)(struct rte_eth_dev *dev,
+                                 uint16_t vlan_id,
+                                 int on);
+/**< @internal filtering of a VLAN Tag Identifier by an Ethernet device. */
+
+typedef int (*vlan_tpid_set_t)(struct rte_eth_dev *dev,
+                              enum rte_vlan_type type, uint16_t tpid);
+/**< @internal set the outer/inner VLAN-TPID by an Ethernet device. */
+
+typedef int (*vlan_offload_set_t)(struct rte_eth_dev *dev, int mask);
+/**< @internal set VLAN offload function by an Ethernet device. */
+
+typedef int (*vlan_pvid_set_t)(struct rte_eth_dev *dev,
+                              uint16_t vlan_id,
+                              int on);
+/**< @internal set port based TX VLAN insertion by an Ethernet device. */
+
+typedef void (*vlan_strip_queue_set_t)(struct rte_eth_dev *dev,
+                                 uint16_t rx_queue_id,
+                                 int on);
+/**< @internal VLAN stripping enable/disable by an queue of Ethernet device. */
+
+typedef int (*flow_ctrl_get_t)(struct rte_eth_dev *dev,
+                              struct rte_eth_fc_conf *fc_conf);
+/**< @internal Get current flow control parameter on an Ethernet device */
+
+typedef int (*flow_ctrl_set_t)(struct rte_eth_dev *dev,
+                              struct rte_eth_fc_conf *fc_conf);
+/**< @internal Setup flow control parameter on an Ethernet device */
+
+typedef int (*priority_flow_ctrl_set_t)(struct rte_eth_dev *dev,
+                               struct rte_eth_pfc_conf *pfc_conf);
+/**< @internal Setup priority flow control parameter on an Ethernet device */
+
+typedef int (*reta_update_t)(struct rte_eth_dev *dev,
+                            struct rte_eth_rss_reta_entry64 *reta_conf,
+                            uint16_t reta_size);
+/**< @internal Update RSS redirection table on an Ethernet device */
+
+typedef int (*reta_query_t)(struct rte_eth_dev *dev,
+                           struct rte_eth_rss_reta_entry64 *reta_conf,
+                           uint16_t reta_size);
+/**< @internal Query RSS redirection table on an Ethernet device */
+
+typedef int (*rss_hash_update_t)(struct rte_eth_dev *dev,
+                                struct rte_eth_rss_conf *rss_conf);
+/**< @internal Update RSS hash configuration of an Ethernet device */
+
+typedef int (*rss_hash_conf_get_t)(struct rte_eth_dev *dev,
+                                  struct rte_eth_rss_conf *rss_conf);
+/**< @internal Get current RSS hash configuration of an Ethernet device */
+
+typedef int (*eth_dev_led_on_t)(struct rte_eth_dev *dev);
+/**< @internal Turn on SW controllable LED on an Ethernet device */
+
+typedef int (*eth_dev_led_off_t)(struct rte_eth_dev *dev);
+/**< @internal Turn off SW controllable LED on an Ethernet device */
+
+typedef void (*eth_mac_addr_remove_t)(struct rte_eth_dev *dev, uint32_t index);
+/**< @internal Remove MAC address from receive address register */
+
+typedef int (*eth_mac_addr_add_t)(struct rte_eth_dev *dev,
+                                 struct rte_ether_addr *mac_addr,
+                                 uint32_t index,
+                                 uint32_t vmdq);
+/**< @internal Set a MAC address into Receive Address Register */
+
+typedef int (*eth_mac_addr_set_t)(struct rte_eth_dev *dev,
+                                 struct rte_ether_addr *mac_addr);
+/**< @internal Set a MAC address into Receive Address Register */
+
+typedef int (*eth_uc_hash_table_set_t)(struct rte_eth_dev *dev,
+                                 struct rte_ether_addr *mac_addr,
+                                 uint8_t on);
+/**< @internal Set a Unicast Hash bitmap */
+
+typedef int (*eth_uc_all_hash_table_set_t)(struct rte_eth_dev *dev,
+                                 uint8_t on);
+/**< @internal Set all Unicast Hash bitmap */
+
+typedef int (*eth_set_queue_rate_limit_t)(struct rte_eth_dev *dev,
+                               uint16_t queue_idx,
+                               uint16_t tx_rate);
+/**< @internal Set queue TX rate */
+
+typedef int (*eth_mirror_rule_set_t)(struct rte_eth_dev *dev,
+                                 struct rte_eth_mirror_conf *mirror_conf,
+                                 uint8_t rule_id,
+                                 uint8_t on);
+/**< @internal Add a traffic mirroring rule on an Ethernet device */
+
+typedef int (*eth_mirror_rule_reset_t)(struct rte_eth_dev *dev,
+                                 uint8_t rule_id);
+/**< @internal Remove a traffic mirroring rule on an Ethernet device */
+
+typedef int (*eth_udp_tunnel_port_add_t)(struct rte_eth_dev *dev,
+                                        struct rte_eth_udp_tunnel *tunnel_udp);
+/**< @internal Add tunneling UDP port */
+
+typedef int (*eth_udp_tunnel_port_del_t)(struct rte_eth_dev *dev,
+                                        struct rte_eth_udp_tunnel *tunnel_udp);
+/**< @internal Delete tunneling UDP port */
+
+typedef int (*eth_set_mc_addr_list_t)(struct rte_eth_dev *dev,
+                                     struct rte_ether_addr *mc_addr_set,
+                                     uint32_t nb_mc_addr);
+/**< @internal set the list of multicast addresses on an Ethernet device */
+
+typedef int (*eth_timesync_enable_t)(struct rte_eth_dev *dev);
+/**< @internal Function used to enable IEEE1588/802.1AS timestamping. */
+
+typedef int (*eth_timesync_disable_t)(struct rte_eth_dev *dev);
+/**< @internal Function used to disable IEEE1588/802.1AS timestamping. */
+
+typedef int (*eth_timesync_read_rx_timestamp_t)(struct rte_eth_dev *dev,
+                                               struct timespec *timestamp,
+                                               uint32_t flags);
+/**< @internal Function used to read an RX IEEE1588/802.1AS timestamp. */
+
+typedef int (*eth_timesync_read_tx_timestamp_t)(struct rte_eth_dev *dev,
+                                               struct timespec *timestamp);
+/**< @internal Function used to read a TX IEEE1588/802.1AS timestamp. */
+
+typedef int (*eth_timesync_adjust_time)(struct rte_eth_dev *dev, int64_t);
+/**< @internal Function used to adjust the device clock */
+
+typedef int (*eth_timesync_read_time)(struct rte_eth_dev *dev,
+                                     struct timespec *timestamp);
+/**< @internal Function used to get time from the device clock. */
+
+typedef int (*eth_timesync_write_time)(struct rte_eth_dev *dev,
+                                      const struct timespec *timestamp);
+/**< @internal Function used to get time from the device clock */
+
+typedef int (*eth_read_clock)(struct rte_eth_dev *dev,
+                                     uint64_t *timestamp);
+/**< @internal Function used to get the current value of the device clock. */
+
+typedef int (*eth_get_reg_t)(struct rte_eth_dev *dev,
+                               struct rte_dev_reg_info *info);
+/**< @internal Retrieve registers  */
+
+typedef int (*eth_get_eeprom_length_t)(struct rte_eth_dev *dev);
+/**< @internal Retrieve eeprom size  */
+
+typedef int (*eth_get_eeprom_t)(struct rte_eth_dev *dev,
+                               struct rte_dev_eeprom_info *info);
+/**< @internal Retrieve eeprom data  */
+
+typedef int (*eth_set_eeprom_t)(struct rte_eth_dev *dev,
+                               struct rte_dev_eeprom_info *info);
+/**< @internal Program eeprom data  */
+
+typedef int (*eth_get_module_info_t)(struct rte_eth_dev *dev,
+                                    struct rte_eth_dev_module_info *modinfo);
+/**< @internal Retrieve type and size of plugin module eeprom */
+
+typedef int (*eth_get_module_eeprom_t)(struct rte_eth_dev *dev,
+                                      struct rte_dev_eeprom_info *info);
+/**< @internal Retrieve plugin module eeprom data */
+
+/**
+ * Feature filter types
+ */
+enum rte_filter_type {
+       RTE_ETH_FILTER_NONE = 0,
+       RTE_ETH_FILTER_ETHERTYPE,
+       RTE_ETH_FILTER_FLEXIBLE,
+       RTE_ETH_FILTER_SYN,
+       RTE_ETH_FILTER_NTUPLE,
+       RTE_ETH_FILTER_TUNNEL,
+       RTE_ETH_FILTER_FDIR,
+       RTE_ETH_FILTER_HASH,
+       RTE_ETH_FILTER_L2_TUNNEL,
+       RTE_ETH_FILTER_GENERIC,
+};
+
+/**
+ * Generic operations on filters
+ */
+enum rte_filter_op {
+       RTE_ETH_FILTER_GET,      /**< get flow API ops */
+};
+
+typedef int (*eth_filter_ctrl_t)(struct rte_eth_dev *dev,
+                                enum rte_filter_type filter_type,
+                                enum rte_filter_op filter_op,
+                                void *arg);
+/**< @internal Take operations to assigned filter type on an Ethernet device */
+
+typedef int (*eth_tm_ops_get_t)(struct rte_eth_dev *dev, void *ops);
+/**< @internal Get Traffic Management (TM) operations on an Ethernet device */
+
+typedef int (*eth_mtr_ops_get_t)(struct rte_eth_dev *dev, void *ops);
+/**< @internal Get Traffic Metering and Policing (MTR) operations */
+
+typedef int (*eth_get_dcb_info)(struct rte_eth_dev *dev,
+                                struct rte_eth_dcb_info *dcb_info);
+/**< @internal Get dcb information on an Ethernet device */
+
+typedef int (*eth_pool_ops_supported_t)(struct rte_eth_dev *dev,
+                                               const char *pool);
+/**< @internal Test if a port supports specific mempool ops */
+
+/**
+ * @internal
+ * Get the hairpin capabilities.
+ *
+ * @param dev
+ *   ethdev handle of port.
+ * @param cap
+ *   returns the hairpin capabilities from the device.
+ *
+ * @return
+ *   Negative errno value on error, 0 on success.
+ *
+ * @retval 0
+ *   Success, hairpin is supported.
+ * @retval -ENOTSUP
+ *   Hairpin is not supported.
+ */
+typedef int (*eth_hairpin_cap_get_t)(struct rte_eth_dev *dev,
+                                    struct rte_eth_hairpin_cap *cap);
+
+/**
+ * @internal
+ * Setup RX hairpin queue.
+ *
+ * @param dev
+ *   ethdev handle of port.
+ * @param rx_queue_id
+ *   the selected RX queue index.
+ * @param nb_rx_desc
+ *   the requested number of descriptors for this queue. 0 - use PMD default.
+ * @param conf
+ *   the RX hairpin configuration structure.
+ *
+ * @return
+ *   Negative errno value on error, 0 on success.
+ *
+ * @retval 0
+ *   Success, hairpin is supported.
+ * @retval -ENOTSUP
+ *   Hairpin is not supported.
+ * @retval -EINVAL
+ *   One of the parameters is invalid.
+ * @retval -ENOMEM
+ *   Unable to allocate resources.
+ */
+typedef int (*eth_rx_hairpin_queue_setup_t)
+       (struct rte_eth_dev *dev, uint16_t rx_queue_id,
+        uint16_t nb_rx_desc,
+        const struct rte_eth_hairpin_conf *conf);
+
+/**
+ * @internal
+ * Setup TX hairpin queue.
+ *
+ * @param dev
+ *   ethdev handle of port.
+ * @param tx_queue_id
+ *   the selected TX queue index.
+ * @param nb_tx_desc
+ *   the requested number of descriptors for this queue. 0 - use PMD default.
+ * @param conf
+ *   the TX hairpin configuration structure.
+ *
+ * @return
+ *   Negative errno value on error, 0 on success.
+ *
+ * @retval 0
+ *   Success, hairpin is supported.
+ * @retval -ENOTSUP
+ *   Hairpin is not supported.
+ * @retval -EINVAL
+ *   One of the parameters is invalid.
+ * @retval -ENOMEM
+ *   Unable to allocate resources.
+ */
+typedef int (*eth_tx_hairpin_queue_setup_t)
+       (struct rte_eth_dev *dev, uint16_t tx_queue_id,
+        uint16_t nb_tx_desc,
+        const struct rte_eth_hairpin_conf *hairpin_conf);
+
+/**
+ * @internal
+ * Get Forward Error Correction(FEC) capability.
+ *
+ * @param dev
+ *   ethdev handle of port.
+ * @param speed_fec_capa
+ *   speed_fec_capa is out only with per-speed capabilities.
+ * @param num
+ *   a number of elements in an speed_fec_capa array.
+ *
+ * @return
+ *   Negative errno value on error, positive value on success.
+ *
+ * @retval positive value
+ *   A non-negative value lower or equal to num: success. The return value
+ *   is the number of entries filled in the fec capa array.
+ *   A non-negative value higher than num: error, the given fec capa array
+ *   is too small. The return value corresponds to the num that should
+ *   be given to succeed. The entries in the fec capa array are not valid
+ *   and shall not be used by the caller.
+ * @retval -ENOTSUP
+ *   Operation is not supported.
+ * @retval -EIO
+ *   Device is removed.
+ * @retval -EINVAL
+ *   *num* or *speed_fec_capa* invalid.
+ */
+typedef int (*eth_fec_get_capability_t)(struct rte_eth_dev *dev,
+               struct rte_eth_fec_capa *speed_fec_capa, unsigned int num);
+
+/**
+ * @internal
+ * Get Forward Error Correction(FEC) mode.
+ *
+ * @param dev
+ *   ethdev handle of port.
+ * @param fec_capa
+ *   a bitmask of enabled FEC modes. If AUTO bit is set, other
+ *   bits specify FEC modes which may be negotiated. If AUTO
+ *   bit is clear, specify FEC modes to be used (only one valid
+ *   mode per speed may be set).
+ *
+ * @return
+ *   Negative errno value on error, 0 on success.
+ *
+ * @retval 0
+ *   Success, get FEC success.
+ * @retval -ENOTSUP
+ *   Operation is not supported.
+ * @retval -EIO
+ *   Device is removed.
+ */
+typedef int (*eth_fec_get_t)(struct rte_eth_dev *dev,
+                            uint32_t *fec_capa);
+
+/**
+ * @internal
+ * Set Forward Error Correction(FEC) mode.
+ *
+ * @param dev
+ *   ethdev handle of port.
+ * @param fec_capa
+ *   bitmask of allowed FEC modes. It must be only one
+ *   if AUTO is disabled. If AUTO is enabled, other
+ *   bits specify FEC modes which may be negotiated.
+ *
+ * @return
+ *   Negative errno value on error, 0 on success.
+ *
+ * @retval 0
+ *   Success, set FEC success.
+ * @retval -ENOTSUP
+ *   Operation is not supported.
+ * @retval -EINVAL
+ *   Unsupported FEC mode requested.
+ * @retval -EIO
+ *   Device is removed.
+ */
+typedef int (*eth_fec_set_t)(struct rte_eth_dev *dev, uint32_t fec_capa);
+
+/**
+ * @internal
+ * Get all hairpin Tx/Rx peer ports of the current device, if any.
+ *
+ * @param dev
+ *   ethdev handle of port.
+ * @param peer_ports
+ *   array to save the ports list.
+ * @param len
+ *   array length.
+ * @param direction
+ *   value to decide the current to peer direction
+ *   positive - used as Tx to get all peer Rx ports.
+ *   zero - used as Rx to get all peer Tx ports.
+ *
+ * @return
+ *   Negative errno value on error, 0 or positive on success.
+ *
+ * @retval 0
+ *   Success, no peer ports.
+ * @retval >0
+ *   Actual number of the peer ports.
+ * @retval -ENOTSUP
+ *   Get peer ports API is not supported.
+ * @retval -EINVAL
+ *   One of the parameters is invalid.
+ */
+typedef int (*hairpin_get_peer_ports_t)(struct rte_eth_dev *dev,
+                                       uint16_t *peer_ports, size_t len,
+                                       uint32_t direction);
+
+/**
+ * @internal
+ * Bind all hairpin Tx queues of one port to the Rx queues of the peer port.
+ *
+ * @param dev
+ *   ethdev handle of port.
+ * @param rx_port
+ *   the peer Rx port.
+ *
+ * @return
+ *   Negative errno value on error, 0 on success.
+ *
+ * @retval 0
+ *   Success, bind successfully.
+ * @retval -ENOTSUP
+ *   Bind API is not supported.
+ * @retval -EINVAL
+ *   One of the parameters is invalid.
+ * @retval -EBUSY
+ *   Device is not started.
+ */
+typedef int (*eth_hairpin_bind_t)(struct rte_eth_dev *dev,
+                               uint16_t rx_port);
+
+/**
+ * @internal
+ * Unbind all hairpin Tx queues of one port from the Rx queues of the peer port.
+ *
+ * @param dev
+ *   ethdev handle of port.
+ * @param rx_port
+ *   the peer Rx port.
+ *
+ * @return
+ *   Negative errno value on error, 0 on success.
+ *
+ * @retval 0
+ *   Success, unbind successfully.
+ * @retval -ENOTSUP
+ *   Bind API is not supported.
+ * @retval -EINVAL
+ *   One of the parameters is invalid.
+ * @retval -EBUSY
+ *   Device is already stopped.
+ */
+typedef int (*eth_hairpin_unbind_t)(struct rte_eth_dev *dev,
+                                 uint16_t rx_port);
+
+typedef int (*eth_hairpin_queue_peer_update_t)
+       (struct rte_eth_dev *dev, uint16_t peer_queue,
+        struct rte_hairpin_peer_info *current_info,
+        struct rte_hairpin_peer_info *peer_info, uint32_t direction);
+/**< @internal Update and fetch peer queue information. */
+
+typedef int (*eth_hairpin_queue_peer_bind_t)
+       (struct rte_eth_dev *dev, uint16_t cur_queue,
+        struct rte_hairpin_peer_info *peer_info, uint32_t direction);
+/**< @internal Bind peer queue to the current queue with fetched information. */
+
+typedef int (*eth_hairpin_queue_peer_unbind_t)
+       (struct rte_eth_dev *dev, uint16_t cur_queue, uint32_t direction);
+/**< @internal Unbind peer queue from the current queue. */
+
+/**
+ * @internal
+ * Get address of memory location whose contents will change whenever there is
+ * new data to be received on an Rx queue.
+ *
+ * @param rxq
+ *   Ethdev queue pointer.
+ * @param pmc
+ *   The pointer to power-optimized monitoring condition structure.
+ * @return
+ *   Negative errno value on error, 0 on success.
+ *
+ * @retval 0
+ *   Success
+ * @retval -EINVAL
+ *   Invalid parameters
+ */
+typedef int (*eth_get_monitor_addr_t)(void *rxq,
+               struct rte_power_monitor_cond *pmc);
+
+/**
+ * @internal A structure containing the functions exported by an Ethernet driver.
+ */
+struct eth_dev_ops {
+       eth_dev_configure_t        dev_configure; /**< Configure device. */
+       eth_dev_start_t            dev_start;     /**< Start device. */
+       eth_dev_stop_t             dev_stop;      /**< Stop device. */
+       eth_dev_set_link_up_t      dev_set_link_up;   /**< Device link up. */
+       eth_dev_set_link_down_t    dev_set_link_down; /**< Device link down. */
+       eth_dev_close_t            dev_close;     /**< Close device. */
+       eth_dev_reset_t            dev_reset;     /**< Reset device. */
+       eth_link_update_t          link_update;   /**< Get device link state. */
+       eth_is_removed_t           is_removed;
+       /**< Check if the device was physically removed. */
+
+       eth_promiscuous_enable_t   promiscuous_enable; /**< Promiscuous ON. */
+       eth_promiscuous_disable_t  promiscuous_disable;/**< Promiscuous OFF. */
+       eth_allmulticast_enable_t  allmulticast_enable;/**< RX multicast ON. */
+       eth_allmulticast_disable_t allmulticast_disable;/**< RX multicast OFF. */
+       eth_mac_addr_remove_t      mac_addr_remove; /**< Remove MAC address. */
+       eth_mac_addr_add_t         mac_addr_add;  /**< Add a MAC address. */
+       eth_mac_addr_set_t         mac_addr_set;  /**< Set a MAC address. */
+       eth_set_mc_addr_list_t     set_mc_addr_list; /**< set list of mcast addrs. */
+       mtu_set_t                  mtu_set;       /**< Set MTU. */
+
+       eth_stats_get_t            stats_get;     /**< Get generic device statistics. */
+       eth_stats_reset_t          stats_reset;   /**< Reset generic device statistics. */
+       eth_xstats_get_t           xstats_get;    /**< Get extended device statistics. */
+       eth_xstats_reset_t         xstats_reset;  /**< Reset extended device statistics. */
+       eth_xstats_get_names_t     xstats_get_names;
+       /**< Get names of extended statistics. */
+       eth_queue_stats_mapping_set_t queue_stats_mapping_set;
+       /**< Configure per queue stat counter mapping. */
+
+       eth_dev_infos_get_t        dev_infos_get; /**< Get device info. */
+       eth_rxq_info_get_t         rxq_info_get; /**< retrieve RX queue information. */
+       eth_txq_info_get_t         txq_info_get; /**< retrieve TX queue information. */
+       eth_burst_mode_get_t       rx_burst_mode_get; /**< Get RX burst mode */
+       eth_burst_mode_get_t       tx_burst_mode_get; /**< Get TX burst mode */
+       eth_fw_version_get_t       fw_version_get; /**< Get firmware version. */
+       eth_dev_supported_ptypes_get_t dev_supported_ptypes_get;
+       /**< Get packet types supported and identified by device. */
+       eth_dev_ptypes_set_t dev_ptypes_set;
+       /**< Inform Ethernet device about reduced range of packet types to handle. */
+
+       vlan_filter_set_t          vlan_filter_set; /**< Filter VLAN Setup. */
+       vlan_tpid_set_t            vlan_tpid_set; /**< Outer/Inner VLAN TPID Setup. */
+       vlan_strip_queue_set_t     vlan_strip_queue_set; /**< VLAN Stripping on queue. */
+       vlan_offload_set_t         vlan_offload_set; /**< Set VLAN Offload. */
+       vlan_pvid_set_t            vlan_pvid_set; /**< Set port based TX VLAN insertion. */
+
+       eth_queue_start_t          rx_queue_start;/**< Start RX for a queue. */
+       eth_queue_stop_t           rx_queue_stop; /**< Stop RX for a queue. */
+       eth_queue_start_t          tx_queue_start;/**< Start TX for a queue. */
+       eth_queue_stop_t           tx_queue_stop; /**< Stop TX for a queue. */
+       eth_rx_queue_setup_t       rx_queue_setup;/**< Set up device RX queue. */
+       eth_queue_release_t        rx_queue_release; /**< Release RX queue. */
+
+       eth_rx_enable_intr_t       rx_queue_intr_enable;  /**< Enable Rx queue interrupt. */
+       eth_rx_disable_intr_t      rx_queue_intr_disable; /**< Disable Rx queue interrupt. */
+       eth_tx_queue_setup_t       tx_queue_setup;/**< Set up device TX queue. */
+       eth_queue_release_t        tx_queue_release; /**< Release TX queue. */
+       eth_tx_done_cleanup_t      tx_done_cleanup;/**< Free tx ring mbufs */
+
+       eth_dev_led_on_t           dev_led_on;    /**< Turn on LED. */
+       eth_dev_led_off_t          dev_led_off;   /**< Turn off LED. */
+
+       flow_ctrl_get_t            flow_ctrl_get; /**< Get flow control. */
+       flow_ctrl_set_t            flow_ctrl_set; /**< Setup flow control. */
+       priority_flow_ctrl_set_t   priority_flow_ctrl_set; /**< Setup priority flow control. */
+
+       eth_uc_hash_table_set_t    uc_hash_table_set; /**< Set Unicast Table Array. */
+       eth_uc_all_hash_table_set_t uc_all_hash_table_set; /**< Set Unicast hash bitmap. */
+
+       eth_mirror_rule_set_t      mirror_rule_set; /**< Add a traffic mirror rule. */
+       eth_mirror_rule_reset_t    mirror_rule_reset; /**< reset a traffic mirror rule. */
+
+       eth_udp_tunnel_port_add_t  udp_tunnel_port_add; /** Add UDP tunnel port. */
+       eth_udp_tunnel_port_del_t  udp_tunnel_port_del; /** Del UDP tunnel port. */
+
+       eth_set_queue_rate_limit_t set_queue_rate_limit; /**< Set queue rate limit. */
+
+       rss_hash_update_t          rss_hash_update; /** Configure RSS hash protocols. */
+       rss_hash_conf_get_t        rss_hash_conf_get; /** Get current RSS hash configuration. */
+       reta_update_t              reta_update;   /** Update redirection table. */
+       reta_query_t               reta_query;    /** Query redirection table. */
+
+       eth_get_reg_t              get_reg;           /**< Get registers. */
+       eth_get_eeprom_length_t    get_eeprom_length; /**< Get eeprom length. */
+       eth_get_eeprom_t           get_eeprom;        /**< Get eeprom data. */
+       eth_set_eeprom_t           set_eeprom;        /**< Set eeprom. */
+
+       eth_get_module_info_t      get_module_info;
+       /** Get plugin module eeprom attribute. */
+       eth_get_module_eeprom_t    get_module_eeprom;
+       /** Get plugin module eeprom data. */
+
+       eth_filter_ctrl_t          filter_ctrl; /**< common filter control. */
+
+       eth_get_dcb_info           get_dcb_info; /** Get DCB information. */
+
+       eth_timesync_enable_t      timesync_enable;
+       /** Turn IEEE1588/802.1AS timestamping on. */
+       eth_timesync_disable_t     timesync_disable;
+       /** Turn IEEE1588/802.1AS timestamping off. */
+       eth_timesync_read_rx_timestamp_t timesync_read_rx_timestamp;
+       /** Read the IEEE1588/802.1AS RX timestamp. */
+       eth_timesync_read_tx_timestamp_t timesync_read_tx_timestamp;
+       /** Read the IEEE1588/802.1AS TX timestamp. */
+       eth_timesync_adjust_time   timesync_adjust_time; /** Adjust the device clock. */
+       eth_timesync_read_time     timesync_read_time; /** Get the device clock time. */
+       eth_timesync_write_time    timesync_write_time; /** Set the device clock time. */
+
+       eth_read_clock             read_clock;
+
+       eth_xstats_get_by_id_t     xstats_get_by_id;
+       /**< Get extended device statistic values by ID. */
+       eth_xstats_get_names_by_id_t xstats_get_names_by_id;
+       /**< Get name of extended device statistics by ID. */
+
+       eth_tm_ops_get_t tm_ops_get;
+       /**< Get Traffic Management (TM) operations. */
+
+       eth_mtr_ops_get_t mtr_ops_get;
+       /**< Get Traffic Metering and Policing (MTR) operations. */
+
+       eth_pool_ops_supported_t pool_ops_supported;
+       /**< Test if a port supports specific mempool ops */
+
+       eth_hairpin_cap_get_t hairpin_cap_get;
+       /**< Returns the hairpin capabilities. */
+       eth_rx_hairpin_queue_setup_t rx_hairpin_queue_setup;
+       /**< Set up device RX hairpin queue. */
+       eth_tx_hairpin_queue_setup_t tx_hairpin_queue_setup;
+       /**< Set up device TX hairpin queue. */
+
+       eth_fec_get_capability_t fec_get_capability;
+       /**< Get Forward Error Correction(FEC) capability. */
+       eth_fec_get_t fec_get;
+       /**< Get Forward Error Correction(FEC) mode. */
+       eth_fec_set_t fec_set;
+       /**< Set Forward Error Correction(FEC) mode. */
+       hairpin_get_peer_ports_t hairpin_get_peer_ports;
+       /**< Get hairpin peer ports list. */
+       eth_hairpin_bind_t hairpin_bind;
+       /**< Bind all hairpin Tx queues of device to the peer port Rx queues. */
+       eth_hairpin_unbind_t hairpin_unbind;
+       /**< Unbind all hairpin Tx queues from the peer port Rx queues. */
+       eth_hairpin_queue_peer_update_t hairpin_queue_peer_update;
+       /**< Pass the current queue info and get the peer queue info. */
+       eth_hairpin_queue_peer_bind_t hairpin_queue_peer_bind;
+       /**< Set up the connection between the pair of hairpin queues. */
+       eth_hairpin_queue_peer_unbind_t hairpin_queue_peer_unbind;
+       /**< Disconnect the hairpin queues of a pair from each other. */
+
+       eth_get_monitor_addr_t get_monitor_addr;
+       /**< Get power monitoring condition for Rx queue. */
+};
+
+/**
+ * RX/TX queue states
+ */
+#define RTE_ETH_QUEUE_STATE_STOPPED 0
+#define RTE_ETH_QUEUE_STATE_STARTED 1
+#define RTE_ETH_QUEUE_STATE_HAIRPIN 2
+
+/**
+ * @internal
+ * Check if the selected Rx queue is hairpin queue.
+ *
+ * @param dev
+ *  Pointer to the selected device.
+ * @param queue_id
+ *  The selected queue.
+ *
+ * @return
+ *   - (1) if the queue is hairpin queue, 0 otherwise.
+ */
+__rte_internal
+int rte_eth_dev_is_rx_hairpin_queue(struct rte_eth_dev *dev, uint16_t queue_id);
+
+/**
+ * @internal
+ * Check if the selected Tx queue is hairpin queue.
+ *
+ * @param dev
+ *  Pointer to the selected device.
+ * @param queue_id
+ *  The selected queue.
+ *
+ * @return
+ *   - (1) if the queue is hairpin queue, 0 otherwise.
+ */
+__rte_internal
+int rte_eth_dev_is_tx_hairpin_queue(struct rte_eth_dev *dev, uint16_t queue_id);
+
+/**
+ * @internal
+ * Returns a ethdev slot specified by the unique identifier name.
+ *
+ * @param      name
+ *  The pointer to the Unique identifier name for each Ethernet device
+ * @return
+ *   - The pointer to the ethdev slot, on success. NULL on error
+ */
+__rte_internal
+struct rte_eth_dev *rte_eth_dev_allocated(const char *name);
+
+/**
+ * @internal
+ * Allocates a new ethdev slot for an ethernet device and returns the pointer
+ * to that slot for the driver to use.
+ *
+ * @param      name    Unique identifier name for each Ethernet device
+ * @return
+ *   - Slot in the rte_dev_devices array for a new device;
+ */
+__rte_internal
+struct rte_eth_dev *rte_eth_dev_allocate(const char *name);
+
+/**
+ * @internal
+ * Attach to the ethdev already initialized by the primary
+ * process.
+ *
+ * @param       name    Ethernet device's name.
+ * @return
+ *   - Success: Slot in the rte_dev_devices array for attached
+ *        device.
+ *   - Error: Null pointer.
+ */
+__rte_internal
+struct rte_eth_dev *rte_eth_dev_attach_secondary(const char *name);
+
+/**
+ * @internal
+ * Notify RTE_ETH_EVENT_DESTROY and release the specified ethdev port.
+ *
+ * The following PMD-managed data fields will be freed:
+ *   - dev_private
+ *   - mac_addrs
+ *   - hash_mac_addrs
+ * If one of these fields should not be freed,
+ * it must be reset to NULL by the PMD, typically in dev_close method.
+ *
+ * @param eth_dev
+ * Device to be detached.
+ * @return
+ *   - 0 on success, negative on error
+ */
+__rte_internal
+int rte_eth_dev_release_port(struct rte_eth_dev *eth_dev);
+
+/**
+ * @internal
+ * Release device queues and clear its configuration to force the user
+ * application to reconfigure it. It is for internal use only.
+ *
+ * @param dev
+ *  Pointer to struct rte_eth_dev.
+ *
+ * @return
+ *  void
+ */
+__rte_internal
+void rte_eth_dev_internal_reset(struct rte_eth_dev *dev);
+
+/**
+ * @internal Executes all the user application registered callbacks for
+ * the specific device. It is for DPDK internal user only. User
+ * application should not call it directly.
+ *
+ * @param dev
+ *  Pointer to struct rte_eth_dev.
+ * @param event
+ *  Eth device interrupt event type.
+ * @param ret_param
+ *  To pass data back to user application.
+ *  This allows the user application to decide if a particular function
+ *  is permitted or not.
+ *
+ * @return
+ *  int
+ */
+__rte_internal
+int rte_eth_dev_callback_process(struct rte_eth_dev *dev,
+               enum rte_eth_event_type event, void *ret_param);
+
+/**
+ * @internal
+ * This is the last step of device probing.
+ * It must be called after a port is allocated and initialized successfully.
+ *
+ * The notification RTE_ETH_EVENT_NEW is sent to other entities
+ * (libraries and applications).
+ * The state is set as RTE_ETH_DEV_ATTACHED.
+ *
+ * @param dev
+ *  New ethdev port.
+ */
+__rte_internal
+void rte_eth_dev_probing_finish(struct rte_eth_dev *dev);
+
+/**
+ * Create memzone for HW rings.
+ * malloc can't be used as the physical address is needed.
+ * If the memzone is already created, then this function returns a ptr
+ * to the old one.
+ *
+ * @param eth_dev
+ *   The *eth_dev* pointer is the address of the *rte_eth_dev* structure
+ * @param name
+ *   The name of the memory zone
+ * @param queue_id
+ *   The index of the queue to add to name
+ * @param size
+ *   The sizeof of the memory area
+ * @param align
+ *   Alignment for resulting memzone. Must be a power of 2.
+ * @param socket_id
+ *   The *socket_id* argument is the socket identifier in case of NUMA.
+ */
+__rte_internal
+const struct rte_memzone *
+rte_eth_dma_zone_reserve(const struct rte_eth_dev *eth_dev, const char *name,
+                        uint16_t queue_id, size_t size,
+                        unsigned align, int socket_id);
+
+/**
+ * Free previously allocated memzone for HW rings.
+ *
+ * @param eth_dev
+ *   The *eth_dev* pointer is the address of the *rte_eth_dev* structure
+ * @param name
+ *   The name of the memory zone
+ * @param queue_id
+ *   The index of the queue to add to name
+ * @return
+ *   Negative errno value on error, 0 on success.
+ */
+__rte_internal
+int
+rte_eth_dma_zone_free(const struct rte_eth_dev *eth_dev, const char *name,
+                uint16_t queue_id);
+
+/**
+ * @internal
+ * Atomically set the link status for the specific device.
+ * It is for use by DPDK device driver use only.
+ * User applications should not call it
+ *
+ * @param dev
+ *  Pointer to struct rte_eth_dev.
+ * @param link
+ *  New link status value.
+ * @return
+ *  Same convention as eth_link_update operation.
+ *  0   if link up status has changed
+ *  -1  if link up status was unchanged
+ */
+static inline int
+rte_eth_linkstatus_set(struct rte_eth_dev *dev,
+                      const struct rte_eth_link *new_link)
+{
+       uint64_t *dev_link = (uint64_t *)&(dev->data->dev_link);
+       union {
+               uint64_t val64;
+               struct rte_eth_link link;
+       } orig;
+
+       RTE_BUILD_BUG_ON(sizeof(*new_link) != sizeof(uint64_t));
+
+       orig.val64 = __atomic_exchange_n(dev_link, *(const uint64_t *)new_link,
+                                       __ATOMIC_SEQ_CST);
+
+       return (orig.link.link_status == new_link->link_status) ? -1 : 0;
+}
+
+/**
+ * @internal
+ * Atomically get the link speed and status.
+ *
+ * @param dev
+ *  Pointer to struct rte_eth_dev.
+ * @param link
+ *  link status value.
+ */
+static inline void
+rte_eth_linkstatus_get(const struct rte_eth_dev *dev,
+                      struct rte_eth_link *link)
+{
+       uint64_t *src = (uint64_t *)&(dev->data->dev_link);
+       uint64_t *dst = (uint64_t *)link;
+
+       RTE_BUILD_BUG_ON(sizeof(*link) != sizeof(uint64_t));
+
+       *dst = __atomic_load_n(src, __ATOMIC_SEQ_CST);
+}
+
+/**
+ * Allocate an unique switch domain identifier.
+ *
+ * A pool of switch domain identifiers which can be allocated on request. This
+ * will enabled devices which support the concept of switch domains to request
+ * a switch domain id which is guaranteed to be unique from other devices
+ * running in the same process.
+ *
+ * @param domain_id
+ *  switch domain identifier parameter to pass back to application
+ *
+ * @return
+ *   Negative errno value on error, 0 on success.
+ */
+__rte_internal
+int
+rte_eth_switch_domain_alloc(uint16_t *domain_id);
+
+/**
+ * Free switch domain.
+ *
+ * Return a switch domain identifier to the pool of free identifiers after it is
+ * no longer in use by device.
+ *
+ * @param domain_id
+ *  switch domain identifier to free
+ *
+ * @return
+ *   Negative errno value on error, 0 on success.
+ */
+__rte_internal
+int
+rte_eth_switch_domain_free(uint16_t domain_id);
+
+/** Generic Ethernet device arguments  */
+struct rte_eth_devargs {
+       uint16_t ports[RTE_MAX_ETHPORTS];
+       /** port/s number to enable on a multi-port single function */
+       uint16_t nb_ports;
+       /** number of ports in ports field */
+       uint16_t representor_ports[RTE_MAX_ETHPORTS];
+       /** representor port/s identifier to enable on device */
+       uint16_t nb_representor_ports;
+       /** number of ports in representor port field */
+};
+
+/**
+ * PMD helper function to parse ethdev arguments
+ *
+ * @param devargs
+ *  device arguments
+ * @param eth_devargs
+ *  parsed ethdev specific arguments.
+ *
+ * @return
+ *   Negative errno value on error, 0 on success.
+ */
+__rte_internal
+int
+rte_eth_devargs_parse(const char *devargs, struct rte_eth_devargs *eth_devargs);
+
+
+typedef int (*ethdev_init_t)(struct rte_eth_dev *ethdev, void *init_params);
+typedef int (*ethdev_bus_specific_init)(struct rte_eth_dev *ethdev,
+       void *bus_specific_init_params);
+
+/**
+ * PMD helper function for the creation of a new ethdev ports.
+ *
+ * @param device
+ *  rte_device handle.
+ * @param name
+ *  port name.
+ * @param priv_data_size
+ *  size of private data required for port.
+ * @param bus_specific_init
+ *  port bus specific initialisation callback function
+ * @param bus_init_params
+ *  port bus specific initialisation parameters
+ * @param ethdev_init
+ *  device specific port initialization callback function
+ * @param init_params
+ *  port initialisation parameters
+ *
+ * @return
+ *   Negative errno value on error, 0 on success.
+ */
+__rte_internal
+int
+rte_eth_dev_create(struct rte_device *device, const char *name,
+       size_t priv_data_size,
+       ethdev_bus_specific_init bus_specific_init, void *bus_init_params,
+       ethdev_init_t ethdev_init, void *init_params);
+
+
+typedef int (*ethdev_uninit_t)(struct rte_eth_dev *ethdev);
+
+/**
+ * PMD helper function for cleaning up the resources of a ethdev port on it's
+ * destruction.
+ *
+ * @param ethdev
+ *   ethdev handle of port.
+ * @param ethdev_uninit
+ *   device specific port un-initialise callback function
+ *
+ * @return
+ *   Negative errno value on error, 0 on success.
+ */
+__rte_internal
+int
+rte_eth_dev_destroy(struct rte_eth_dev *ethdev, ethdev_uninit_t ethdev_uninit);
+
+/**
+ * @internal
+ * Pass the current hairpin queue HW and/or SW information to the peer queue
+ * and fetch back the information of the peer queue.
+ *
+ * @param peer_port
+ *  Peer port identifier of the Ethernet device.
+ * @param peer_queue
+ *  Peer queue index of the port.
+ * @param cur_info
+ *  Pointer to the current information structure.
+ * @param peer_info
+ *  Pointer to the peer information, output.
+ * @param direction
+ *  Direction to pass the information.
+ *  positive - pass Tx queue information and get peer Rx queue information
+ *  zero - pass Rx queue information and get peer Tx queue information
+ *
+ * @return
+ *  Negative errno value on error, 0 on success.
+ */
+__rte_internal
+int
+rte_eth_hairpin_queue_peer_update(uint16_t peer_port, uint16_t peer_queue,
+                                 struct rte_hairpin_peer_info *cur_info,
+                                 struct rte_hairpin_peer_info *peer_info,
+                                 uint32_t direction);
+
+/**
+ * @internal
+ * Configure current hairpin queue with the peer information fetched to create
+ * the connection (bind) with peer queue in the specified direction.
+ * This function might need to be called twice to fully create the connections.
+ *
+ * @param cur_port
+ *  Current port identifier of the Ethernet device.
+ * @param cur_queue
+ *  Current queue index of the port.
+ * @param peer_info
+ *  Pointer to the peer information, input.
+ * @param direction
+ *  Direction to create the connection.
+ *  positive - bind current Tx queue to peer Rx queue
+ *  zero - bind current Rx queue to peer Tx queue
+ *
+ * @return
+ *  Negative errno value on error, 0 on success.
+ */
+__rte_internal
+int
+rte_eth_hairpin_queue_peer_bind(uint16_t cur_port, uint16_t cur_queue,
+                               struct rte_hairpin_peer_info *peer_info,
+                               uint32_t direction);
+
+/**
+ * @internal
+ * Reset the current queue state and configuration to disconnect (unbind) it
+ * from the peer queue.
+ * This function might need to be called twice to disconnect each other.
+ *
+ * @param cur_port
+ *  Current port identifier of the Ethernet device.
+ * @param cur_queue
+ *  Current queue index of the port.
+ * @param direction
+ *  Direction to destroy the connection.
+ *  positive - unbind current Tx queue from peer Rx queue
+ *  zero - unbind current Rx queue from peer Tx queue
+ *
+ * @return
+ *  Negative errno value on error, 0 on success.
+ */
+__rte_internal
+int
+rte_eth_hairpin_queue_peer_unbind(uint16_t cur_port, uint16_t cur_queue,
+                                 uint32_t direction);
+
+
+/*
+ * Legacy ethdev API used internally by drivers.
+ */
+
+/**
+ * Define all structures for Ethertype Filter type.
+ */
+
+#define RTE_ETHTYPE_FLAGS_MAC    0x0001 /**< If set, compare mac */
+#define RTE_ETHTYPE_FLAGS_DROP   0x0002 /**< If set, drop packet when match */
+
+/**
+ * A structure used to define the ethertype filter entry
+ * to support RTE_ETH_FILTER_ETHERTYPE data representation.
+ */
+struct rte_eth_ethertype_filter {
+       struct rte_ether_addr mac_addr;   /**< Mac address to match. */
+       uint16_t ether_type;          /**< Ether type to match */
+       uint16_t flags;               /**< Flags from RTE_ETHTYPE_FLAGS_* */
+       uint16_t queue;               /**< Queue assigned to when match*/
+};
+
+/**
+ * A structure used to define the TCP syn filter entry
+ * to support RTE_ETH_FILTER_SYN data representation.
+ */
+struct rte_eth_syn_filter {
+       /** 1 - higher priority than other filters, 0 - lower priority. */
+       uint8_t hig_pri;
+       uint16_t queue;      /**< Queue assigned to when match */
+};
+
+/**
+ * filter type of tunneling packet
+ */
+#define ETH_TUNNEL_FILTER_OMAC  0x01 /**< filter by outer MAC addr */
+#define ETH_TUNNEL_FILTER_OIP   0x02 /**< filter by outer IP Addr */
+#define ETH_TUNNEL_FILTER_TENID 0x04 /**< filter by tenant ID */
+#define ETH_TUNNEL_FILTER_IMAC  0x08 /**< filter by inner MAC addr */
+#define ETH_TUNNEL_FILTER_IVLAN 0x10 /**< filter by inner VLAN ID */
+#define ETH_TUNNEL_FILTER_IIP   0x20 /**< filter by inner IP addr */
+
+#define RTE_TUNNEL_FILTER_IMAC_IVLAN (ETH_TUNNEL_FILTER_IMAC | \
+                                       ETH_TUNNEL_FILTER_IVLAN)
+#define RTE_TUNNEL_FILTER_IMAC_IVLAN_TENID (ETH_TUNNEL_FILTER_IMAC | \
+                                       ETH_TUNNEL_FILTER_IVLAN | \
+                                       ETH_TUNNEL_FILTER_TENID)
+#define RTE_TUNNEL_FILTER_IMAC_TENID (ETH_TUNNEL_FILTER_IMAC | \
+                                       ETH_TUNNEL_FILTER_TENID)
+#define RTE_TUNNEL_FILTER_OMAC_TENID_IMAC (ETH_TUNNEL_FILTER_OMAC | \
+                                       ETH_TUNNEL_FILTER_TENID | \
+                                       ETH_TUNNEL_FILTER_IMAC)
+
+/**
+ *  Select IPv4 or IPv6 for tunnel filters.
+ */
+enum rte_tunnel_iptype {
+       RTE_TUNNEL_IPTYPE_IPV4 = 0, /**< IPv4. */
+       RTE_TUNNEL_IPTYPE_IPV6,     /**< IPv6. */
+};
+
+/**
+ * Tunneling Packet filter configuration.
+ */
+struct rte_eth_tunnel_filter_conf {
+       struct rte_ether_addr outer_mac;    /**< Outer MAC address to match. */
+       struct rte_ether_addr inner_mac;    /**< Inner MAC address to match. */
+       uint16_t inner_vlan;            /**< Inner VLAN to match. */
+       enum rte_tunnel_iptype ip_type; /**< IP address type. */
+       /**
+        * Outer destination IP address to match if ETH_TUNNEL_FILTER_OIP
+        * is set in filter_type, or inner destination IP address to match
+        * if ETH_TUNNEL_FILTER_IIP is set in filter_type.
+        */
+       union {
+               uint32_t ipv4_addr;     /**< IPv4 address in big endian. */
+               uint32_t ipv6_addr[4];  /**< IPv6 address in big endian. */
+       } ip_addr;
+       /** Flags from ETH_TUNNEL_FILTER_XX - see above. */
+       uint16_t filter_type;
+       enum rte_eth_tunnel_type tunnel_type; /**< Tunnel Type. */
+       uint32_t tenant_id;     /**< Tenant ID to match. VNI, GRE key... */
+       uint16_t queue_id;      /**< Queue assigned to if match. */
+};
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _RTE_ETHDEV_DRIVER_H_ */
diff --git a/lib/librte_ethdev/ethdev_pci.h b/lib/librte_ethdev/ethdev_pci.h
new file mode 100644 (file)
index 0000000..8edca82
--- /dev/null
@@ -0,0 +1,164 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright(c) 2017 Brocade Communications Systems, Inc.
+ *   Author: Jan Blunck <jblunck@infradead.org>
+ */
+
+#ifndef _RTE_ETHDEV_PCI_H_
+#define _RTE_ETHDEV_PCI_H_
+
+#include <rte_malloc.h>
+#include <rte_pci.h>
+#include <rte_bus_pci.h>
+#include <rte_config.h>
+#include <ethdev_driver.h>
+
+/**
+ * Copy pci device info to the Ethernet device data.
+ * Shared memory (eth_dev->data) only updated by primary process, so it is safe
+ * to call this function from both primary and secondary processes.
+ *
+ * @param eth_dev
+ * The *eth_dev* pointer is the address of the *rte_eth_dev* structure.
+ * @param pci_dev
+ * The *pci_dev* pointer is the address of the *rte_pci_device* structure.
+ */
+static inline void
+rte_eth_copy_pci_info(struct rte_eth_dev *eth_dev,
+       struct rte_pci_device *pci_dev)
+{
+       if ((eth_dev == NULL) || (pci_dev == NULL)) {
+               RTE_ETHDEV_LOG(ERR, "NULL pointer eth_dev=%p pci_dev=%p",
+                       (void *)eth_dev, (void *)pci_dev);
+               return;
+       }
+
+       eth_dev->intr_handle = &pci_dev->intr_handle;
+
+       if (rte_eal_process_type() == RTE_PROC_PRIMARY) {
+               eth_dev->data->dev_flags = 0;
+               if (pci_dev->driver->drv_flags & RTE_PCI_DRV_INTR_LSC)
+                       eth_dev->data->dev_flags |= RTE_ETH_DEV_INTR_LSC;
+               if (pci_dev->driver->drv_flags & RTE_PCI_DRV_INTR_RMV)
+                       eth_dev->data->dev_flags |= RTE_ETH_DEV_INTR_RMV;
+
+               eth_dev->data->numa_node = pci_dev->device.numa_node;
+       }
+}
+
+static inline int
+eth_dev_pci_specific_init(struct rte_eth_dev *eth_dev, void *bus_device) {
+       struct rte_pci_device *pci_dev = bus_device;
+
+       if (!pci_dev)
+               return -ENODEV;
+
+       rte_eth_copy_pci_info(eth_dev, pci_dev);
+
+       return 0;
+}
+
+/**
+ * @internal
+ * Allocates a new ethdev slot for an ethernet device and returns the pointer
+ * to that slot for the driver to use.
+ *
+ * @param dev
+ *     Pointer to the PCI device
+ *
+ * @param private_data_size
+ *     Size of private data structure
+ *
+ * @return
+ *     A pointer to a rte_eth_dev or NULL if allocation failed.
+ */
+static inline struct rte_eth_dev *
+rte_eth_dev_pci_allocate(struct rte_pci_device *dev, size_t private_data_size)
+{
+       struct rte_eth_dev *eth_dev;
+       const char *name;
+
+       if (!dev)
+               return NULL;
+
+       name = dev->device.name;
+
+       if (rte_eal_process_type() == RTE_PROC_PRIMARY) {
+               eth_dev = rte_eth_dev_allocate(name);
+               if (!eth_dev)
+                       return NULL;
+
+               if (private_data_size) {
+                       eth_dev->data->dev_private = rte_zmalloc_socket(name,
+                               private_data_size, RTE_CACHE_LINE_SIZE,
+                               dev->device.numa_node);
+                       if (!eth_dev->data->dev_private) {
+                               rte_eth_dev_release_port(eth_dev);
+                               return NULL;
+                       }
+               }
+       } else {
+               eth_dev = rte_eth_dev_attach_secondary(name);
+               if (!eth_dev)
+                       return NULL;
+       }
+
+       eth_dev->device = &dev->device;
+       rte_eth_copy_pci_info(eth_dev, dev);
+       return eth_dev;
+}
+
+typedef int (*eth_dev_pci_callback_t)(struct rte_eth_dev *eth_dev);
+
+/**
+ * @internal
+ * Wrapper for use by pci drivers in a .probe function to attach to a ethdev
+ * interface.
+ */
+static inline int
+rte_eth_dev_pci_generic_probe(struct rte_pci_device *pci_dev,
+       size_t private_data_size, eth_dev_pci_callback_t dev_init)
+{
+       struct rte_eth_dev *eth_dev;
+       int ret;
+
+       eth_dev = rte_eth_dev_pci_allocate(pci_dev, private_data_size);
+       if (!eth_dev)
+               return -ENOMEM;
+
+       RTE_FUNC_PTR_OR_ERR_RET(*dev_init, -EINVAL);
+       ret = dev_init(eth_dev);
+       if (ret)
+               rte_eth_dev_release_port(eth_dev);
+       else
+               rte_eth_dev_probing_finish(eth_dev);
+
+       return ret;
+}
+
+/**
+ * @internal
+ * Wrapper for use by pci drivers in a .remove function to detach a ethdev
+ * interface.
+ */
+static inline int
+rte_eth_dev_pci_generic_remove(struct rte_pci_device *pci_dev,
+       eth_dev_pci_callback_t dev_uninit)
+{
+       struct rte_eth_dev *eth_dev;
+       int ret;
+
+       eth_dev = rte_eth_dev_allocated(pci_dev->device.name);
+       if (!eth_dev)
+               return 0;
+
+       if (dev_uninit) {
+               ret = dev_uninit(eth_dev);
+               if (ret)
+                       return ret;
+       }
+
+       rte_eth_dev_release_port(eth_dev);
+       return 0;
+}
+
+#endif /* _RTE_ETHDEV_PCI_H_ */
index 162a502fe79afd994a70ebcf0db2a8345826acd5..5960c75cc58fc3455ef0a56ada1ac9b5395bc28d 100644 (file)
@@ -3,7 +3,7 @@
  */
 
 #include "rte_ethdev.h"
-#include "rte_ethdev_driver.h"
+#include "ethdev_driver.h"
 #include "ethdev_private.h"
 
 uint16_t
diff --git a/lib/librte_ethdev/ethdev_vdev.h b/lib/librte_ethdev/ethdev_vdev.h
new file mode 100644 (file)
index 0000000..46c75d9
--- /dev/null
@@ -0,0 +1,55 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright(c) 2017 Brocade Communications Systems, Inc.
+ *   Author: Jan Blunck <jblunck@infradead.org>
+ */
+
+#ifndef _RTE_ETHDEV_VDEV_H_
+#define _RTE_ETHDEV_VDEV_H_
+
+#include <rte_config.h>
+#include <rte_malloc.h>
+#include <rte_bus_vdev.h>
+#include <ethdev_driver.h>
+
+/**
+ * @internal
+ * Allocates a new ethdev slot for an ethernet device and returns the pointer
+ * to that slot for the driver to use.
+ *
+ * @param dev
+ *     Pointer to virtual device
+ *
+ * @param private_data_size
+ *     Size of private data structure
+ *
+ * @return
+ *     A pointer to a rte_eth_dev or NULL if allocation failed.
+ */
+static inline struct rte_eth_dev *
+rte_eth_vdev_allocate(struct rte_vdev_device *dev, size_t private_data_size)
+{
+       struct rte_eth_dev *eth_dev;
+       const char *name = rte_vdev_device_name(dev);
+
+       eth_dev = rte_eth_dev_allocate(name);
+       if (!eth_dev)
+               return NULL;
+
+       if (private_data_size) {
+               eth_dev->data->dev_private = rte_zmalloc_socket(name,
+                       private_data_size, RTE_CACHE_LINE_SIZE,
+                       dev->device.numa_node);
+               if (!eth_dev->data->dev_private) {
+                       rte_eth_dev_release_port(eth_dev);
+                       return NULL;
+               }
+       }
+
+       eth_dev->device = &dev->device;
+       eth_dev->intr_handle = NULL;
+
+       eth_dev->data->numa_node = dev->device.numa_node;
+       return eth_dev;
+}
+
+#endif /* _RTE_ETHDEV_VDEV_H_ */
index e4b610246f2a0c8dfbe7a60decc9aebbafd2759f..829abd456b755e58aa5623507506416018ac7a70 100644 (file)
@@ -11,12 +11,9 @@ sources = files('ethdev_private.c',
        'rte_tm.c')
 
 headers = files('rte_ethdev.h',
-       'rte_ethdev_driver.h',
        'rte_ethdev_core.h',
-       'rte_ethdev_pci.h',
        'rte_ethdev_trace.h',
        'rte_ethdev_trace_fp.h',
-       'rte_ethdev_vdev.h',
        'rte_eth_ctrl.h',
        'rte_dev_info.h',
        'rte_flow.h',
index 6338355e25574c901cfb6385bf53d71f6355250e..ca2ce87f7a02265ed3dbeb9838efae1517b7bef5 100644 (file)
@@ -12,7 +12,7 @@
 
 #include "rte_ethdev.h"
 #include "rte_ethdev_core.h"
-#include "rte_ethdev_driver.h"
+#include "ethdev_driver.h"
 #include "ethdev_private.h"
 
 enum eth_params {
index daf5f24f7e6d9d3bdae2a8f43368606247647f95..f40df65e344a942f339bb1a416e19d88c3a360fe 100644 (file)
@@ -41,7 +41,7 @@
 
 #include "rte_ethdev_trace.h"
 #include "rte_ethdev.h"
-#include "rte_ethdev_driver.h"
+#include "ethdev_driver.h"
 #include "ethdev_profile.h"
 #include "ethdev_private.h"
 
index eb299955d4fd531aba38f37a2da39ee3bf58c9fe..89b8ba2fc4bbd5a350c86ff33e8f5ac93fa43e19 100644 (file)
@@ -20,7 +20,7 @@
  * - The driver-oriented Ethernet API that exports functions allowing
  *   an Ethernet Poll Mode Driver (PMD) to allocate an Ethernet device instance,
  *   create memzone for HW rings and process registered callbacks, and so on.
- *   PMDs should include rte_ethdev_driver.h instead of this header.
+ *   PMDs should include ethdev_driver.h instead of this header.
  *
  * By default, all the functions of the Ethernet Device API exported by a PMD
  * are lock-free functions which assume to not be invoked in parallel on
diff --git a/lib/librte_ethdev/rte_ethdev_driver.h b/lib/librte_ethdev/rte_ethdev_driver.h
deleted file mode 100644 (file)
index 57fdeda..0000000
+++ /dev/null
@@ -1,1465 +0,0 @@
-/* SPDX-License-Identifier: BSD-3-Clause
- * Copyright(c) 2017 Intel Corporation
- */
-
-#ifndef _RTE_ETHDEV_DRIVER_H_
-#define _RTE_ETHDEV_DRIVER_H_
-
-/**
- * @file
- *
- * RTE Ethernet Device PMD API
- *
- * These APIs for the use from Ethernet drivers, user applications shouldn't
- * use them.
- *
- */
-
-#include <rte_ethdev.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**< @internal Declaration of the hairpin peer queue information structure. */
-struct rte_hairpin_peer_info;
-
-/*
- * Definitions of all functions exported by an Ethernet driver through the
- * generic structure of type *eth_dev_ops* supplied in the *rte_eth_dev*
- * structure associated with an Ethernet device.
- */
-
-typedef int  (*eth_dev_configure_t)(struct rte_eth_dev *dev);
-/**< @internal Ethernet device configuration. */
-
-typedef int  (*eth_dev_start_t)(struct rte_eth_dev *dev);
-/**< @internal Function used to start a configured Ethernet device. */
-
-typedef int (*eth_dev_stop_t)(struct rte_eth_dev *dev);
-/**< @internal Function used to stop a configured Ethernet device. */
-
-typedef int  (*eth_dev_set_link_up_t)(struct rte_eth_dev *dev);
-/**< @internal Function used to link up a configured Ethernet device. */
-
-typedef int  (*eth_dev_set_link_down_t)(struct rte_eth_dev *dev);
-/**< @internal Function used to link down a configured Ethernet device. */
-
-typedef int (*eth_dev_close_t)(struct rte_eth_dev *dev);
-/**< @internal Function used to close a configured Ethernet device. */
-
-typedef int (*eth_dev_reset_t)(struct rte_eth_dev *dev);
-/** <@internal Function used to reset a configured Ethernet device. */
-
-typedef int (*eth_is_removed_t)(struct rte_eth_dev *dev);
-/**< @internal Function used to detect an Ethernet device removal. */
-
-/**
- * @internal
- * Function used to enable the Rx promiscuous mode of an Ethernet device.
- *
- * @param dev
- *   ethdev handle of port.
- *
- * @return
- *   Negative errno value on error, 0 on success.
- *
- * @retval 0
- *   Success, promiscuous mode is enabled.
- * @retval -ENOTSUP
- *   Promiscuous mode is not supported.
- * @retval -ENODEV
- *   Device is gone.
- * @retval -E_RTE_SECONDARY
- *   Function was called from a secondary process instance and not supported.
- * @retval -ETIMEDOUT
- *   Attempt to enable promiscuos mode failed because of timeout.
- * @retval -EAGAIN
- *   Failed to enable promiscuous mode.
- */
-typedef int (*eth_promiscuous_enable_t)(struct rte_eth_dev *dev);
-
-/**
- * @internal
- * Function used to disable the Rx promiscuous mode of an Ethernet device.
- *
- * @param dev
- *   ethdev handle of port.
- *
- * @return
- *   Negative errno value on error, 0 on success.
- *
- * @retval 0
- *   Success, promiscuous mode is disabled.
- * @retval -ENOTSUP
- *   Promiscuous mode disabling is not supported.
- * @retval -ENODEV
- *   Device is gone.
- * @retval -E_RTE_SECONDARY
- *   Function was called from a secondary process instance and not supported.
- * @retval -ETIMEDOUT
- *   Attempt to disable promiscuos mode failed because of timeout.
- * @retval -EAGAIN
- *   Failed to disable promiscuous mode.
- */
-typedef int (*eth_promiscuous_disable_t)(struct rte_eth_dev *dev);
-
-/**
- * @internal
- * Enable the receipt of all multicast packets by an Ethernet device.
- *
- * @param dev
- *   ethdev handle of port.
- *
- * @return
- *   Negative errno value on error, 0 on success.
- *
- * @retval 0
- *   Success, all-multicast mode is enabled.
- * @retval -ENOTSUP
- *   All-multicast mode is not supported.
- * @retval -ENODEV
- *   Device is gone.
- * @retval -E_RTE_SECONDARY
- *   Function was called from a secondary process instance and not supported.
- * @retval -ETIMEDOUT
- *   Attempt to enable all-multicast mode failed because of timeout.
- * @retval -EAGAIN
- *   Failed to enable all-multicast mode.
- */
-typedef int (*eth_allmulticast_enable_t)(struct rte_eth_dev *dev);
-
-/**
- * @internal
- * Disable the receipt of all multicast packets by an Ethernet device.
- *
- * @param dev
- *   ethdev handle of port.
- *
- * @return
- *   Negative errno value on error, 0 on success.
- *
- * @retval 0
- *   Success, all-multicast mode is disabled.
- * @retval -ENOTSUP
- *   All-multicast mode disabling is not supported.
- * @retval -ENODEV
- *   Device is gone.
- * @retval -E_RTE_SECONDARY
- *   Function was called from a secondary process instance and not supported.
- * @retval -ETIMEDOUT
- *   Attempt to disable all-multicast mode failed because of timeout.
- * @retval -EAGAIN
- *   Failed to disable all-multicast mode.
- */
-typedef int (*eth_allmulticast_disable_t)(struct rte_eth_dev *dev);
-
-typedef int (*eth_link_update_t)(struct rte_eth_dev *dev,
-                               int wait_to_complete);
-/**< @internal Get link speed, duplex mode and state (up/down) of an Ethernet device. */
-
-typedef int (*eth_stats_get_t)(struct rte_eth_dev *dev,
-                               struct rte_eth_stats *igb_stats);
-/**< @internal Get global I/O statistics of an Ethernet device. */
-
-/**
- * @internal
- * Reset global I/O statistics of an Ethernet device to 0.
- *
- * @param dev
- *   ethdev handle of port.
- *
- * @return
- *   Negative errno value on error, 0 on success.
- *
- * @retval 0
- *   Success, statistics has been reset.
- * @retval -ENOTSUP
- *   Resetting statistics is not supported.
- * @retval -EINVAL
- *   Resetting statistics is not valid.
- * @retval -ENOMEM
- *   Not enough memory to get the stats.
- */
-typedef int (*eth_stats_reset_t)(struct rte_eth_dev *dev);
-
-typedef int (*eth_xstats_get_t)(struct rte_eth_dev *dev,
-       struct rte_eth_xstat *stats, unsigned int n);
-/**< @internal Get extended stats of an Ethernet device. */
-
-typedef int (*eth_xstats_get_by_id_t)(struct rte_eth_dev *dev,
-                                     const uint64_t *ids,
-                                     uint64_t *values,
-                                     unsigned int n);
-/**< @internal Get extended stats of an Ethernet device. */
-
-/**
- * @internal
- * Reset extended stats of an Ethernet device.
- *
- * @param dev
- *   ethdev handle of port.
- *
- * @return
- *   Negative errno value on error, 0 on success.
- *
- * @retval 0
- *   Success, statistics has been reset.
- * @retval -ENOTSUP
- *   Resetting statistics is not supported.
- * @retval -EINVAL
- *   Resetting statistics is not valid.
- * @retval -ENOMEM
- *   Not enough memory to get the stats.
- */
-typedef int (*eth_xstats_reset_t)(struct rte_eth_dev *dev);
-
-typedef int (*eth_xstats_get_names_t)(struct rte_eth_dev *dev,
-       struct rte_eth_xstat_name *xstats_names, unsigned int size);
-/**< @internal Get names of extended stats of an Ethernet device. */
-
-typedef int (*eth_xstats_get_names_by_id_t)(struct rte_eth_dev *dev,
-       struct rte_eth_xstat_name *xstats_names, const uint64_t *ids,
-       unsigned int size);
-/**< @internal Get names of extended stats of an Ethernet device. */
-
-typedef int (*eth_queue_stats_mapping_set_t)(struct rte_eth_dev *dev,
-                                            uint16_t queue_id,
-                                            uint8_t stat_idx,
-                                            uint8_t is_rx);
-/**< @internal Set a queue statistics mapping for a tx/rx queue of an Ethernet device. */
-
-typedef int (*eth_dev_infos_get_t)(struct rte_eth_dev *dev,
-                                  struct rte_eth_dev_info *dev_info);
-/**< @internal Get specific information of an Ethernet device. */
-
-typedef const uint32_t *(*eth_dev_supported_ptypes_get_t)(struct rte_eth_dev *dev);
-/**< @internal Get supported ptypes of an Ethernet device. */
-
-/**
- * @internal
- * Inform Ethernet device about reduced range of packet types to handle.
- *
- * @param dev
- *   The Ethernet device identifier.
- * @param ptype_mask
- *   The ptype family that application is interested in should be bitwise OR of
- *   RTE_PTYPE_*_MASK or 0.
- * @return
- *   - (0) if Success.
- */
-typedef int (*eth_dev_ptypes_set_t)(struct rte_eth_dev *dev,
-                                    uint32_t ptype_mask);
-
-typedef int (*eth_queue_start_t)(struct rte_eth_dev *dev,
-                                   uint16_t queue_id);
-/**< @internal Start rx and tx of a queue of an Ethernet device. */
-
-typedef int (*eth_queue_stop_t)(struct rte_eth_dev *dev,
-                                   uint16_t queue_id);
-/**< @internal Stop rx and tx of a queue of an Ethernet device. */
-
-typedef int (*eth_rx_queue_setup_t)(struct rte_eth_dev *dev,
-                                   uint16_t rx_queue_id,
-                                   uint16_t nb_rx_desc,
-                                   unsigned int socket_id,
-                                   const struct rte_eth_rxconf *rx_conf,
-                                   struct rte_mempool *mb_pool);
-/**< @internal Set up a receive queue of an Ethernet device. */
-
-typedef int (*eth_tx_queue_setup_t)(struct rte_eth_dev *dev,
-                                   uint16_t tx_queue_id,
-                                   uint16_t nb_tx_desc,
-                                   unsigned int socket_id,
-                                   const struct rte_eth_txconf *tx_conf);
-/**< @internal Setup a transmit queue of an Ethernet device. */
-
-typedef int (*eth_rx_enable_intr_t)(struct rte_eth_dev *dev,
-                                   uint16_t rx_queue_id);
-/**< @internal Enable interrupt of a receive queue of an Ethernet device. */
-
-typedef int (*eth_rx_disable_intr_t)(struct rte_eth_dev *dev,
-                                   uint16_t rx_queue_id);
-/**< @internal Disable interrupt of a receive queue of an Ethernet device. */
-
-typedef void (*eth_queue_release_t)(void *queue);
-/**< @internal Release memory resources allocated by given RX/TX queue. */
-
-typedef int (*eth_fw_version_get_t)(struct rte_eth_dev *dev,
-                                    char *fw_version, size_t fw_size);
-/**< @internal Get firmware information of an Ethernet device. */
-
-typedef int (*eth_tx_done_cleanup_t)(void *txq, uint32_t free_cnt);
-/**< @internal Force mbufs to be from TX ring. */
-
-typedef void (*eth_rxq_info_get_t)(struct rte_eth_dev *dev,
-       uint16_t rx_queue_id, struct rte_eth_rxq_info *qinfo);
-
-typedef void (*eth_txq_info_get_t)(struct rte_eth_dev *dev,
-       uint16_t tx_queue_id, struct rte_eth_txq_info *qinfo);
-
-typedef int (*eth_burst_mode_get_t)(struct rte_eth_dev *dev,
-       uint16_t queue_id, struct rte_eth_burst_mode *mode);
-
-typedef int (*mtu_set_t)(struct rte_eth_dev *dev, uint16_t mtu);
-/**< @internal Set MTU. */
-
-typedef int (*vlan_filter_set_t)(struct rte_eth_dev *dev,
-                                 uint16_t vlan_id,
-                                 int on);
-/**< @internal filtering of a VLAN Tag Identifier by an Ethernet device. */
-
-typedef int (*vlan_tpid_set_t)(struct rte_eth_dev *dev,
-                              enum rte_vlan_type type, uint16_t tpid);
-/**< @internal set the outer/inner VLAN-TPID by an Ethernet device. */
-
-typedef int (*vlan_offload_set_t)(struct rte_eth_dev *dev, int mask);
-/**< @internal set VLAN offload function by an Ethernet device. */
-
-typedef int (*vlan_pvid_set_t)(struct rte_eth_dev *dev,
-                              uint16_t vlan_id,
-                              int on);
-/**< @internal set port based TX VLAN insertion by an Ethernet device. */
-
-typedef void (*vlan_strip_queue_set_t)(struct rte_eth_dev *dev,
-                                 uint16_t rx_queue_id,
-                                 int on);
-/**< @internal VLAN stripping enable/disable by an queue of Ethernet device. */
-
-typedef int (*flow_ctrl_get_t)(struct rte_eth_dev *dev,
-                              struct rte_eth_fc_conf *fc_conf);
-/**< @internal Get current flow control parameter on an Ethernet device */
-
-typedef int (*flow_ctrl_set_t)(struct rte_eth_dev *dev,
-                              struct rte_eth_fc_conf *fc_conf);
-/**< @internal Setup flow control parameter on an Ethernet device */
-
-typedef int (*priority_flow_ctrl_set_t)(struct rte_eth_dev *dev,
-                               struct rte_eth_pfc_conf *pfc_conf);
-/**< @internal Setup priority flow control parameter on an Ethernet device */
-
-typedef int (*reta_update_t)(struct rte_eth_dev *dev,
-                            struct rte_eth_rss_reta_entry64 *reta_conf,
-                            uint16_t reta_size);
-/**< @internal Update RSS redirection table on an Ethernet device */
-
-typedef int (*reta_query_t)(struct rte_eth_dev *dev,
-                           struct rte_eth_rss_reta_entry64 *reta_conf,
-                           uint16_t reta_size);
-/**< @internal Query RSS redirection table on an Ethernet device */
-
-typedef int (*rss_hash_update_t)(struct rte_eth_dev *dev,
-                                struct rte_eth_rss_conf *rss_conf);
-/**< @internal Update RSS hash configuration of an Ethernet device */
-
-typedef int (*rss_hash_conf_get_t)(struct rte_eth_dev *dev,
-                                  struct rte_eth_rss_conf *rss_conf);
-/**< @internal Get current RSS hash configuration of an Ethernet device */
-
-typedef int (*eth_dev_led_on_t)(struct rte_eth_dev *dev);
-/**< @internal Turn on SW controllable LED on an Ethernet device */
-
-typedef int (*eth_dev_led_off_t)(struct rte_eth_dev *dev);
-/**< @internal Turn off SW controllable LED on an Ethernet device */
-
-typedef void (*eth_mac_addr_remove_t)(struct rte_eth_dev *dev, uint32_t index);
-/**< @internal Remove MAC address from receive address register */
-
-typedef int (*eth_mac_addr_add_t)(struct rte_eth_dev *dev,
-                                 struct rte_ether_addr *mac_addr,
-                                 uint32_t index,
-                                 uint32_t vmdq);
-/**< @internal Set a MAC address into Receive Address Register */
-
-typedef int (*eth_mac_addr_set_t)(struct rte_eth_dev *dev,
-                                 struct rte_ether_addr *mac_addr);
-/**< @internal Set a MAC address into Receive Address Register */
-
-typedef int (*eth_uc_hash_table_set_t)(struct rte_eth_dev *dev,
-                                 struct rte_ether_addr *mac_addr,
-                                 uint8_t on);
-/**< @internal Set a Unicast Hash bitmap */
-
-typedef int (*eth_uc_all_hash_table_set_t)(struct rte_eth_dev *dev,
-                                 uint8_t on);
-/**< @internal Set all Unicast Hash bitmap */
-
-typedef int (*eth_set_queue_rate_limit_t)(struct rte_eth_dev *dev,
-                               uint16_t queue_idx,
-                               uint16_t tx_rate);
-/**< @internal Set queue TX rate */
-
-typedef int (*eth_mirror_rule_set_t)(struct rte_eth_dev *dev,
-                                 struct rte_eth_mirror_conf *mirror_conf,
-                                 uint8_t rule_id,
-                                 uint8_t on);
-/**< @internal Add a traffic mirroring rule on an Ethernet device */
-
-typedef int (*eth_mirror_rule_reset_t)(struct rte_eth_dev *dev,
-                                 uint8_t rule_id);
-/**< @internal Remove a traffic mirroring rule on an Ethernet device */
-
-typedef int (*eth_udp_tunnel_port_add_t)(struct rte_eth_dev *dev,
-                                        struct rte_eth_udp_tunnel *tunnel_udp);
-/**< @internal Add tunneling UDP port */
-
-typedef int (*eth_udp_tunnel_port_del_t)(struct rte_eth_dev *dev,
-                                        struct rte_eth_udp_tunnel *tunnel_udp);
-/**< @internal Delete tunneling UDP port */
-
-typedef int (*eth_set_mc_addr_list_t)(struct rte_eth_dev *dev,
-                                     struct rte_ether_addr *mc_addr_set,
-                                     uint32_t nb_mc_addr);
-/**< @internal set the list of multicast addresses on an Ethernet device */
-
-typedef int (*eth_timesync_enable_t)(struct rte_eth_dev *dev);
-/**< @internal Function used to enable IEEE1588/802.1AS timestamping. */
-
-typedef int (*eth_timesync_disable_t)(struct rte_eth_dev *dev);
-/**< @internal Function used to disable IEEE1588/802.1AS timestamping. */
-
-typedef int (*eth_timesync_read_rx_timestamp_t)(struct rte_eth_dev *dev,
-                                               struct timespec *timestamp,
-                                               uint32_t flags);
-/**< @internal Function used to read an RX IEEE1588/802.1AS timestamp. */
-
-typedef int (*eth_timesync_read_tx_timestamp_t)(struct rte_eth_dev *dev,
-                                               struct timespec *timestamp);
-/**< @internal Function used to read a TX IEEE1588/802.1AS timestamp. */
-
-typedef int (*eth_timesync_adjust_time)(struct rte_eth_dev *dev, int64_t);
-/**< @internal Function used to adjust the device clock */
-
-typedef int (*eth_timesync_read_time)(struct rte_eth_dev *dev,
-                                     struct timespec *timestamp);
-/**< @internal Function used to get time from the device clock. */
-
-typedef int (*eth_timesync_write_time)(struct rte_eth_dev *dev,
-                                      const struct timespec *timestamp);
-/**< @internal Function used to get time from the device clock */
-
-typedef int (*eth_read_clock)(struct rte_eth_dev *dev,
-                                     uint64_t *timestamp);
-/**< @internal Function used to get the current value of the device clock. */
-
-typedef int (*eth_get_reg_t)(struct rte_eth_dev *dev,
-                               struct rte_dev_reg_info *info);
-/**< @internal Retrieve registers  */
-
-typedef int (*eth_get_eeprom_length_t)(struct rte_eth_dev *dev);
-/**< @internal Retrieve eeprom size  */
-
-typedef int (*eth_get_eeprom_t)(struct rte_eth_dev *dev,
-                               struct rte_dev_eeprom_info *info);
-/**< @internal Retrieve eeprom data  */
-
-typedef int (*eth_set_eeprom_t)(struct rte_eth_dev *dev,
-                               struct rte_dev_eeprom_info *info);
-/**< @internal Program eeprom data  */
-
-typedef int (*eth_get_module_info_t)(struct rte_eth_dev *dev,
-                                    struct rte_eth_dev_module_info *modinfo);
-/**< @internal Retrieve type and size of plugin module eeprom */
-
-typedef int (*eth_get_module_eeprom_t)(struct rte_eth_dev *dev,
-                                      struct rte_dev_eeprom_info *info);
-/**< @internal Retrieve plugin module eeprom data */
-
-/**
- * Feature filter types
- */
-enum rte_filter_type {
-       RTE_ETH_FILTER_NONE = 0,
-       RTE_ETH_FILTER_ETHERTYPE,
-       RTE_ETH_FILTER_FLEXIBLE,
-       RTE_ETH_FILTER_SYN,
-       RTE_ETH_FILTER_NTUPLE,
-       RTE_ETH_FILTER_TUNNEL,
-       RTE_ETH_FILTER_FDIR,
-       RTE_ETH_FILTER_HASH,
-       RTE_ETH_FILTER_L2_TUNNEL,
-       RTE_ETH_FILTER_GENERIC,
-};
-
-/**
- * Generic operations on filters
- */
-enum rte_filter_op {
-       RTE_ETH_FILTER_GET,      /**< get flow API ops */
-};
-
-typedef int (*eth_filter_ctrl_t)(struct rte_eth_dev *dev,
-                                enum rte_filter_type filter_type,
-                                enum rte_filter_op filter_op,
-                                void *arg);
-/**< @internal Take operations to assigned filter type on an Ethernet device */
-
-typedef int (*eth_tm_ops_get_t)(struct rte_eth_dev *dev, void *ops);
-/**< @internal Get Traffic Management (TM) operations on an Ethernet device */
-
-typedef int (*eth_mtr_ops_get_t)(struct rte_eth_dev *dev, void *ops);
-/**< @internal Get Traffic Metering and Policing (MTR) operations */
-
-typedef int (*eth_get_dcb_info)(struct rte_eth_dev *dev,
-                                struct rte_eth_dcb_info *dcb_info);
-/**< @internal Get dcb information on an Ethernet device */
-
-typedef int (*eth_pool_ops_supported_t)(struct rte_eth_dev *dev,
-                                               const char *pool);
-/**< @internal Test if a port supports specific mempool ops */
-
-/**
- * @internal
- * Get the hairpin capabilities.
- *
- * @param dev
- *   ethdev handle of port.
- * @param cap
- *   returns the hairpin capabilities from the device.
- *
- * @return
- *   Negative errno value on error, 0 on success.
- *
- * @retval 0
- *   Success, hairpin is supported.
- * @retval -ENOTSUP
- *   Hairpin is not supported.
- */
-typedef int (*eth_hairpin_cap_get_t)(struct rte_eth_dev *dev,
-                                    struct rte_eth_hairpin_cap *cap);
-
-/**
- * @internal
- * Setup RX hairpin queue.
- *
- * @param dev
- *   ethdev handle of port.
- * @param rx_queue_id
- *   the selected RX queue index.
- * @param nb_rx_desc
- *   the requested number of descriptors for this queue. 0 - use PMD default.
- * @param conf
- *   the RX hairpin configuration structure.
- *
- * @return
- *   Negative errno value on error, 0 on success.
- *
- * @retval 0
- *   Success, hairpin is supported.
- * @retval -ENOTSUP
- *   Hairpin is not supported.
- * @retval -EINVAL
- *   One of the parameters is invalid.
- * @retval -ENOMEM
- *   Unable to allocate resources.
- */
-typedef int (*eth_rx_hairpin_queue_setup_t)
-       (struct rte_eth_dev *dev, uint16_t rx_queue_id,
-        uint16_t nb_rx_desc,
-        const struct rte_eth_hairpin_conf *conf);
-
-/**
- * @internal
- * Setup TX hairpin queue.
- *
- * @param dev
- *   ethdev handle of port.
- * @param tx_queue_id
- *   the selected TX queue index.
- * @param nb_tx_desc
- *   the requested number of descriptors for this queue. 0 - use PMD default.
- * @param conf
- *   the TX hairpin configuration structure.
- *
- * @return
- *   Negative errno value on error, 0 on success.
- *
- * @retval 0
- *   Success, hairpin is supported.
- * @retval -ENOTSUP
- *   Hairpin is not supported.
- * @retval -EINVAL
- *   One of the parameters is invalid.
- * @retval -ENOMEM
- *   Unable to allocate resources.
- */
-typedef int (*eth_tx_hairpin_queue_setup_t)
-       (struct rte_eth_dev *dev, uint16_t tx_queue_id,
-        uint16_t nb_tx_desc,
-        const struct rte_eth_hairpin_conf *hairpin_conf);
-
-/**
- * @internal
- * Get Forward Error Correction(FEC) capability.
- *
- * @param dev
- *   ethdev handle of port.
- * @param speed_fec_capa
- *   speed_fec_capa is out only with per-speed capabilities.
- * @param num
- *   a number of elements in an speed_fec_capa array.
- *
- * @return
- *   Negative errno value on error, positive value on success.
- *
- * @retval positive value
- *   A non-negative value lower or equal to num: success. The return value
- *   is the number of entries filled in the fec capa array.
- *   A non-negative value higher than num: error, the given fec capa array
- *   is too small. The return value corresponds to the num that should
- *   be given to succeed. The entries in the fec capa array are not valid
- *   and shall not be used by the caller.
- * @retval -ENOTSUP
- *   Operation is not supported.
- * @retval -EIO
- *   Device is removed.
- * @retval -EINVAL
- *   *num* or *speed_fec_capa* invalid.
- */
-typedef int (*eth_fec_get_capability_t)(struct rte_eth_dev *dev,
-               struct rte_eth_fec_capa *speed_fec_capa, unsigned int num);
-
-/**
- * @internal
- * Get Forward Error Correction(FEC) mode.
- *
- * @param dev
- *   ethdev handle of port.
- * @param fec_capa
- *   a bitmask of enabled FEC modes. If AUTO bit is set, other
- *   bits specify FEC modes which may be negotiated. If AUTO
- *   bit is clear, specify FEC modes to be used (only one valid
- *   mode per speed may be set).
- *
- * @return
- *   Negative errno value on error, 0 on success.
- *
- * @retval 0
- *   Success, get FEC success.
- * @retval -ENOTSUP
- *   Operation is not supported.
- * @retval -EIO
- *   Device is removed.
- */
-typedef int (*eth_fec_get_t)(struct rte_eth_dev *dev,
-                            uint32_t *fec_capa);
-
-/**
- * @internal
- * Set Forward Error Correction(FEC) mode.
- *
- * @param dev
- *   ethdev handle of port.
- * @param fec_capa
- *   bitmask of allowed FEC modes. It must be only one
- *   if AUTO is disabled. If AUTO is enabled, other
- *   bits specify FEC modes which may be negotiated.
- *
- * @return
- *   Negative errno value on error, 0 on success.
- *
- * @retval 0
- *   Success, set FEC success.
- * @retval -ENOTSUP
- *   Operation is not supported.
- * @retval -EINVAL
- *   Unsupported FEC mode requested.
- * @retval -EIO
- *   Device is removed.
- */
-typedef int (*eth_fec_set_t)(struct rte_eth_dev *dev, uint32_t fec_capa);
-
-/**
- * @internal
- * Get all hairpin Tx/Rx peer ports of the current device, if any.
- *
- * @param dev
- *   ethdev handle of port.
- * @param peer_ports
- *   array to save the ports list.
- * @param len
- *   array length.
- * @param direction
- *   value to decide the current to peer direction
- *   positive - used as Tx to get all peer Rx ports.
- *   zero - used as Rx to get all peer Tx ports.
- *
- * @return
- *   Negative errno value on error, 0 or positive on success.
- *
- * @retval 0
- *   Success, no peer ports.
- * @retval >0
- *   Actual number of the peer ports.
- * @retval -ENOTSUP
- *   Get peer ports API is not supported.
- * @retval -EINVAL
- *   One of the parameters is invalid.
- */
-typedef int (*hairpin_get_peer_ports_t)(struct rte_eth_dev *dev,
-                                       uint16_t *peer_ports, size_t len,
-                                       uint32_t direction);
-
-/**
- * @internal
- * Bind all hairpin Tx queues of one port to the Rx queues of the peer port.
- *
- * @param dev
- *   ethdev handle of port.
- * @param rx_port
- *   the peer Rx port.
- *
- * @return
- *   Negative errno value on error, 0 on success.
- *
- * @retval 0
- *   Success, bind successfully.
- * @retval -ENOTSUP
- *   Bind API is not supported.
- * @retval -EINVAL
- *   One of the parameters is invalid.
- * @retval -EBUSY
- *   Device is not started.
- */
-typedef int (*eth_hairpin_bind_t)(struct rte_eth_dev *dev,
-                               uint16_t rx_port);
-
-/**
- * @internal
- * Unbind all hairpin Tx queues of one port from the Rx queues of the peer port.
- *
- * @param dev
- *   ethdev handle of port.
- * @param rx_port
- *   the peer Rx port.
- *
- * @return
- *   Negative errno value on error, 0 on success.
- *
- * @retval 0
- *   Success, unbind successfully.
- * @retval -ENOTSUP
- *   Bind API is not supported.
- * @retval -EINVAL
- *   One of the parameters is invalid.
- * @retval -EBUSY
- *   Device is already stopped.
- */
-typedef int (*eth_hairpin_unbind_t)(struct rte_eth_dev *dev,
-                                 uint16_t rx_port);
-
-typedef int (*eth_hairpin_queue_peer_update_t)
-       (struct rte_eth_dev *dev, uint16_t peer_queue,
-        struct rte_hairpin_peer_info *current_info,
-        struct rte_hairpin_peer_info *peer_info, uint32_t direction);
-/**< @internal Update and fetch peer queue information. */
-
-typedef int (*eth_hairpin_queue_peer_bind_t)
-       (struct rte_eth_dev *dev, uint16_t cur_queue,
-        struct rte_hairpin_peer_info *peer_info, uint32_t direction);
-/**< @internal Bind peer queue to the current queue with fetched information. */
-
-typedef int (*eth_hairpin_queue_peer_unbind_t)
-       (struct rte_eth_dev *dev, uint16_t cur_queue, uint32_t direction);
-/**< @internal Unbind peer queue from the current queue. */
-
-/**
- * @internal
- * Get address of memory location whose contents will change whenever there is
- * new data to be received on an Rx queue.
- *
- * @param rxq
- *   Ethdev queue pointer.
- * @param pmc
- *   The pointer to power-optimized monitoring condition structure.
- * @return
- *   Negative errno value on error, 0 on success.
- *
- * @retval 0
- *   Success
- * @retval -EINVAL
- *   Invalid parameters
- */
-typedef int (*eth_get_monitor_addr_t)(void *rxq,
-               struct rte_power_monitor_cond *pmc);
-
-/**
- * @internal A structure containing the functions exported by an Ethernet driver.
- */
-struct eth_dev_ops {
-       eth_dev_configure_t        dev_configure; /**< Configure device. */
-       eth_dev_start_t            dev_start;     /**< Start device. */
-       eth_dev_stop_t             dev_stop;      /**< Stop device. */
-       eth_dev_set_link_up_t      dev_set_link_up;   /**< Device link up. */
-       eth_dev_set_link_down_t    dev_set_link_down; /**< Device link down. */
-       eth_dev_close_t            dev_close;     /**< Close device. */
-       eth_dev_reset_t            dev_reset;     /**< Reset device. */
-       eth_link_update_t          link_update;   /**< Get device link state. */
-       eth_is_removed_t           is_removed;
-       /**< Check if the device was physically removed. */
-
-       eth_promiscuous_enable_t   promiscuous_enable; /**< Promiscuous ON. */
-       eth_promiscuous_disable_t  promiscuous_disable;/**< Promiscuous OFF. */
-       eth_allmulticast_enable_t  allmulticast_enable;/**< RX multicast ON. */
-       eth_allmulticast_disable_t allmulticast_disable;/**< RX multicast OFF. */
-       eth_mac_addr_remove_t      mac_addr_remove; /**< Remove MAC address. */
-       eth_mac_addr_add_t         mac_addr_add;  /**< Add a MAC address. */
-       eth_mac_addr_set_t         mac_addr_set;  /**< Set a MAC address. */
-       eth_set_mc_addr_list_t     set_mc_addr_list; /**< set list of mcast addrs. */
-       mtu_set_t                  mtu_set;       /**< Set MTU. */
-
-       eth_stats_get_t            stats_get;     /**< Get generic device statistics. */
-       eth_stats_reset_t          stats_reset;   /**< Reset generic device statistics. */
-       eth_xstats_get_t           xstats_get;    /**< Get extended device statistics. */
-       eth_xstats_reset_t         xstats_reset;  /**< Reset extended device statistics. */
-       eth_xstats_get_names_t     xstats_get_names;
-       /**< Get names of extended statistics. */
-       eth_queue_stats_mapping_set_t queue_stats_mapping_set;
-       /**< Configure per queue stat counter mapping. */
-
-       eth_dev_infos_get_t        dev_infos_get; /**< Get device info. */
-       eth_rxq_info_get_t         rxq_info_get; /**< retrieve RX queue information. */
-       eth_txq_info_get_t         txq_info_get; /**< retrieve TX queue information. */
-       eth_burst_mode_get_t       rx_burst_mode_get; /**< Get RX burst mode */
-       eth_burst_mode_get_t       tx_burst_mode_get; /**< Get TX burst mode */
-       eth_fw_version_get_t       fw_version_get; /**< Get firmware version. */
-       eth_dev_supported_ptypes_get_t dev_supported_ptypes_get;
-       /**< Get packet types supported and identified by device. */
-       eth_dev_ptypes_set_t dev_ptypes_set;
-       /**< Inform Ethernet device about reduced range of packet types to handle. */
-
-       vlan_filter_set_t          vlan_filter_set; /**< Filter VLAN Setup. */
-       vlan_tpid_set_t            vlan_tpid_set; /**< Outer/Inner VLAN TPID Setup. */
-       vlan_strip_queue_set_t     vlan_strip_queue_set; /**< VLAN Stripping on queue. */
-       vlan_offload_set_t         vlan_offload_set; /**< Set VLAN Offload. */
-       vlan_pvid_set_t            vlan_pvid_set; /**< Set port based TX VLAN insertion. */
-
-       eth_queue_start_t          rx_queue_start;/**< Start RX for a queue. */
-       eth_queue_stop_t           rx_queue_stop; /**< Stop RX for a queue. */
-       eth_queue_start_t          tx_queue_start;/**< Start TX for a queue. */
-       eth_queue_stop_t           tx_queue_stop; /**< Stop TX for a queue. */
-       eth_rx_queue_setup_t       rx_queue_setup;/**< Set up device RX queue. */
-       eth_queue_release_t        rx_queue_release; /**< Release RX queue. */
-
-       eth_rx_enable_intr_t       rx_queue_intr_enable;  /**< Enable Rx queue interrupt. */
-       eth_rx_disable_intr_t      rx_queue_intr_disable; /**< Disable Rx queue interrupt. */
-       eth_tx_queue_setup_t       tx_queue_setup;/**< Set up device TX queue. */
-       eth_queue_release_t        tx_queue_release; /**< Release TX queue. */
-       eth_tx_done_cleanup_t      tx_done_cleanup;/**< Free tx ring mbufs */
-
-       eth_dev_led_on_t           dev_led_on;    /**< Turn on LED. */
-       eth_dev_led_off_t          dev_led_off;   /**< Turn off LED. */
-
-       flow_ctrl_get_t            flow_ctrl_get; /**< Get flow control. */
-       flow_ctrl_set_t            flow_ctrl_set; /**< Setup flow control. */
-       priority_flow_ctrl_set_t   priority_flow_ctrl_set; /**< Setup priority flow control. */
-
-       eth_uc_hash_table_set_t    uc_hash_table_set; /**< Set Unicast Table Array. */
-       eth_uc_all_hash_table_set_t uc_all_hash_table_set; /**< Set Unicast hash bitmap. */
-
-       eth_mirror_rule_set_t      mirror_rule_set; /**< Add a traffic mirror rule. */
-       eth_mirror_rule_reset_t    mirror_rule_reset; /**< reset a traffic mirror rule. */
-
-       eth_udp_tunnel_port_add_t  udp_tunnel_port_add; /** Add UDP tunnel port. */
-       eth_udp_tunnel_port_del_t  udp_tunnel_port_del; /** Del UDP tunnel port. */
-
-       eth_set_queue_rate_limit_t set_queue_rate_limit; /**< Set queue rate limit. */
-
-       rss_hash_update_t          rss_hash_update; /** Configure RSS hash protocols. */
-       rss_hash_conf_get_t        rss_hash_conf_get; /** Get current RSS hash configuration. */
-       reta_update_t              reta_update;   /** Update redirection table. */
-       reta_query_t               reta_query;    /** Query redirection table. */
-
-       eth_get_reg_t              get_reg;           /**< Get registers. */
-       eth_get_eeprom_length_t    get_eeprom_length; /**< Get eeprom length. */
-       eth_get_eeprom_t           get_eeprom;        /**< Get eeprom data. */
-       eth_set_eeprom_t           set_eeprom;        /**< Set eeprom. */
-
-       eth_get_module_info_t      get_module_info;
-       /** Get plugin module eeprom attribute. */
-       eth_get_module_eeprom_t    get_module_eeprom;
-       /** Get plugin module eeprom data. */
-
-       eth_filter_ctrl_t          filter_ctrl; /**< common filter control. */
-
-       eth_get_dcb_info           get_dcb_info; /** Get DCB information. */
-
-       eth_timesync_enable_t      timesync_enable;
-       /** Turn IEEE1588/802.1AS timestamping on. */
-       eth_timesync_disable_t     timesync_disable;
-       /** Turn IEEE1588/802.1AS timestamping off. */
-       eth_timesync_read_rx_timestamp_t timesync_read_rx_timestamp;
-       /** Read the IEEE1588/802.1AS RX timestamp. */
-       eth_timesync_read_tx_timestamp_t timesync_read_tx_timestamp;
-       /** Read the IEEE1588/802.1AS TX timestamp. */
-       eth_timesync_adjust_time   timesync_adjust_time; /** Adjust the device clock. */
-       eth_timesync_read_time     timesync_read_time; /** Get the device clock time. */
-       eth_timesync_write_time    timesync_write_time; /** Set the device clock time. */
-
-       eth_read_clock             read_clock;
-
-       eth_xstats_get_by_id_t     xstats_get_by_id;
-       /**< Get extended device statistic values by ID. */
-       eth_xstats_get_names_by_id_t xstats_get_names_by_id;
-       /**< Get name of extended device statistics by ID. */
-
-       eth_tm_ops_get_t tm_ops_get;
-       /**< Get Traffic Management (TM) operations. */
-
-       eth_mtr_ops_get_t mtr_ops_get;
-       /**< Get Traffic Metering and Policing (MTR) operations. */
-
-       eth_pool_ops_supported_t pool_ops_supported;
-       /**< Test if a port supports specific mempool ops */
-
-       eth_hairpin_cap_get_t hairpin_cap_get;
-       /**< Returns the hairpin capabilities. */
-       eth_rx_hairpin_queue_setup_t rx_hairpin_queue_setup;
-       /**< Set up device RX hairpin queue. */
-       eth_tx_hairpin_queue_setup_t tx_hairpin_queue_setup;
-       /**< Set up device TX hairpin queue. */
-
-       eth_fec_get_capability_t fec_get_capability;
-       /**< Get Forward Error Correction(FEC) capability. */
-       eth_fec_get_t fec_get;
-       /**< Get Forward Error Correction(FEC) mode. */
-       eth_fec_set_t fec_set;
-       /**< Set Forward Error Correction(FEC) mode. */
-       hairpin_get_peer_ports_t hairpin_get_peer_ports;
-       /**< Get hairpin peer ports list. */
-       eth_hairpin_bind_t hairpin_bind;
-       /**< Bind all hairpin Tx queues of device to the peer port Rx queues. */
-       eth_hairpin_unbind_t hairpin_unbind;
-       /**< Unbind all hairpin Tx queues from the peer port Rx queues. */
-       eth_hairpin_queue_peer_update_t hairpin_queue_peer_update;
-       /**< Pass the current queue info and get the peer queue info. */
-       eth_hairpin_queue_peer_bind_t hairpin_queue_peer_bind;
-       /**< Set up the connection between the pair of hairpin queues. */
-       eth_hairpin_queue_peer_unbind_t hairpin_queue_peer_unbind;
-       /**< Disconnect the hairpin queues of a pair from each other. */
-
-       eth_get_monitor_addr_t get_monitor_addr;
-       /**< Get power monitoring condition for Rx queue. */
-};
-
-/**
- * RX/TX queue states
- */
-#define RTE_ETH_QUEUE_STATE_STOPPED 0
-#define RTE_ETH_QUEUE_STATE_STARTED 1
-#define RTE_ETH_QUEUE_STATE_HAIRPIN 2
-
-/**
- * @internal
- * Check if the selected Rx queue is hairpin queue.
- *
- * @param dev
- *  Pointer to the selected device.
- * @param queue_id
- *  The selected queue.
- *
- * @return
- *   - (1) if the queue is hairpin queue, 0 otherwise.
- */
-__rte_internal
-int rte_eth_dev_is_rx_hairpin_queue(struct rte_eth_dev *dev, uint16_t queue_id);
-
-/**
- * @internal
- * Check if the selected Tx queue is hairpin queue.
- *
- * @param dev
- *  Pointer to the selected device.
- * @param queue_id
- *  The selected queue.
- *
- * @return
- *   - (1) if the queue is hairpin queue, 0 otherwise.
- */
-__rte_internal
-int rte_eth_dev_is_tx_hairpin_queue(struct rte_eth_dev *dev, uint16_t queue_id);
-
-/**
- * @internal
- * Returns a ethdev slot specified by the unique identifier name.
- *
- * @param      name
- *  The pointer to the Unique identifier name for each Ethernet device
- * @return
- *   - The pointer to the ethdev slot, on success. NULL on error
- */
-__rte_internal
-struct rte_eth_dev *rte_eth_dev_allocated(const char *name);
-
-/**
- * @internal
- * Allocates a new ethdev slot for an ethernet device and returns the pointer
- * to that slot for the driver to use.
- *
- * @param      name    Unique identifier name for each Ethernet device
- * @return
- *   - Slot in the rte_dev_devices array for a new device;
- */
-__rte_internal
-struct rte_eth_dev *rte_eth_dev_allocate(const char *name);
-
-/**
- * @internal
- * Attach to the ethdev already initialized by the primary
- * process.
- *
- * @param       name    Ethernet device's name.
- * @return
- *   - Success: Slot in the rte_dev_devices array for attached
- *        device.
- *   - Error: Null pointer.
- */
-__rte_internal
-struct rte_eth_dev *rte_eth_dev_attach_secondary(const char *name);
-
-/**
- * @internal
- * Notify RTE_ETH_EVENT_DESTROY and release the specified ethdev port.
- *
- * The following PMD-managed data fields will be freed:
- *   - dev_private
- *   - mac_addrs
- *   - hash_mac_addrs
- * If one of these fields should not be freed,
- * it must be reset to NULL by the PMD, typically in dev_close method.
- *
- * @param eth_dev
- * Device to be detached.
- * @return
- *   - 0 on success, negative on error
- */
-__rte_internal
-int rte_eth_dev_release_port(struct rte_eth_dev *eth_dev);
-
-/**
- * @internal
- * Release device queues and clear its configuration to force the user
- * application to reconfigure it. It is for internal use only.
- *
- * @param dev
- *  Pointer to struct rte_eth_dev.
- *
- * @return
- *  void
- */
-__rte_internal
-void rte_eth_dev_internal_reset(struct rte_eth_dev *dev);
-
-/**
- * @internal Executes all the user application registered callbacks for
- * the specific device. It is for DPDK internal user only. User
- * application should not call it directly.
- *
- * @param dev
- *  Pointer to struct rte_eth_dev.
- * @param event
- *  Eth device interrupt event type.
- * @param ret_param
- *  To pass data back to user application.
- *  This allows the user application to decide if a particular function
- *  is permitted or not.
- *
- * @return
- *  int
- */
-__rte_internal
-int rte_eth_dev_callback_process(struct rte_eth_dev *dev,
-               enum rte_eth_event_type event, void *ret_param);
-
-/**
- * @internal
- * This is the last step of device probing.
- * It must be called after a port is allocated and initialized successfully.
- *
- * The notification RTE_ETH_EVENT_NEW is sent to other entities
- * (libraries and applications).
- * The state is set as RTE_ETH_DEV_ATTACHED.
- *
- * @param dev
- *  New ethdev port.
- */
-__rte_internal
-void rte_eth_dev_probing_finish(struct rte_eth_dev *dev);
-
-/**
- * Create memzone for HW rings.
- * malloc can't be used as the physical address is needed.
- * If the memzone is already created, then this function returns a ptr
- * to the old one.
- *
- * @param eth_dev
- *   The *eth_dev* pointer is the address of the *rte_eth_dev* structure
- * @param name
- *   The name of the memory zone
- * @param queue_id
- *   The index of the queue to add to name
- * @param size
- *   The sizeof of the memory area
- * @param align
- *   Alignment for resulting memzone. Must be a power of 2.
- * @param socket_id
- *   The *socket_id* argument is the socket identifier in case of NUMA.
- */
-__rte_internal
-const struct rte_memzone *
-rte_eth_dma_zone_reserve(const struct rte_eth_dev *eth_dev, const char *name,
-                        uint16_t queue_id, size_t size,
-                        unsigned align, int socket_id);
-
-/**
- * Free previously allocated memzone for HW rings.
- *
- * @param eth_dev
- *   The *eth_dev* pointer is the address of the *rte_eth_dev* structure
- * @param name
- *   The name of the memory zone
- * @param queue_id
- *   The index of the queue to add to name
- * @return
- *   Negative errno value on error, 0 on success.
- */
-__rte_internal
-int
-rte_eth_dma_zone_free(const struct rte_eth_dev *eth_dev, const char *name,
-                uint16_t queue_id);
-
-/**
- * @internal
- * Atomically set the link status for the specific device.
- * It is for use by DPDK device driver use only.
- * User applications should not call it
- *
- * @param dev
- *  Pointer to struct rte_eth_dev.
- * @param link
- *  New link status value.
- * @return
- *  Same convention as eth_link_update operation.
- *  0   if link up status has changed
- *  -1  if link up status was unchanged
- */
-static inline int
-rte_eth_linkstatus_set(struct rte_eth_dev *dev,
-                      const struct rte_eth_link *new_link)
-{
-       uint64_t *dev_link = (uint64_t *)&(dev->data->dev_link);
-       union {
-               uint64_t val64;
-               struct rte_eth_link link;
-       } orig;
-
-       RTE_BUILD_BUG_ON(sizeof(*new_link) != sizeof(uint64_t));
-
-       orig.val64 = __atomic_exchange_n(dev_link, *(const uint64_t *)new_link,
-                                       __ATOMIC_SEQ_CST);
-
-       return (orig.link.link_status == new_link->link_status) ? -1 : 0;
-}
-
-/**
- * @internal
- * Atomically get the link speed and status.
- *
- * @param dev
- *  Pointer to struct rte_eth_dev.
- * @param link
- *  link status value.
- */
-static inline void
-rte_eth_linkstatus_get(const struct rte_eth_dev *dev,
-                      struct rte_eth_link *link)
-{
-       uint64_t *src = (uint64_t *)&(dev->data->dev_link);
-       uint64_t *dst = (uint64_t *)link;
-
-       RTE_BUILD_BUG_ON(sizeof(*link) != sizeof(uint64_t));
-
-       *dst = __atomic_load_n(src, __ATOMIC_SEQ_CST);
-}
-
-/**
- * Allocate an unique switch domain identifier.
- *
- * A pool of switch domain identifiers which can be allocated on request. This
- * will enabled devices which support the concept of switch domains to request
- * a switch domain id which is guaranteed to be unique from other devices
- * running in the same process.
- *
- * @param domain_id
- *  switch domain identifier parameter to pass back to application
- *
- * @return
- *   Negative errno value on error, 0 on success.
- */
-__rte_internal
-int
-rte_eth_switch_domain_alloc(uint16_t *domain_id);
-
-/**
- * Free switch domain.
- *
- * Return a switch domain identifier to the pool of free identifiers after it is
- * no longer in use by device.
- *
- * @param domain_id
- *  switch domain identifier to free
- *
- * @return
- *   Negative errno value on error, 0 on success.
- */
-__rte_internal
-int
-rte_eth_switch_domain_free(uint16_t domain_id);
-
-/** Generic Ethernet device arguments  */
-struct rte_eth_devargs {
-       uint16_t ports[RTE_MAX_ETHPORTS];
-       /** port/s number to enable on a multi-port single function */
-       uint16_t nb_ports;
-       /** number of ports in ports field */
-       uint16_t representor_ports[RTE_MAX_ETHPORTS];
-       /** representor port/s identifier to enable on device */
-       uint16_t nb_representor_ports;
-       /** number of ports in representor port field */
-};
-
-/**
- * PMD helper function to parse ethdev arguments
- *
- * @param devargs
- *  device arguments
- * @param eth_devargs
- *  parsed ethdev specific arguments.
- *
- * @return
- *   Negative errno value on error, 0 on success.
- */
-__rte_internal
-int
-rte_eth_devargs_parse(const char *devargs, struct rte_eth_devargs *eth_devargs);
-
-
-typedef int (*ethdev_init_t)(struct rte_eth_dev *ethdev, void *init_params);
-typedef int (*ethdev_bus_specific_init)(struct rte_eth_dev *ethdev,
-       void *bus_specific_init_params);
-
-/**
- * PMD helper function for the creation of a new ethdev ports.
- *
- * @param device
- *  rte_device handle.
- * @param name
- *  port name.
- * @param priv_data_size
- *  size of private data required for port.
- * @param bus_specific_init
- *  port bus specific initialisation callback function
- * @param bus_init_params
- *  port bus specific initialisation parameters
- * @param ethdev_init
- *  device specific port initialization callback function
- * @param init_params
- *  port initialisation parameters
- *
- * @return
- *   Negative errno value on error, 0 on success.
- */
-__rte_internal
-int
-rte_eth_dev_create(struct rte_device *device, const char *name,
-       size_t priv_data_size,
-       ethdev_bus_specific_init bus_specific_init, void *bus_init_params,
-       ethdev_init_t ethdev_init, void *init_params);
-
-
-typedef int (*ethdev_uninit_t)(struct rte_eth_dev *ethdev);
-
-/**
- * PMD helper function for cleaning up the resources of a ethdev port on it's
- * destruction.
- *
- * @param ethdev
- *   ethdev handle of port.
- * @param ethdev_uninit
- *   device specific port un-initialise callback function
- *
- * @return
- *   Negative errno value on error, 0 on success.
- */
-__rte_internal
-int
-rte_eth_dev_destroy(struct rte_eth_dev *ethdev, ethdev_uninit_t ethdev_uninit);
-
-/**
- * @internal
- * Pass the current hairpin queue HW and/or SW information to the peer queue
- * and fetch back the information of the peer queue.
- *
- * @param peer_port
- *  Peer port identifier of the Ethernet device.
- * @param peer_queue
- *  Peer queue index of the port.
- * @param cur_info
- *  Pointer to the current information structure.
- * @param peer_info
- *  Pointer to the peer information, output.
- * @param direction
- *  Direction to pass the information.
- *  positive - pass Tx queue information and get peer Rx queue information
- *  zero - pass Rx queue information and get peer Tx queue information
- *
- * @return
- *  Negative errno value on error, 0 on success.
- */
-__rte_internal
-int
-rte_eth_hairpin_queue_peer_update(uint16_t peer_port, uint16_t peer_queue,
-                                 struct rte_hairpin_peer_info *cur_info,
-                                 struct rte_hairpin_peer_info *peer_info,
-                                 uint32_t direction);
-
-/**
- * @internal
- * Configure current hairpin queue with the peer information fetched to create
- * the connection (bind) with peer queue in the specified direction.
- * This function might need to be called twice to fully create the connections.
- *
- * @param cur_port
- *  Current port identifier of the Ethernet device.
- * @param cur_queue
- *  Current queue index of the port.
- * @param peer_info
- *  Pointer to the peer information, input.
- * @param direction
- *  Direction to create the connection.
- *  positive - bind current Tx queue to peer Rx queue
- *  zero - bind current Rx queue to peer Tx queue
- *
- * @return
- *  Negative errno value on error, 0 on success.
- */
-__rte_internal
-int
-rte_eth_hairpin_queue_peer_bind(uint16_t cur_port, uint16_t cur_queue,
-                               struct rte_hairpin_peer_info *peer_info,
-                               uint32_t direction);
-
-/**
- * @internal
- * Reset the current queue state and configuration to disconnect (unbind) it
- * from the peer queue.
- * This function might need to be called twice to disconnect each other.
- *
- * @param cur_port
- *  Current port identifier of the Ethernet device.
- * @param cur_queue
- *  Current queue index of the port.
- * @param direction
- *  Direction to destroy the connection.
- *  positive - unbind current Tx queue from peer Rx queue
- *  zero - unbind current Rx queue from peer Tx queue
- *
- * @return
- *  Negative errno value on error, 0 on success.
- */
-__rte_internal
-int
-rte_eth_hairpin_queue_peer_unbind(uint16_t cur_port, uint16_t cur_queue,
-                                 uint32_t direction);
-
-
-/*
- * Legacy ethdev API used internally by drivers.
- */
-
-/**
- * Define all structures for Ethertype Filter type.
- */
-
-#define RTE_ETHTYPE_FLAGS_MAC    0x0001 /**< If set, compare mac */
-#define RTE_ETHTYPE_FLAGS_DROP   0x0002 /**< If set, drop packet when match */
-
-/**
- * A structure used to define the ethertype filter entry
- * to support RTE_ETH_FILTER_ETHERTYPE data representation.
- */
-struct rte_eth_ethertype_filter {
-       struct rte_ether_addr mac_addr;   /**< Mac address to match. */
-       uint16_t ether_type;          /**< Ether type to match */
-       uint16_t flags;               /**< Flags from RTE_ETHTYPE_FLAGS_* */
-       uint16_t queue;               /**< Queue assigned to when match*/
-};
-
-/**
- * A structure used to define the TCP syn filter entry
- * to support RTE_ETH_FILTER_SYN data representation.
- */
-struct rte_eth_syn_filter {
-       /** 1 - higher priority than other filters, 0 - lower priority. */
-       uint8_t hig_pri;
-       uint16_t queue;      /**< Queue assigned to when match */
-};
-
-/**
- * filter type of tunneling packet
- */
-#define ETH_TUNNEL_FILTER_OMAC  0x01 /**< filter by outer MAC addr */
-#define ETH_TUNNEL_FILTER_OIP   0x02 /**< filter by outer IP Addr */
-#define ETH_TUNNEL_FILTER_TENID 0x04 /**< filter by tenant ID */
-#define ETH_TUNNEL_FILTER_IMAC  0x08 /**< filter by inner MAC addr */
-#define ETH_TUNNEL_FILTER_IVLAN 0x10 /**< filter by inner VLAN ID */
-#define ETH_TUNNEL_FILTER_IIP   0x20 /**< filter by inner IP addr */
-
-#define RTE_TUNNEL_FILTER_IMAC_IVLAN (ETH_TUNNEL_FILTER_IMAC | \
-                                       ETH_TUNNEL_FILTER_IVLAN)
-#define RTE_TUNNEL_FILTER_IMAC_IVLAN_TENID (ETH_TUNNEL_FILTER_IMAC | \
-                                       ETH_TUNNEL_FILTER_IVLAN | \
-                                       ETH_TUNNEL_FILTER_TENID)
-#define RTE_TUNNEL_FILTER_IMAC_TENID (ETH_TUNNEL_FILTER_IMAC | \
-                                       ETH_TUNNEL_FILTER_TENID)
-#define RTE_TUNNEL_FILTER_OMAC_TENID_IMAC (ETH_TUNNEL_FILTER_OMAC | \
-                                       ETH_TUNNEL_FILTER_TENID | \
-                                       ETH_TUNNEL_FILTER_IMAC)
-
-/**
- *  Select IPv4 or IPv6 for tunnel filters.
- */
-enum rte_tunnel_iptype {
-       RTE_TUNNEL_IPTYPE_IPV4 = 0, /**< IPv4. */
-       RTE_TUNNEL_IPTYPE_IPV6,     /**< IPv6. */
-};
-
-/**
- * Tunneling Packet filter configuration.
- */
-struct rte_eth_tunnel_filter_conf {
-       struct rte_ether_addr outer_mac;    /**< Outer MAC address to match. */
-       struct rte_ether_addr inner_mac;    /**< Inner MAC address to match. */
-       uint16_t inner_vlan;            /**< Inner VLAN to match. */
-       enum rte_tunnel_iptype ip_type; /**< IP address type. */
-       /**
-        * Outer destination IP address to match if ETH_TUNNEL_FILTER_OIP
-        * is set in filter_type, or inner destination IP address to match
-        * if ETH_TUNNEL_FILTER_IIP is set in filter_type.
-        */
-       union {
-               uint32_t ipv4_addr;     /**< IPv4 address in big endian. */
-               uint32_t ipv6_addr[4];  /**< IPv6 address in big endian. */
-       } ip_addr;
-       /** Flags from ETH_TUNNEL_FILTER_XX - see above. */
-       uint16_t filter_type;
-       enum rte_eth_tunnel_type tunnel_type; /**< Tunnel Type. */
-       uint32_t tenant_id;     /**< Tenant ID to match. VNI, GRE key... */
-       uint16_t queue_id;      /**< Queue assigned to if match. */
-};
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _RTE_ETHDEV_DRIVER_H_ */
diff --git a/lib/librte_ethdev/rte_ethdev_pci.h b/lib/librte_ethdev/rte_ethdev_pci.h
deleted file mode 100644 (file)
index bf71589..0000000
+++ /dev/null
@@ -1,164 +0,0 @@
-/* SPDX-License-Identifier: BSD-3-Clause
- * Copyright(c) 2017 Brocade Communications Systems, Inc.
- *   Author: Jan Blunck <jblunck@infradead.org>
- */
-
-#ifndef _RTE_ETHDEV_PCI_H_
-#define _RTE_ETHDEV_PCI_H_
-
-#include <rte_malloc.h>
-#include <rte_pci.h>
-#include <rte_bus_pci.h>
-#include <rte_config.h>
-#include <rte_ethdev_driver.h>
-
-/**
- * Copy pci device info to the Ethernet device data.
- * Shared memory (eth_dev->data) only updated by primary process, so it is safe
- * to call this function from both primary and secondary processes.
- *
- * @param eth_dev
- * The *eth_dev* pointer is the address of the *rte_eth_dev* structure.
- * @param pci_dev
- * The *pci_dev* pointer is the address of the *rte_pci_device* structure.
- */
-static inline void
-rte_eth_copy_pci_info(struct rte_eth_dev *eth_dev,
-       struct rte_pci_device *pci_dev)
-{
-       if ((eth_dev == NULL) || (pci_dev == NULL)) {
-               RTE_ETHDEV_LOG(ERR, "NULL pointer eth_dev=%p pci_dev=%p",
-                       (void *)eth_dev, (void *)pci_dev);
-               return;
-       }
-
-       eth_dev->intr_handle = &pci_dev->intr_handle;
-
-       if (rte_eal_process_type() == RTE_PROC_PRIMARY) {
-               eth_dev->data->dev_flags = 0;
-               if (pci_dev->driver->drv_flags & RTE_PCI_DRV_INTR_LSC)
-                       eth_dev->data->dev_flags |= RTE_ETH_DEV_INTR_LSC;
-               if (pci_dev->driver->drv_flags & RTE_PCI_DRV_INTR_RMV)
-                       eth_dev->data->dev_flags |= RTE_ETH_DEV_INTR_RMV;
-
-               eth_dev->data->numa_node = pci_dev->device.numa_node;
-       }
-}
-
-static inline int
-eth_dev_pci_specific_init(struct rte_eth_dev *eth_dev, void *bus_device) {
-       struct rte_pci_device *pci_dev = bus_device;
-
-       if (!pci_dev)
-               return -ENODEV;
-
-       rte_eth_copy_pci_info(eth_dev, pci_dev);
-
-       return 0;
-}
-
-/**
- * @internal
- * Allocates a new ethdev slot for an ethernet device and returns the pointer
- * to that slot for the driver to use.
- *
- * @param dev
- *     Pointer to the PCI device
- *
- * @param private_data_size
- *     Size of private data structure
- *
- * @return
- *     A pointer to a rte_eth_dev or NULL if allocation failed.
- */
-static inline struct rte_eth_dev *
-rte_eth_dev_pci_allocate(struct rte_pci_device *dev, size_t private_data_size)
-{
-       struct rte_eth_dev *eth_dev;
-       const char *name;
-
-       if (!dev)
-               return NULL;
-
-       name = dev->device.name;
-
-       if (rte_eal_process_type() == RTE_PROC_PRIMARY) {
-               eth_dev = rte_eth_dev_allocate(name);
-               if (!eth_dev)
-                       return NULL;
-
-               if (private_data_size) {
-                       eth_dev->data->dev_private = rte_zmalloc_socket(name,
-                               private_data_size, RTE_CACHE_LINE_SIZE,
-                               dev->device.numa_node);
-                       if (!eth_dev->data->dev_private) {
-                               rte_eth_dev_release_port(eth_dev);
-                               return NULL;
-                       }
-               }
-       } else {
-               eth_dev = rte_eth_dev_attach_secondary(name);
-               if (!eth_dev)
-                       return NULL;
-       }
-
-       eth_dev->device = &dev->device;
-       rte_eth_copy_pci_info(eth_dev, dev);
-       return eth_dev;
-}
-
-typedef int (*eth_dev_pci_callback_t)(struct rte_eth_dev *eth_dev);
-
-/**
- * @internal
- * Wrapper for use by pci drivers in a .probe function to attach to a ethdev
- * interface.
- */
-static inline int
-rte_eth_dev_pci_generic_probe(struct rte_pci_device *pci_dev,
-       size_t private_data_size, eth_dev_pci_callback_t dev_init)
-{
-       struct rte_eth_dev *eth_dev;
-       int ret;
-
-       eth_dev = rte_eth_dev_pci_allocate(pci_dev, private_data_size);
-       if (!eth_dev)
-               return -ENOMEM;
-
-       RTE_FUNC_PTR_OR_ERR_RET(*dev_init, -EINVAL);
-       ret = dev_init(eth_dev);
-       if (ret)
-               rte_eth_dev_release_port(eth_dev);
-       else
-               rte_eth_dev_probing_finish(eth_dev);
-
-       return ret;
-}
-
-/**
- * @internal
- * Wrapper for use by pci drivers in a .remove function to detach a ethdev
- * interface.
- */
-static inline int
-rte_eth_dev_pci_generic_remove(struct rte_pci_device *pci_dev,
-       eth_dev_pci_callback_t dev_uninit)
-{
-       struct rte_eth_dev *eth_dev;
-       int ret;
-
-       eth_dev = rte_eth_dev_allocated(pci_dev->device.name);
-       if (!eth_dev)
-               return 0;
-
-       if (dev_uninit) {
-               ret = dev_uninit(eth_dev);
-               if (ret)
-                       return ret;
-       }
-
-       rte_eth_dev_release_port(eth_dev);
-       return 0;
-}
-
-#endif /* _RTE_ETHDEV_PCI_H_ */
diff --git a/lib/librte_ethdev/rte_ethdev_vdev.h b/lib/librte_ethdev/rte_ethdev_vdev.h
deleted file mode 100644 (file)
index 4ba3f28..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/* SPDX-License-Identifier: BSD-3-Clause
- * Copyright(c) 2017 Brocade Communications Systems, Inc.
- *   Author: Jan Blunck <jblunck@infradead.org>
- */
-
-#ifndef _RTE_ETHDEV_VDEV_H_
-#define _RTE_ETHDEV_VDEV_H_
-
-#include <rte_config.h>
-#include <rte_malloc.h>
-#include <rte_bus_vdev.h>
-#include <rte_ethdev_driver.h>
-
-/**
- * @internal
- * Allocates a new ethdev slot for an ethernet device and returns the pointer
- * to that slot for the driver to use.
- *
- * @param dev
- *     Pointer to virtual device
- *
- * @param private_data_size
- *     Size of private data structure
- *
- * @return
- *     A pointer to a rte_eth_dev or NULL if allocation failed.
- */
-static inline struct rte_eth_dev *
-rte_eth_vdev_allocate(struct rte_vdev_device *dev, size_t private_data_size)
-{
-       struct rte_eth_dev *eth_dev;
-       const char *name = rte_vdev_device_name(dev);
-
-       eth_dev = rte_eth_dev_allocate(name);
-       if (!eth_dev)
-               return NULL;
-
-       if (private_data_size) {
-               eth_dev->data->dev_private = rte_zmalloc_socket(name,
-                       private_data_size, RTE_CACHE_LINE_SIZE,
-                       dev->device.numa_node);
-               if (!eth_dev->data->dev_private) {
-                       rte_eth_dev_release_port(eth_dev);
-                       return NULL;
-               }
-       }
-
-       eth_dev->device = &dev->device;
-       eth_dev->intr_handle = NULL;
-
-       eth_dev->data->numa_node = dev->device.numa_node;
-       return eth_dev;
-}
-
-#endif /* _RTE_ETHDEV_VDEV_H_ */
index f3d72827cc7a293fb70d0de4b6f332bea3f58b98..dabd819d109d513484c6322c0ab08c8a3bc94f39 100644 (file)
@@ -18,7 +18,7 @@
 #include <stdint.h>
 
 #include "rte_ethdev.h"
-#include "rte_ethdev_driver.h"
+#include "ethdev_driver.h"
 #include "rte_flow.h"
 
 #ifdef __cplusplus
index 3b395329351fb8fae828b778b6c2dd0b921cc9de..a0ddc2b5f47f1b91a4ce004966695c7f231bd808 100644 (file)
@@ -18,7 +18,7 @@
 
 #include <rte_errno.h>
 #include "rte_ethdev.h"
-#include "rte_ethdev_driver.h"
+#include "ethdev_driver.h"
 #include "rte_mtr.h"
 
 #ifdef __cplusplus
index b86ed89c00108380795ef5329af99fb068681b40..45290fb3fdade9b704384abc68a8ecee975e6227 100644 (file)
@@ -18,7 +18,7 @@
 
 #include <rte_errno.h>
 #include "rte_ethdev.h"
-#include "rte_ethdev_driver.h"
+#include "ethdev_driver.h"
 #include "rte_tm.h"
 
 #ifdef __cplusplus