summaryrefslogtreecommitdiff
path: root/drivers/net/bnx2x
diff options
context:
space:
mode:
authorGaetan Rivet <gaetan.rivet@6wind.com>2017-10-26 12:06:08 +0200
committerThomas Monjalon <thomas@monjalon.net>2017-10-26 23:17:31 +0200
commitc752998b5e2eb5c827ffbecc5bd03ea28b14314f (patch)
tree512827085d17cbfef20d469ea10d8c033118aa15 /drivers/net/bnx2x
parent3df742a9175a22df2e723927a1ec90efead240d9 (diff)
downloaddpdk-next-eventdev-c752998b5e2eb5c827ffbecc5bd03ea28b14314f.zip
dpdk-next-eventdev-c752998b5e2eb5c827ffbecc5bd03ea28b14314f.tar.gz
dpdk-next-eventdev-c752998b5e2eb5c827ffbecc5bd03ea28b14314f.tar.xz
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>
Diffstat (limited to 'drivers/net/bnx2x')
-rw-r--r--drivers/net/bnx2x/Makefile1
-rw-r--r--drivers/net/bnx2x/bnx2x.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/bnx2x/Makefile b/drivers/net/bnx2x/Makefile
index 762d42e..90ff8b1 100644
--- a/drivers/net/bnx2x/Makefile
+++ b/drivers/net/bnx2x/Makefile
@@ -11,6 +11,7 @@ CFLAGS += -DZLIB_CONST
LDLIBS += -lz
LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs
+LDLIBS += -lrte_bus_pci
EXPORT_MAP := rte_pmd_bnx2x_version.map
diff --git a/drivers/net/bnx2x/bnx2x.h b/drivers/net/bnx2x/bnx2x.h
index 14e892c..497bc69 100644
--- a/drivers/net/bnx2x/bnx2x.h
+++ b/drivers/net/bnx2x/bnx2x.h
@@ -18,6 +18,7 @@
#include <rte_byteorder.h>
#include <rte_spinlock.h>
+#include <rte_bus_pci.h>
#include <rte_io.h>
#if RTE_BYTE_ORDER == RTE_LITTLE_ENDIAN