pci: introduce library and driver
authorGaetan Rivet <gaetan.rivet@6wind.com>
Thu, 26 Oct 2017 10:06:08 +0000 (12:06 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 26 Oct 2017 21:17:31 +0000 (23:17 +0200)
commitc752998b5e2eb5c827ffbecc5bd03ea28b14314f
tree512827085d17cbfef20d469ea10d8c033118aa15
parent3df742a9175a22df2e723927a1ec90efead240d9
pci: introduce library and driver

The PCI lib defines the types and methods allowing to use PCI elements.

The PCI bus implements a bus driver for PCI devices by constructing
rte_bus elements using the PCI lib.

Move the relevant code out of the EAL to its expected place.

Libraries, drivers, unit tests and applications are updated to use the
new rte_bus_pci.h header when necessary.

Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
112 files changed:
MAINTAINERS
app/test-pmd/testpmd.h
config/common_base
doc/api/doxy-api.conf
doc/guides/rel_notes/release_17_11.rst
drivers/bus/Makefile
drivers/bus/pci/Makefile [new file with mode: 0644]
drivers/bus/pci/bsd/Makefile [new file with mode: 0644]
drivers/bus/pci/bsd/pci.c [new file with mode: 0644]
drivers/bus/pci/linux/Makefile [new file with mode: 0644]
drivers/bus/pci/linux/pci.c [new file with mode: 0644]
drivers/bus/pci/linux/pci_init.h [new file with mode: 0644]
drivers/bus/pci/linux/pci_uio.c [new file with mode: 0644]
drivers/bus/pci/linux/pci_vfio.c [new file with mode: 0644]
drivers/bus/pci/pci_common.c [new file with mode: 0644]
drivers/bus/pci/pci_common_uio.c [new file with mode: 0644]
drivers/bus/pci/private.h [new file with mode: 0644]
drivers/bus/pci/rte_bus_pci.h [new file with mode: 0644]
drivers/bus/pci/rte_bus_pci_version.map [new file with mode: 0644]
drivers/crypto/qat/Makefile
drivers/crypto/qat/qat_crypto.c
drivers/crypto/qat/qat_qp.c
drivers/crypto/qat/rte_qat_cryptodev.c
drivers/event/octeontx/Makefile
drivers/event/skeleton/Makefile
drivers/mempool/octeontx/Makefile
drivers/mempool/octeontx/octeontx_fpavf.c
drivers/mempool/octeontx/octeontx_ssovf.c
drivers/net/ark/Makefile
drivers/net/ark/ark_ethdev.c
drivers/net/avp/Makefile
drivers/net/avp/avp_ethdev.c
drivers/net/bnx2x/Makefile
drivers/net/bnx2x/bnx2x.h
drivers/net/bnxt/Makefile
drivers/net/bnxt/bnxt.h
drivers/net/bonding/Makefile
drivers/net/bonding/rte_eth_bond_args.c
drivers/net/cxgbe/Makefile
drivers/net/cxgbe/base/adapter.h
drivers/net/cxgbe/cxgbe_ethdev.c
drivers/net/e1000/Makefile
drivers/net/e1000/em_ethdev.c
drivers/net/e1000/igb_ethdev.c
drivers/net/e1000/igb_pf.c
drivers/net/ena/Makefile
drivers/net/ena/ena_ethdev.h
drivers/net/enic/Makefile
drivers/net/enic/base/vnic_dev.h
drivers/net/enic/enic_ethdev.c
drivers/net/enic/enic_main.c
drivers/net/fm10k/Makefile
drivers/net/i40e/Makefile
drivers/net/i40e/i40e_ethdev.c
drivers/net/i40e/i40e_ethdev_vf.c
drivers/net/ixgbe/Makefile
drivers/net/ixgbe/ixgbe_ethdev.c
drivers/net/ixgbe/ixgbe_ethdev.h
drivers/net/liquidio/Makefile
drivers/net/mlx4/Makefile
drivers/net/mlx4/mlx4_ethdev.c
drivers/net/mlx5/Makefile
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5_ethdev.c
drivers/net/nfp/Makefile
drivers/net/nfp/nfp_nfpu.c
drivers/net/nfp/nfp_nfpu.h
drivers/net/octeontx/Makefile
drivers/net/octeontx/base/octeontx_pkivf.c
drivers/net/octeontx/base/octeontx_pkovf.c
drivers/net/qede/Makefile
drivers/net/sfc/Makefile
drivers/net/sfc/sfc.h
drivers/net/sfc/sfc_ethdev.c
drivers/net/szedata2/Makefile
drivers/net/thunderx/Makefile
drivers/net/thunderx/nicvf_ethdev.c
drivers/net/virtio/Makefile
drivers/net/virtio/virtio_ethdev.c
drivers/net/virtio/virtio_pci.h
drivers/net/vmxnet3/Makefile
drivers/net/vmxnet3/vmxnet3_ethdev.c
examples/ethtool/lib/rte_ethtool.c
examples/ip_pipeline/init.c
examples/kni/main.c
lib/Makefile
lib/librte_eal/bsdapp/eal/Makefile
lib/librte_eal/bsdapp/eal/eal.c
lib/librte_eal/bsdapp/eal/eal_pci.c [deleted file]
lib/librte_eal/common/Makefile
lib/librte_eal/common/eal_common_pci.c [deleted file]
lib/librte_eal/common/eal_common_pci_uio.c [deleted file]
lib/librte_eal/common/eal_private.h
lib/librte_eal/common/include/rte_pci.h [deleted file]
lib/librte_eal/linuxapp/eal/Makefile
lib/librte_eal/linuxapp/eal/eal.c
lib/librte_eal/linuxapp/eal/eal_interrupts.c
lib/librte_eal/linuxapp/eal/eal_pci.c [deleted file]
lib/librte_eal/linuxapp/eal/eal_pci_init.h [deleted file]
lib/librte_eal/linuxapp/eal/eal_pci_uio.c [deleted file]
lib/librte_eal/linuxapp/eal/eal_pci_vfio.c [deleted file]
lib/librte_eal/rte_eal_version.map
lib/librte_ether/rte_ethdev.h
lib/librte_ether/rte_ethdev_pci.h
lib/librte_eventdev/rte_eventdev_pmd_pci.h
lib/librte_pci/Makefile [new file with mode: 0644]
lib/librte_pci/rte_pci.c [new file with mode: 0644]
lib/librte_pci/rte_pci.h [new file with mode: 0644]
lib/librte_pci/rte_pci_version.map [new file with mode: 0644]
mk/rte.app.mk
test/test/test_kni.c
test/test/virtual_pmd.c