aboutsummaryrefslogtreecommitdiff
path: root/include/odp/api/spec/ipsec.h
diff options
context:
space:
mode:
authorAnoob Joseph <anoobj@marvell.com>2020-12-15 10:51:38 +0000
committerMatias Elo <matias.elo@nokia.com>2020-12-23 10:44:46 +0200
commit87acd2bc638b026a58c837e5a5f5582861d97256 (patch)
tree387aa83058dbf623be1223727099925581b2689d /include/odp/api/spec/ipsec.h
parentddea8e9fd2badbd1d1979b1cbbe0b7498f8e811e (diff)
api: ipsec: allow L2 header to be provided in packet
Inline IPsec operation prepends an application provided header to the IPsec packet before sending the packet out. Allow an application to provide the header in packet data in front of the plain text IP packet as an alternative to providing the header through a separate memory buffer. Signed-off-by: Anoob Joseph <anoobj@marvell.com> Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'include/odp/api/spec/ipsec.h')
-rw-r--r--include/odp/api/spec/ipsec.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index 166603efa..156d66019 100644
--- a/include/odp/api/spec/ipsec.h
+++ b/include/odp/api/spec/ipsec.h
@@ -1297,7 +1297,13 @@ typedef struct odp_ipsec_out_inline_param_t {
struct {
/** Points to first byte of outer headers to be copied in
* front of the outgoing IPSEC packet. Implementation copies
- * the headers during odp_ipsec_out_inline() call. */
+ * the headers during odp_ipsec_out_inline() call.
+ *
+ * Null value indicates that the outer headers are in the
+ * packet data, starting at L2 offset and ending at the byte
+ * before L3 offset. In this case, value of 'len' field must
+ * be greater than zero and set to L3 offset minus L2 offset.
+ */
const uint8_t *ptr;
/** Outer header length in bytes */