[API-NEXT,v5,7/7] api: ipsec: inbound inner packet checksum capability

Message ID 1517410819-24732-8-git-send-email-odpbot@yandex.ru
State New
Headers show
  • [API-NEXT,v5,1/7] api: packet: add protocol type enumeration
Related show

Commit Message

Github ODP bot Jan. 31, 2018, 3 p.m.
From: Petri Savolainen <petri.savolainen@linaro.org>

Add inbound inner packet checksum check capability. When
e.g. L4 checksum checking is not implemented in HW, it may
be better to leave checking for application, as it would
check only those packets that need the check.

Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>

/** Email created from pull request 403 (psavol:next-ipsec-tfc)
 ** https://github.com/Linaro/odp/pull/403
 ** Patch: https://github.com/Linaro/odp/pull/403.patch
 ** Base sha: 5718327018debbb02aacb464493504c95fbe57a3
 ** Merge commit sha: a8d85f63d9e1de7ba709e84b37a06e3482bdea1d
 include/odp/api/spec/ipsec.h | 5 +++++
 1 file changed, 5 insertions(+)


diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index 665dc07bc..2d1c4d9ba 100644
--- a/include/odp/api/spec/ipsec.h
+++ b/include/odp/api/spec/ipsec.h
@@ -238,6 +238,11 @@  typedef struct odp_ipsec_capability_t {
 	odp_support_t retain_header;
+	/**
+	 * Inner packet checksum check offload support in inbound direction.
+	 */
+	odp_proto_chksums_t chksums_in;
 	/** Maximum number of different destination CoSes in classification
 	 *  pipelining. The same CoS may be used for many SAs. This is equal or
 	 *  less than 'max_cos' capability in classifier API.