diff mbox series

[API-NEXT,v1,1/1] api: ipsec: require IPv4 or IPv6 flag to be set

Message ID 1512698412-27641-2-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [API-NEXT,v1,1/1] api: ipsec: require IPv4 or IPv6 flag to be set | expand

Commit Message

Github ODP bot Dec. 8, 2017, 2 a.m. UTC
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


Require IPv4/IPv6 flag to be set for IPsec processing. Hardware usually
requires this, so require application to set flag that it knows.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
/** Email created from pull request 328 (lumag:ipsec-ipv)
 ** https://github.com/Linaro/odp/pull/328
 ** Patch: https://github.com/Linaro/odp/pull/328.patch
 ** Base sha: 0980001e33b4190133d478a0aa2e718fd1e3c164
 ** Merge commit sha: 46c4acd7700a9c0d1328b3e05c8c6076c1010c4c
 **/
 include/odp/api/spec/ipsec.h | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index d57815ed2..28a28d741 100644
--- a/include/odp/api/spec/ipsec.h
+++ b/include/odp/api/spec/ipsec.h
@@ -1207,6 +1207,7 @@  typedef struct odp_ipsec_status_t {
  *
  * Each input packet must have a valid value for these metadata (other metadata
  * is ignored):
+ * - IPv4 or IPv6 flag: Set packet flag according to packet contents.
  * - L3 offset: Offset to the first byte of the (outmost) IP header
  * - L4 offset: When udp_encap is enabled, offset to the first byte of the
  *              encapsulating UDP header
@@ -1231,6 +1232,7 @@  typedef struct odp_ipsec_status_t {
  * Each successfully transformed packet has a valid value for these metadata
  * regardless of the inner packet parse configuration
  * (odp_ipsec_inbound_config_t):
+ * - IPv4 or IPv6 flag: Set packet flag according to packet contents.
  * - L3 offset: Offset to the first byte of the (outmost) IP header
  * - pktio:     For inline IPSEC processed packets, original packet input
  *              interface
@@ -1277,6 +1279,7 @@  int odp_ipsec_in(const odp_packet_t pkt_in[], int num_in,
  *
  * Each input packet must have a valid value for these metadata (other metadata
  * is ignored):
+ * - IPv4 or IPv6 flag: Set packet flag according to packet contents.
  * - L3 offset: Offset to the first byte of the (outmost) IP header
  * - L4 offset: Offset to the L4 header if L4 checksum offload is requested
  *
@@ -1294,6 +1297,7 @@  int odp_ipsec_in(const odp_packet_t pkt_in[], int num_in,
  * and content of packet data before the IP header is undefined.
  *
  * Each successfully transformed packet has a valid value for these metadata:
+ * - IPv4 or IPv6 flag: Set packet flag according to packet contents.
  * - L3 offset: Offset to the first byte of the (outmost) IP header
  *
  * @param          pkt_in   Packets to be processed