summaryrefslogtreecommitdiff
path: root/drivers/net/af_packet
diff options
context:
space:
mode:
authorJianfeng Tan <jianfeng.tan@intel.com>2017-11-07 06:54:21 +0000
committerThomas Monjalon <thomas@monjalon.net>2017-11-07 16:54:07 +0100
commitd4a586d29e65c1c1069e52a43ddda3f03f1c7770 (patch)
tree6d00569caf5a43a58e08d6b60be40737ed39e9f0 /drivers/net/af_packet
parent394d5b4c0aa1976a9b8384efb227bf39550c6675 (diff)
downloaddpdk-next-eventdev-d4a586d29e65c1c1069e52a43ddda3f03f1c7770.zip
dpdk-next-eventdev-d4a586d29e65c1c1069e52a43ddda3f03f1c7770.tar.gz
dpdk-next-eventdev-d4a586d29e65c1c1069e52a43ddda3f03f1c7770.tar.xz
bus/vdev: move code from EAL into a new driver
Move the vdev bus from lib/librte_eal to drivers/bus. As the crypto vdev helper function refers to data structure in rte_vdev.h, so we move those helper function into drivers/bus too. Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com>
Diffstat (limited to 'drivers/net/af_packet')
-rw-r--r--drivers/net/af_packet/Makefile1
-rw-r--r--drivers/net/af_packet/rte_eth_af_packet.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/af_packet/Makefile b/drivers/net/af_packet/Makefile
index b97c2a6..bb37d67 100644
--- a/drivers/net/af_packet/Makefile
+++ b/drivers/net/af_packet/Makefile
@@ -46,6 +46,7 @@ CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs
+LDLIBS += -lrte_bus_vdev
#
# all source are stored in SRCS-y
diff --git a/drivers/net/af_packet/rte_eth_af_packet.c b/drivers/net/af_packet/rte_eth_af_packet.c
index 28e6a94..fa84eb9 100644
--- a/drivers/net/af_packet/rte_eth_af_packet.c
+++ b/drivers/net/af_packet/rte_eth_af_packet.c
@@ -41,7 +41,7 @@
#include <rte_ethdev_vdev.h>
#include <rte_malloc.h>
#include <rte_kvargs.h>
-#include <rte_vdev.h>
+#include <rte_bus_vdev.h>
#include <linux/if_ether.h>
#include <linux/if_packet.h>