aboutsummaryrefslogtreecommitdiffstats
path: root/examples/l4fwd/netbe.h
diff options
context:
space:
mode:
authorKonstantin Ananyev <konstantin.ananyev@intel.com>2017-11-24 15:54:01 +0000
committerKonstantin Ananyev <konstantin.ananyev@intel.com>2017-11-24 15:57:32 +0000
commit3726dc50dd2a9873ac05847be80ca615ea4a708b (patch)
treee13139519f048b273cbe5ced963e98fc7d7b6ab5 /examples/l4fwd/netbe.h
parentc1b4951ccc6c7c5c44dbfb1d01f86bc5ea0016c8 (diff)
l4fwd: allow to specify TX payload contents for rxtx mode
Introduce a new command-line option that specifies the file with response payload. Change-Id: I1a208eeebe1d87970da23956fb08949abf601422 Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Diffstat (limited to 'examples/l4fwd/netbe.h')
-rw-r--r--examples/l4fwd/netbe.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/l4fwd/netbe.h b/examples/l4fwd/netbe.h
index 134ce3d..ebb1345 100644
--- a/examples/l4fwd/netbe.h
+++ b/examples/l4fwd/netbe.h
@@ -251,6 +251,13 @@ struct lcore_prm {
struct netfe_lcore_prm fe;
};
+struct tx_content {
+ size_t sz;
+ uint8_t *data;
+};
+
+extern struct tx_content tx_content;
+
/*
* debug/trace macros.
*/