git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cryptodev: simplify device list retrieval logic
[dpdk.git]
/
examples
/
vmdq
/
main.c
diff --git
a/examples/vmdq/main.c
b/examples/vmdq/main.c
index
a142d49
..
f639355
100644
(file)
--- a/
examples/vmdq/main.c
+++ b/
examples/vmdq/main.c
@@
-63,18
+63,18
@@
#include <rte_debug.h>
#include <rte_ether.h>
#include <rte_ethdev.h>
#include <rte_debug.h>
#include <rte_ether.h>
#include <rte_ethdev.h>
-#include <rte_ring.h>
#include <rte_log.h>
#include <rte_mempool.h>
#include <rte_mbuf.h>
#include <rte_memcpy.h>
#include <rte_log.h>
#include <rte_mempool.h>
#include <rte_mbuf.h>
#include <rte_memcpy.h>
-#define MAX_QUEUES 1
28
+#define MAX_QUEUES 1
024
/*
/*
- *
For 10 GbE, 128 queues require roughly
- *
128*512
(RX/TX_queue_nb * RX/TX_ring_descriptors_nb) per port.
+ *
1024 queues require to meet the needs of a large number of vmdq_pools.
+ * (RX/TX_queue_nb * RX/TX_ring_descriptors_nb) per port.
*/
*/
-#define NUM_MBUFS_PER_PORT (128*512)
+#define NUM_MBUFS_PER_PORT (MAX_QUEUES * RTE_MAX(RTE_TEST_RX_DESC_DEFAULT, \
+ RTE_TEST_TX_DESC_DEFAULT))
#define MBUF_CACHE_SIZE 64
#define MAX_PKT_BURST 32
#define MBUF_CACHE_SIZE 64
#define MAX_PKT_BURST 32
@@
-598,8
+598,6
@@
main(int argc, char *argv[])
rte_exit(EXIT_FAILURE, "Not enough cores\n");
nb_ports = rte_eth_dev_count();
rte_exit(EXIT_FAILURE, "Not enough cores\n");
nb_ports = rte_eth_dev_count();
- if (nb_ports > RTE_MAX_ETHPORTS)
- nb_ports = RTE_MAX_ETHPORTS;
/*
* Update the global var NUM_PORTS and global array PORTS
/*
* Update the global var NUM_PORTS and global array PORTS