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
apps: fix default mbuf size
[dpdk.git]
/
examples
/
qos_meter
/
main.c
diff --git
a/examples/qos_meter/main.c
b/examples/qos_meter/main.c
index
a5e2510
..
0de5e7f
100644
(file)
--- a/
examples/qos_meter/main.c
+++ b/
examples/qos_meter/main.c
@@
-70,7
+70,6
@@
* Buffer pool configuration
*
***/
* Buffer pool configuration
*
***/
-#define MBUF_DATA_SIZE (2048 + RTE_PKTMBUF_HEADROOM)
#define NB_MBUF 8192
#define MEMPOOL_CACHE_SIZE 256
#define NB_MBUF 8192
#define MEMPOOL_CACHE_SIZE 256
@@
-361,7
+360,7
@@
main(int argc, char **argv)
/* Buffer pool init */
pool = rte_pktmbuf_pool_create("pool", NB_MBUF, MEMPOOL_CACHE_SIZE,
/* Buffer pool init */
pool = rte_pktmbuf_pool_create("pool", NB_MBUF, MEMPOOL_CACHE_SIZE,
- 0,
MBUF_DATA
_SIZE, rte_socket_id());
+ 0,
RTE_MBUF_DEFAULT_BUF
_SIZE, rte_socket_id());
if (pool == NULL)
rte_exit(EXIT_FAILURE, "Buffer pool creation error\n");
if (pool == NULL)
rte_exit(EXIT_FAILURE, "Buffer pool creation error\n");