From 055c52583a2794da8ba1e85a48cce3832372b12f Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Wed, 8 Nov 2017 14:15:11 +0000 Subject: New upstream version 17.11-rc3 Change-Id: I6a5baa40612fe0c20f30b5fa773a6cbbac63a685 Signed-off-by: Luca Boccassi --- drivers/net/ring/Makefile | 5 ++++- drivers/net/ring/rte_eth_ring.c | 10 +++++----- drivers/net/ring/rte_eth_ring_version.map | 14 -------------- drivers/net/ring/rte_pmd_ring_version.map | 14 ++++++++++++++ 4 files changed, 23 insertions(+), 20 deletions(-) delete mode 100644 drivers/net/ring/rte_eth_ring_version.map create mode 100644 drivers/net/ring/rte_pmd_ring_version.map (limited to 'drivers/net/ring') diff --git a/drivers/net/ring/Makefile b/drivers/net/ring/Makefile index b7e1a378..085ffa57 100644 --- a/drivers/net/ring/Makefile +++ b/drivers/net/ring/Makefile @@ -38,8 +38,11 @@ LIB = librte_pmd_ring.a 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 -EXPORT_MAP := rte_eth_ring_version.map +EXPORT_MAP := rte_pmd_ring_version.map LIBABIVER := 2 diff --git a/drivers/net/ring/rte_eth_ring.c b/drivers/net/ring/rte_eth_ring.c index 464d3d38..a73c631f 100644 --- a/drivers/net/ring/rte_eth_ring.c +++ b/drivers/net/ring/rte_eth_ring.c @@ -36,9 +36,8 @@ #include #include #include -#include #include -#include +#include #include #include @@ -190,7 +189,7 @@ eth_dev_info(struct rte_eth_dev *dev, dev_info->min_rx_bufsize = 0; } -static void +static int eth_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats) { unsigned i; @@ -214,6 +213,8 @@ eth_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats) stats->ipackets = rx_total; stats->opackets = tx_total; stats->oerrors = tx_err_total; + + return 0; } static void @@ -356,7 +357,6 @@ do_eth_dev_ring_create(const char *name, eth_dev->data = data; eth_dev->dev_ops = &ops; - data->dev_flags = RTE_ETH_DEV_DETACHABLE; data->kdrv = RTE_KDRV_NONE; data->numa_node = numa_node; @@ -394,7 +394,7 @@ rte_eth_from_rings(const char *name, struct rte_ring *const rx_queues[], }; char args_str[32] = { 0 }; char ring_name[32] = { 0 }; - uint8_t port_id = RTE_MAX_ETHPORTS; + uint16_t port_id = RTE_MAX_ETHPORTS; int ret; /* do some parameter checking */ diff --git a/drivers/net/ring/rte_eth_ring_version.map b/drivers/net/ring/rte_eth_ring_version.map deleted file mode 100644 index 1f785d94..00000000 --- a/drivers/net/ring/rte_eth_ring_version.map +++ /dev/null @@ -1,14 +0,0 @@ -DPDK_2.0 { - global: - - rte_eth_from_rings; - - local: *; -}; - -DPDK_2.2 { - global: - - rte_eth_from_ring; - -} DPDK_2.0; diff --git a/drivers/net/ring/rte_pmd_ring_version.map b/drivers/net/ring/rte_pmd_ring_version.map new file mode 100644 index 00000000..1f785d94 --- /dev/null +++ b/drivers/net/ring/rte_pmd_ring_version.map @@ -0,0 +1,14 @@ +DPDK_2.0 { + global: + + rte_eth_from_rings; + + local: *; +}; + +DPDK_2.2 { + global: + + rte_eth_from_ring; + +} DPDK_2.0; -- cgit 1.2.3-korg