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
ring: get size in memory
[dpdk.git]
/
examples
/
l2fwd
/
main.c
diff --git
a/examples/l2fwd/main.c
b/examples/l2fwd/main.c
index
65017bc
..
2d94366
100644
(file)
--- a/
examples/l2fwd/main.c
+++ b/
examples/l2fwd/main.c
@@
-163,6
+163,11
@@
static const struct rte_eth_txconf tx_conf = {
},
.tx_free_thresh = 0, /* Use PMD default values */
.tx_rs_thresh = 0, /* Use PMD default values */
},
.tx_free_thresh = 0, /* Use PMD default values */
.tx_rs_thresh = 0, /* Use PMD default values */
+ /*
+ * As the example won't handle mult-segments and offload cases,
+ * set the flag by default.
+ */
+ .txq_flags = ETH_TXQ_FLAGS_NOMULTSEGS | ETH_TXQ_FLAGS_NOOFFLOADS,
};
struct rte_mempool * l2fwd_pktmbuf_pool = NULL;
};
struct rte_mempool * l2fwd_pktmbuf_pool = NULL;