aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJerin Jacob <jerinj@marvell.com>2020-09-21 14:43:21 +0530
committerPetri Savolainen <petri.savolainen@nokia.com>2020-12-21 12:42:26 +0200
commit3995a90e92b781fe4bfb1e6e045078d1737b9c62 (patch)
tree8a254b60ca42d1042b6ac60a7eeb58e6df52ccbb /include
parente35026097388c46b072268f0e5d19aad62ab388d (diff)
api: cls: introduce ICMP terms
Introduce ICMP identifier, code and type 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.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/odp/api/spec/classification.h b/include/odp/api/spec/classification.h
index 4320c8dc3..b1b8f9a8f 100644
--- a/include/odp/api/spec/classification.h
+++ b/include/odp/api/spec/classification.h
@@ -105,6 +105,12 @@ typedef union odp_cls_pmr_terms_t {
uint64_t custom_l3:1;
/** IGMP Group address, implies IPPROTO=2 */
uint64_t igmp_grp_addr:1;
+ /** ICMP identifier, implies IPPROTO=1 and ICMP_TYPE=0 or ICMP_TYPE=8 */
+ uint64_t icmp_id:1;
+ /** ICMP type, implies IPPROTO=1 */
+ uint64_t icmp_type:1;
+ /** ICMP code, implies IPPROTO=1 */
+ uint64_t icmp_code:1;
} bit;
/** All bits of the bit field structure */
@@ -560,6 +566,15 @@ typedef enum {
/** IGMP Group address (val_sz = 4), implies IPPROTO=2 */
ODP_PMR_IGMP_GRP_ADDR,
+ /** ICMP identifier (val_sz = 2), implies IPPROTO=1 and ICMP_TYPE=0 or ICMP_TYPE=8 */
+ ODP_PMR_ICMP_ID,
+
+ /** ICMP type (val_sz = 1), implies IPPROTO=1 */
+ ODP_PMR_ICMP_TYPE,
+
+ /** ICMP code (val_sz = 1), implies IPPROTO=1 */
+ ODP_PMR_ICMP_CODE,
+
/** Inner header may repeat above values with this offset */
ODP_PMR_INNER_HDR_OFF = 32