diff options
author | Remy Horton <remy.horton@intel.com> | 2017-05-30 10:53:25 +0100 |
---|---|---|
committer | Remy Horton <remy.horton@intel.com> | 2017-06-30 11:09:47 +0100 |
commit | e151ee29d02d7802fab9e32b50ced54fd8d64160 (patch) | |
tree | a8488696519a8900ab23eb7dd1f02fc3b3b9fb0f /examples/l4fwd/netbe.h | |
parent | 6e95f5eca55672bdd90aab6cdbb3b479985782f3 (diff) |
Add l4fwd RXTX mode
This mode allows for transactions where the request and response
are of different payload sizes
Change-Id: I0744159f0618c9241e576a4af1c02765bbf1dd9f
Signed-off-by: Remy Horton <remy.horton@intel.com>
Diffstat (limited to 'examples/l4fwd/netbe.h')
-rw-r--r-- | examples/l4fwd/netbe.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/examples/l4fwd/netbe.h b/examples/l4fwd/netbe.h index 80d1c28..134ce3d 100644 --- a/examples/l4fwd/netbe.h +++ b/examples/l4fwd/netbe.h @@ -44,6 +44,8 @@ #include <tle_udp.h> #include <tle_event.h> +#define TLE_DEFAULT_MSS 536 + #define MAX_PKT_BURST 0x20 /* Used to allocate the memory for hash key. */ @@ -161,6 +163,7 @@ enum { RXONLY, TXONLY, RXTX, + ECHO, FWD, }; @@ -175,7 +178,8 @@ struct netfe_stream_prm { uint32_t belcore; uint16_t line; uint16_t op; - uint16_t txlen; /* valid/used only for TXONLY op. */ + uint32_t txlen; /* valid/used only for TXONLY op. */ + uint32_t rxlen; /* Used by RXTX */ struct netfe_sprm sprm; struct netfe_sprm fprm; /* valid/used only for FWD op. */ }; @@ -194,7 +198,10 @@ struct netfe_stream { uint16_t op; uint16_t proto; uint16_t family; - uint16_t txlen; + uint32_t txlen; + uint32_t rxlen; + uint16_t reply_count; + uint32_t rx_run_len; uint16_t posterr; /* # of time error event handling was postponed */ struct { uint64_t rxp; |