From d70a31a3ef2b60d978b336d5cc9ee5e1ec079dfc Mon Sep 17 00:00:00 2001 From: Eli Baum Date: Tue, 5 Oct 2021 09:06:49 -0400 Subject: pbrd: add vlan actions to vty Signed-off-by: Eli Baum --- pbrd/pbr_map.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'pbrd/pbr_map.h') diff --git a/pbrd/pbr_map.h b/pbrd/pbr_map.h index 694b915f48..3527523fc1 100644 --- a/pbrd/pbr_map.h +++ b/pbrd/pbr_map.h @@ -103,6 +103,17 @@ struct pbr_map_sequence { uint8_t dsfield; uint32_t mark; + /* + * Actions + */ + uint8_t action_pcp; + uint8_t action_vlan_id; +#define PBR_MAP_STRIP_INNER_ANY (1 << 0) + uint8_t action_vlan_flags; + +#define PBR_MAP_UNDEFINED_QUEUE_ID 0 + uint32_t action_queue_id; + /* * Family of the src/dst. Needed when deleting since we clear them */ @@ -158,6 +169,7 @@ struct pbr_map_sequence { #define PBR_MAP_INVALID_BOTH_NHANDGRP (1 << 3) #define PBR_MAP_INVALID_EMPTY (1 << 4) #define PBR_MAP_INVALID_VRF (1 << 5) +#define PBR_MAP_INVALID_SET_STRIP_VLAN (1 << 6) uint64_t reason; QOBJ_FIELDS; -- cgit v1.2.3