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
/
bond
/
main.c
diff --git
a/examples/bond/main.c
b/examples/bond/main.c
index
fcb4c4e
..
e90dc1d
100644
(file)
--- a/
examples/bond/main.c
+++ b/
examples/bond/main.c
@@
-96,7
+96,6
@@
#define RTE_LOGTYPE_DCB RTE_LOGTYPE_USER1
#define RTE_LOGTYPE_DCB RTE_LOGTYPE_USER1
-#define MBUF_DATA_SIZE (2048 + RTE_PKTMBUF_HEADROOM)
#define NB_MBUF (1024*8)
#define MAX_PKT_BURST 32
#define NB_MBUF (1024*8)
#define MAX_PKT_BURST 32
@@
-739,7
+738,7
@@
main(int argc, char *argv[])
rte_exit(EXIT_FAILURE, "You can have max 4 ports\n");
mbuf_pool = rte_pktmbuf_pool_create("MBUF_POOL", NB_MBUF, 32,
rte_exit(EXIT_FAILURE, "You can have max 4 ports\n");
mbuf_pool = rte_pktmbuf_pool_create("MBUF_POOL", NB_MBUF, 32,
- 0,
MBUF_DATA
_SIZE, rte_socket_id());
+ 0,
RTE_MBUF_DEFAULT_BUF
_SIZE, rte_socket_id());
if (mbuf_pool == NULL)
rte_exit(EXIT_FAILURE, "Cannot create mbuf pool\n");
if (mbuf_pool == NULL)
rte_exit(EXIT_FAILURE, "Cannot create mbuf pool\n");