aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJerin Jacob <jerinj@marvell.com>2020-09-21 14:58:25 +0530
committerPetri Savolainen <petri.savolainen@nokia.com>2020-12-21 12:42:26 +0200
commit08f4f1aa63f1aa1d97f1aa44cb2d6662a1d7e8a5 (patch)
treea4b576620b8283f8c49dd47e079e969cb404dbd1 /include
parent4194222eb01ba3a473e60b8ce527896dd7bf4d3f (diff)
api: cls: introduce GTPU tunnel endpoint id term
Introduce GTPU tunnel endpoint identifier term. Signed-off-by: Jerin Jacob <jerinj@marvell.com> Signed-off-by: Kiran Kumar K <kirankumark@marvell.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
Diffstat (limited to 'include')
-rw-r--r--include/odp/api/spec/classification.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/odp/api/spec/classification.h b/include/odp/api/spec/classification.h
index 999666423..c33aca13f 100644
--- a/include/odp/api/spec/classification.h
+++ b/include/odp/api/spec/classification.h
@@ -115,6 +115,8 @@ typedef union odp_cls_pmr_terms_t {
uint64_t sctp_sport:1;
/** Destination SCTP port, implies IPPROTO=132 */
uint64_t sctp_dport:1;
+ /** GTPv1 tunnel endpoint identifier */
+ uint64_t gtpv1_teid:1;
} bit;
/** All bits of the bit field structure */
uint64_t all_bits;
@@ -584,6 +586,14 @@ typedef enum {
/** Destination SCTP port (val_sz = 2), implies IPPROTO=132 */
ODP_PMR_SCTP_DPORT,
+ /** GTPv1 tunnel endpoint identifier (val_sz = 4)
+ *
+ * Matches if and only if IP protocol is UDP, UDP destination port
+ * is 2152 and the UDP payload interpreted as GTP header has GTP
+ * version 1 and TEID as specified.
+ */
+ ODP_PMR_GTPV1_TEID,
+
/** Inner header may repeat above values with this offset */
ODP_PMR_INNER_HDR_OFF = 32