aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJerin Jacob <jerinj@marvell.com>2020-09-21 14:51:39 +0530
committerPetri Savolainen <petri.savolainen@nokia.com>2020-12-21 12:42:26 +0200
commit4194222eb01ba3a473e60b8ce527896dd7bf4d3f (patch)
tree4e4d95dc37e398cac373dcded697c7b7deb4ae6a /include
parent3995a90e92b781fe4bfb1e6e045078d1737b9c62 (diff)
api: cls: introduce SCTP terms
Introduce SCTP source and destination port terms. 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.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/odp/api/spec/classification.h b/include/odp/api/spec/classification.h
index b1b8f9a8f..999666423 100644
--- a/include/odp/api/spec/classification.h
+++ b/include/odp/api/spec/classification.h
@@ -111,7 +111,10 @@ typedef union odp_cls_pmr_terms_t {
uint64_t icmp_type:1;
/** ICMP code, implies IPPROTO=1 */
uint64_t icmp_code:1;
-
+ /** Source SCTP port, implies IPPROTO=132 */
+ uint64_t sctp_sport:1;
+ /** Destination SCTP port, implies IPPROTO=132 */
+ uint64_t sctp_dport:1;
} bit;
/** All bits of the bit field structure */
uint64_t all_bits;
@@ -575,6 +578,12 @@ typedef enum {
/** ICMP code (val_sz = 1), implies IPPROTO=1 */
ODP_PMR_ICMP_CODE,
+ /** Source SCTP port (val_sz = 2), implies IPPROTO=132 */
+ ODP_PMR_SCTP_SPORT,
+
+ /** Destination SCTP port (val_sz = 2), implies IPPROTO=132 */
+ ODP_PMR_SCTP_DPORT,
+
/** Inner header may repeat above values with this offset */
ODP_PMR_INNER_HDR_OFF = 32