1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2014-2020 Broadcom
7 #ifndef ULP_TEMPLATE_DB_H_
8 #define ULP_TEMPLATE_DB_H_
10 #define BNXT_ULP_REGFILE_MAX_SZ 16
11 #define BNXT_ULP_MAX_NUM_DEVICES 4
12 #define BNXT_ULP_LOG2_MAX_NUM_DEV 2
13 #define BNXT_ULP_CACHE_TBL_MAX_SZ 4
14 #define BNXT_ULP_CLASS_SIG_TBL_MAX_SZ 256
15 #define BNXT_ULP_CLASS_MATCH_LIST_MAX_SZ 2
16 #define BNXT_ULP_CLASS_HID_LOW_PRIME 7919
17 #define BNXT_ULP_CLASS_HID_HIGH_PRIME 7919
18 #define BNXT_ULP_CLASS_HID_SHFTR 0
19 #define BNXT_ULP_CLASS_HID_SHFTL 23
20 #define BNXT_ULP_CLASS_HID_MASK 255
21 #define BNXT_ULP_ACT_SIG_TBL_MAX_SZ 256
22 #define BNXT_ULP_ACT_MATCH_LIST_MAX_SZ 2
23 #define BNXT_ULP_ACT_HID_LOW_PRIME 7919
24 #define BNXT_ULP_ACT_HID_HIGH_PRIME 7919
25 #define BNXT_ULP_ACT_HID_SHFTR 0
26 #define BNXT_ULP_ACT_HID_SHFTL 23
27 #define BNXT_ULP_ACT_HID_MASK 255
28 #define BNXT_ULP_CACHE_TBL_IDENT_MAX_NUM 2
29 #define BNXT_ULP_GLB_RESOURCE_INFO_TBL_MAX_SZ 2
31 enum bnxt_ulp_action_bit {
32 BNXT_ULP_ACTION_BIT_MARK = 0x0000000000000001,
33 BNXT_ULP_ACTION_BIT_DROP = 0x0000000000000002,
34 BNXT_ULP_ACTION_BIT_COUNT = 0x0000000000000004,
35 BNXT_ULP_ACTION_BIT_RSS = 0x0000000000000008,
36 BNXT_ULP_ACTION_BIT_METER = 0x0000000000000010,
37 BNXT_ULP_ACTION_BIT_VNIC = 0x0000000000000020,
38 BNXT_ULP_ACTION_BIT_VPORT = 0x0000000000000040,
39 BNXT_ULP_ACTION_BIT_VXLAN_DECAP = 0x0000000000000080,
40 BNXT_ULP_ACTION_BIT_NVGRE_DECAP = 0x0000000000000100,
41 BNXT_ULP_ACTION_BIT_POP_MPLS = 0x0000000000000200,
42 BNXT_ULP_ACTION_BIT_PUSH_MPLS = 0x0000000000000400,
43 BNXT_ULP_ACTION_BIT_MAC_SWAP = 0x0000000000000800,
44 BNXT_ULP_ACTION_BIT_SET_MAC_SRC = 0x0000000000001000,
45 BNXT_ULP_ACTION_BIT_SET_MAC_DST = 0x0000000000002000,
46 BNXT_ULP_ACTION_BIT_POP_VLAN = 0x0000000000004000,
47 BNXT_ULP_ACTION_BIT_PUSH_VLAN = 0x0000000000008000,
48 BNXT_ULP_ACTION_BIT_SET_VLAN_PCP = 0x0000000000010000,
49 BNXT_ULP_ACTION_BIT_SET_VLAN_VID = 0x0000000000020000,
50 BNXT_ULP_ACTION_BIT_SET_IPV4_SRC = 0x0000000000040000,
51 BNXT_ULP_ACTION_BIT_SET_IPV4_DST = 0x0000000000080000,
52 BNXT_ULP_ACTION_BIT_SET_IPV6_SRC = 0x0000000000100000,
53 BNXT_ULP_ACTION_BIT_SET_IPV6_DST = 0x0000000000200000,
54 BNXT_ULP_ACTION_BIT_DEC_TTL = 0x0000000000400000,
55 BNXT_ULP_ACTION_BIT_SET_TP_SRC = 0x0000000000800000,
56 BNXT_ULP_ACTION_BIT_SET_TP_DST = 0x0000000001000000,
57 BNXT_ULP_ACTION_BIT_VXLAN_ENCAP = 0x0000000002000000,
58 BNXT_ULP_ACTION_BIT_NVGRE_ENCAP = 0x0000000004000000,
59 BNXT_ULP_ACTION_BIT_LAST = 0x0000000008000000
62 enum bnxt_ulp_hdr_bit {
63 BNXT_ULP_HDR_BIT_O_ETH = 0x0000000000000001,
64 BNXT_ULP_HDR_BIT_O_IPV4 = 0x0000000000000002,
65 BNXT_ULP_HDR_BIT_O_IPV6 = 0x0000000000000004,
66 BNXT_ULP_HDR_BIT_O_TCP = 0x0000000000000008,
67 BNXT_ULP_HDR_BIT_O_UDP = 0x0000000000000010,
68 BNXT_ULP_HDR_BIT_T_VXLAN = 0x0000000000000020,
69 BNXT_ULP_HDR_BIT_T_GRE = 0x0000000000000040,
70 BNXT_ULP_HDR_BIT_I_ETH = 0x0000000000000080,
71 BNXT_ULP_HDR_BIT_I_IPV4 = 0x0000000000000100,
72 BNXT_ULP_HDR_BIT_I_IPV6 = 0x0000000000000200,
73 BNXT_ULP_HDR_BIT_I_TCP = 0x0000000000000400,
74 BNXT_ULP_HDR_BIT_I_UDP = 0x0000000000000800,
75 BNXT_ULP_HDR_BIT_LAST = 0x0000000000001000
78 enum bnxt_ulp_act_type {
79 BNXT_ULP_ACT_TYPE_NOT_SUPPORTED = 0,
80 BNXT_ULP_ACT_TYPE_SUPPORTED = 1,
81 BNXT_ULP_ACT_TYPE_END = 2,
82 BNXT_ULP_ACT_TYPE_LAST = 3
85 enum bnxt_ulp_byte_order {
86 BNXT_ULP_BYTE_ORDER_BE = 0,
87 BNXT_ULP_BYTE_ORDER_LE = 1,
88 BNXT_ULP_BYTE_ORDER_LAST = 2
91 enum bnxt_ulp_cache_tbl_id {
92 BNXT_ULP_CACHE_TBL_ID_L2_CNTXT_TCAM_INGRESS = 0,
93 BNXT_ULP_CACHE_TBL_ID_L2_CNTXT_TCAM_EGRESS = 1,
94 BNXT_ULP_CACHE_TBL_ID_PROFILE_TCAM_INGRESS = 2,
95 BNXT_ULP_CACHE_TBL_ID_PROFILE_TCAM_EGRESS = 3,
96 BNXT_ULP_CACHE_TBL_ID_LAST = 4
99 enum bnxt_ulp_cf_idx {
100 BNXT_ULP_CF_IDX_MPLS_TAG_NUM = 0,
101 BNXT_ULP_CF_IDX_O_VTAG_NUM = 1,
102 BNXT_ULP_CF_IDX_O_VTAG_PRESENT = 2,
103 BNXT_ULP_CF_IDX_O_TWO_VTAGS = 3,
104 BNXT_ULP_CF_IDX_I_VTAG_NUM = 4,
105 BNXT_ULP_CF_IDX_I_VTAG_PRESENT = 5,
106 BNXT_ULP_CF_IDX_I_TWO_VTAGS = 6,
107 BNXT_ULP_CF_IDX_INCOMING_IF = 7,
108 BNXT_ULP_CF_IDX_DIRECTION = 8,
109 BNXT_ULP_CF_IDX_SVIF_FLAG = 9,
110 BNXT_ULP_CF_IDX_O_L3 = 10,
111 BNXT_ULP_CF_IDX_I_L3 = 11,
112 BNXT_ULP_CF_IDX_O_L4 = 12,
113 BNXT_ULP_CF_IDX_I_L4 = 13,
114 BNXT_ULP_CF_IDX_DEV_PORT_ID = 14,
115 BNXT_ULP_CF_IDX_DRV_FUNC_SVIF = 15,
116 BNXT_ULP_CF_IDX_DRV_FUNC_SPIF = 16,
117 BNXT_ULP_CF_IDX_DRV_FUNC_PARIF = 17,
118 BNXT_ULP_CF_IDX_DRV_FUNC_VNIC = 18,
119 BNXT_ULP_CF_IDX_DRV_FUNC_PHY_PORT = 19,
120 BNXT_ULP_CF_IDX_VF_FUNC_SVIF = 20,
121 BNXT_ULP_CF_IDX_VF_FUNC_SPIF = 21,
122 BNXT_ULP_CF_IDX_VF_FUNC_PARIF = 22,
123 BNXT_ULP_CF_IDX_VF_FUNC_VNIC = 23,
124 BNXT_ULP_CF_IDX_PHY_PORT_SVIF = 24,
125 BNXT_ULP_CF_IDX_PHY_PORT_SPIF = 25,
126 BNXT_ULP_CF_IDX_PHY_PORT_PARIF = 26,
127 BNXT_ULP_CF_IDX_PHY_PORT_VPORT = 27,
128 BNXT_ULP_CF_IDX_VFR_FLAG = 28,
129 BNXT_ULP_CF_IDX_LAST = 29
132 enum bnxt_ulp_device_id {
133 BNXT_ULP_DEVICE_ID_WH_PLUS = 0,
134 BNXT_ULP_DEVICE_ID_THOR = 1,
135 BNXT_ULP_DEVICE_ID_STINGRAY = 2,
136 BNXT_ULP_DEVICE_ID_STINGRAY2 = 3,
137 BNXT_ULP_DEVICE_ID_LAST = 4
140 enum bnxt_ulp_direction {
141 BNXT_ULP_DIRECTION_INGRESS = 0,
142 BNXT_ULP_DIRECTION_EGRESS = 1,
143 BNXT_ULP_DIRECTION_LAST = 2
146 enum bnxt_ulp_glb_regfile_index {
147 BNXT_ULP_GLB_REGFILE_INDEX_GLB_PROF_FUNC_ID = 0,
148 BNXT_ULP_GLB_REGFILE_INDEX_LAST = 1
151 enum bnxt_ulp_hdr_type {
152 BNXT_ULP_HDR_TYPE_NOT_SUPPORTED = 0,
153 BNXT_ULP_HDR_TYPE_SUPPORTED = 1,
154 BNXT_ULP_HDR_TYPE_END = 2,
155 BNXT_ULP_HDR_TYPE_LAST = 3
158 enum bnxt_ulp_mark_enable {
159 BNXT_ULP_MARK_ENABLE_NO = 0,
160 BNXT_ULP_MARK_ENABLE_YES = 1,
161 BNXT_ULP_MARK_ENABLE_LAST = 2
164 enum bnxt_ulp_mask_opc {
165 BNXT_ULP_MASK_OPC_SET_TO_CONSTANT = 0,
166 BNXT_ULP_MASK_OPC_SET_TO_HDR_FIELD = 1,
167 BNXT_ULP_MASK_OPC_SET_TO_REGFILE = 2,
168 BNXT_ULP_MASK_OPC_SET_TO_GLB_REGFILE = 3,
169 BNXT_ULP_MASK_OPC_ADD_PAD = 4,
170 BNXT_ULP_MASK_OPC_LAST = 5
173 enum bnxt_ulp_match_type {
174 BNXT_ULP_MATCH_TYPE_EM = 0,
175 BNXT_ULP_MATCH_TYPE_WC = 1,
176 BNXT_ULP_MATCH_TYPE_LAST = 2
179 enum bnxt_ulp_priority {
180 BNXT_ULP_PRIORITY_LEVEL_0 = 0,
181 BNXT_ULP_PRIORITY_LEVEL_1 = 1,
182 BNXT_ULP_PRIORITY_LEVEL_2 = 2,
183 BNXT_ULP_PRIORITY_LEVEL_3 = 3,
184 BNXT_ULP_PRIORITY_LEVEL_4 = 4,
185 BNXT_ULP_PRIORITY_LEVEL_5 = 5,
186 BNXT_ULP_PRIORITY_LEVEL_6 = 6,
187 BNXT_ULP_PRIORITY_LEVEL_7 = 7,
188 BNXT_ULP_PRIORITY_NOT_USED = 8,
189 BNXT_ULP_PRIORITY_LAST = 9
192 enum bnxt_ulp_regfile_index {
193 BNXT_ULP_REGFILE_INDEX_CLASS_TID = 0,
194 BNXT_ULP_REGFILE_INDEX_L2_CNTXT_ID_0 = 1,
195 BNXT_ULP_REGFILE_INDEX_L2_CNTXT_ID_1 = 2,
196 BNXT_ULP_REGFILE_INDEX_PROF_FUNC_ID_0 = 3,
197 BNXT_ULP_REGFILE_INDEX_PROF_FUNC_ID_1 = 4,
198 BNXT_ULP_REGFILE_INDEX_EM_PROFILE_ID_0 = 5,
199 BNXT_ULP_REGFILE_INDEX_EM_PROFILE_ID_1 = 6,
200 BNXT_ULP_REGFILE_INDEX_WC_PROFILE_ID_0 = 7,
201 BNXT_ULP_REGFILE_INDEX_WC_PROFILE_ID_1 = 8,
202 BNXT_ULP_REGFILE_INDEX_ACTION_PTR_MAIN = 9,
203 BNXT_ULP_REGFILE_INDEX_ACTION_PTR_0 = 10,
204 BNXT_ULP_REGFILE_INDEX_ENCAP_PTR_0 = 11,
205 BNXT_ULP_REGFILE_INDEX_ENCAP_PTR_1 = 12,
206 BNXT_ULP_REGFILE_INDEX_CRITICAL_RESOURCE = 13,
207 BNXT_ULP_REGFILE_INDEX_CACHE_ENTRY_PTR = 14,
208 BNXT_ULP_REGFILE_INDEX_NOT_USED = 15,
209 BNXT_ULP_REGFILE_INDEX_LAST = 16
212 enum bnxt_ulp_result_opc {
213 BNXT_ULP_RESULT_OPC_SET_TO_CONSTANT = 0,
214 BNXT_ULP_RESULT_OPC_SET_TO_ACT_PROP = 1,
215 BNXT_ULP_RESULT_OPC_SET_TO_ACT_BIT = 2,
216 BNXT_ULP_RESULT_OPC_SET_TO_ENCAP_ACT_PROP_SZ = 3,
217 BNXT_ULP_RESULT_OPC_SET_TO_REGFILE = 4,
218 BNXT_ULP_RESULT_OPC_SET_TO_GLB_REGFILE = 5,
219 BNXT_ULP_RESULT_OPC_SET_TO_COMP_FIELD = 6,
220 BNXT_ULP_RESULT_OPC_LAST = 7
223 enum bnxt_ulp_search_before_alloc {
224 BNXT_ULP_SEARCH_BEFORE_ALLOC_NO = 0,
225 BNXT_ULP_SEARCH_BEFORE_ALLOC_YES = 1,
226 BNXT_ULP_SEARCH_BEFORE_ALLOC_LAST = 2
229 enum bnxt_ulp_spec_opc {
230 BNXT_ULP_SPEC_OPC_SET_TO_CONSTANT = 0,
231 BNXT_ULP_SPEC_OPC_SET_TO_HDR_FIELD = 1,
232 BNXT_ULP_SPEC_OPC_SET_TO_COMP_FIELD = 2,
233 BNXT_ULP_SPEC_OPC_SET_TO_REGFILE = 3,
234 BNXT_ULP_SPEC_OPC_SET_TO_GLB_REGFILE = 4,
235 BNXT_ULP_SPEC_OPC_ADD_PAD = 5,
236 BNXT_ULP_SPEC_OPC_LAST = 6
239 enum bnxt_ulp_encap_vtag_encoding {
240 BNXT_ULP_ENCAP_VTAG_ENCODING_DTAG_ECAP_PRI = 4,
241 BNXT_ULP_ENCAP_VTAG_ENCODING_DTAG_REMAP_DIFFSERV = 5,
242 BNXT_ULP_ENCAP_VTAG_ENCODING_NO_TAG_ECAP_PRI = 6,
243 BNXT_ULP_ENCAP_VTAG_ENCODING_NO_TAG_REMAP_DIFFSERV = 7,
244 BNXT_ULP_ENCAP_VTAG_ENCODING_NO_TAG_REMAP_PRI_0 = 8,
245 BNXT_ULP_ENCAP_VTAG_ENCODING_NO_TAG_REMAP_PRI_1 = 9,
246 BNXT_ULP_ENCAP_VTAG_ENCODING_NO_TAG_REMAP_PRI_2 = 10,
247 BNXT_ULP_ENCAP_VTAG_ENCODING_NO_TAG_REMAP_PRI_3 = 11,
248 BNXT_ULP_ENCAP_VTAG_ENCODING_NO_TAG_REMAP_PRI_4 = 12,
249 BNXT_ULP_ENCAP_VTAG_ENCODING_NO_TAG_REMAP_PRI_5 = 13,
250 BNXT_ULP_ENCAP_VTAG_ENCODING_NO_TAG_REMAP_PRI_6 = 14,
251 BNXT_ULP_ENCAP_VTAG_ENCODING_NO_TAG_REMAP_PRI_7 = 15,
252 BNXT_ULP_ENCAP_VTAG_ENCODING_NOP = 0,
253 BNXT_ULP_ENCAP_VTAG_ENCODING_STAG_ECAP_PRI = 1,
254 BNXT_ULP_ENCAP_VTAG_ENCODING_STAG_IVLAN_PRI = 2,
255 BNXT_ULP_ENCAP_VTAG_ENCODING_STAG_REMAP_DIFFSERV = 3
258 enum bnxt_ulp_fdb_resource_flags {
259 BNXT_ULP_FDB_RESOURCE_FLAGS_DIR_EGR = 0x01,
260 BNXT_ULP_FDB_RESOURCE_FLAGS_DIR_INGR = 0x00
263 enum bnxt_ulp_fdb_type {
264 BNXT_ULP_FDB_TYPE_DEFAULT = 1,
265 BNXT_ULP_FDB_TYPE_REGULAR = 0
268 enum bnxt_ulp_flow_dir_bitmask {
269 BNXT_ULP_FLOW_DIR_BITMASK_EGR = 0x8000000000000000,
270 BNXT_ULP_FLOW_DIR_BITMASK_ING = 0x0000000000000000
273 enum bnxt_ulp_match_type_bitmask {
274 BNXT_ULP_MATCH_TYPE_BITMASK_EM = 0x0000000000000000,
275 BNXT_ULP_MATCH_TYPE_BITMASK_WM = 0x0000000000000001
278 enum bnxt_ulp_resource_func {
279 BNXT_ULP_RESOURCE_FUNC_INVALID = 0x00,
280 BNXT_ULP_RESOURCE_FUNC_EM_TABLE = 0x20,
281 BNXT_ULP_RESOURCE_FUNC_RSVD1 = 0x40,
282 BNXT_ULP_RESOURCE_FUNC_RSVD2 = 0x60,
283 BNXT_ULP_RESOURCE_FUNC_TCAM_TABLE = 0x80,
284 BNXT_ULP_RESOURCE_FUNC_INDEX_TABLE = 0x81,
285 BNXT_ULP_RESOURCE_FUNC_CACHE_TABLE = 0x82,
286 BNXT_ULP_RESOURCE_FUNC_IDENTIFIER = 0x83,
287 BNXT_ULP_RESOURCE_FUNC_IF_TABLE = 0x84,
288 BNXT_ULP_RESOURCE_FUNC_HW_FID = 0x85
291 enum bnxt_ulp_resource_sub_type {
292 BNXT_ULP_RESOURCE_SUB_TYPE_NOT_USED = 0,
293 BNXT_ULP_RESOURCE_SUB_TYPE_IT_NORMAL = 0,
294 BNXT_ULP_RESOURCE_SUB_TYPE_IT_VFR_ACT_IDX = 1,
295 BNXT_ULP_RESOURCE_SUB_TYPE_IT_INT_CNT_IDX = 2,
296 BNXT_ULP_RESOURCE_SUB_TYPE_IT_EXT_CNT_IDX = 3,
297 BNXT_ULP_RESOURCE_SUB_TYPE_TT_L2_CNTXT_TCAM_CACHE = 0,
298 BNXT_ULP_RESOURCE_SUB_TYPE_TT_PROFILE_TCAM_CACHE = 1
302 BNXT_ULP_SYM_BIG_ENDIAN = 0,
303 BNXT_ULP_SYM_DECAP_FUNC_NONE = 0,
304 BNXT_ULP_SYM_DECAP_FUNC_THRU_L2 = 11,
305 BNXT_ULP_SYM_DECAP_FUNC_THRU_L3 = 12,
306 BNXT_ULP_SYM_DECAP_FUNC_THRU_L4 = 13,
307 BNXT_ULP_SYM_DECAP_FUNC_THRU_TL2 = 3,
308 BNXT_ULP_SYM_DECAP_FUNC_THRU_TL3 = 8,
309 BNXT_ULP_SYM_DECAP_FUNC_THRU_TL4 = 9,
310 BNXT_ULP_SYM_DECAP_FUNC_THRU_TUN = 10,
311 BNXT_ULP_SYM_ECV_CUSTOM_EN_NO = 0,
312 BNXT_ULP_SYM_ECV_CUSTOM_EN_YES = 1,
313 BNXT_ULP_SYM_ECV_L2_EN_NO = 0,
314 BNXT_ULP_SYM_ECV_L2_EN_YES = 1,
315 BNXT_ULP_SYM_ECV_L3_TYPE_IPV4 = 4,
316 BNXT_ULP_SYM_ECV_L3_TYPE_IPV6 = 5,
317 BNXT_ULP_SYM_ECV_L3_TYPE_MPLS_8847 = 6,
318 BNXT_ULP_SYM_ECV_L3_TYPE_MPLS_8848 = 7,
319 BNXT_ULP_SYM_ECV_L3_TYPE_NONE = 0,
320 BNXT_ULP_SYM_ECV_L4_TYPE_NONE = 0,
321 BNXT_ULP_SYM_ECV_L4_TYPE_UDP = 4,
322 BNXT_ULP_SYM_ECV_L4_TYPE_UDP_CSUM = 5,
323 BNXT_ULP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_SYM_L4_HDR_TYPE_UPAR2 = 4,
352 BNXT_ULP_SYM_LITTLE_ENDIAN = 1,
353 BNXT_ULP_SYM_MATCH_TYPE_EM = 0,
354 BNXT_ULP_SYM_MATCH_TYPE_WM = 1,
356 BNXT_ULP_SYM_PKT_TYPE_L2 = 0,
357 BNXT_ULP_SYM_POP_VLAN_NO = 0,
358 BNXT_ULP_SYM_POP_VLAN_YES = 1,
359 BNXT_ULP_SYM_STINGRAY2_LOOPBACK_PORT = 3,
360 BNXT_ULP_SYM_STINGRAY_LOOPBACK_PORT = 3,
361 BNXT_ULP_SYM_THOR_LOOPBACK_PORT = 3,
362 BNXT_ULP_SYM_TL2_HDR_TYPE_DIX = 0,
363 BNXT_ULP_SYM_TL3_HDR_TYPE_IPV4 = 0,
364 BNXT_ULP_SYM_TL3_HDR_TYPE_IPV6 = 1,
365 BNXT_ULP_SYM_TL4_HDR_TYPE_TCP = 0,
366 BNXT_ULP_SYM_TL4_HDR_TYPE_UDP = 1,
367 BNXT_ULP_SYM_TUN_HDR_TYPE_GENEVE = 1,
368 BNXT_ULP_SYM_TUN_HDR_TYPE_GRE = 3,
369 BNXT_ULP_SYM_TUN_HDR_TYPE_IPV4 = 4,
370 BNXT_ULP_SYM_TUN_HDR_TYPE_IPV6 = 5,
371 BNXT_ULP_SYM_TUN_HDR_TYPE_MPLS = 7,
372 BNXT_ULP_SYM_TUN_HDR_TYPE_NONE = 15,
373 BNXT_ULP_SYM_TUN_HDR_TYPE_NVGRE = 2,
374 BNXT_ULP_SYM_TUN_HDR_TYPE_PPPOE = 6,
375 BNXT_ULP_SYM_TUN_HDR_TYPE_UPAR1 = 8,
376 BNXT_ULP_SYM_TUN_HDR_TYPE_UPAR2 = 9,
377 BNXT_ULP_SYM_TUN_HDR_TYPE_VXLAN = 0,
378 BNXT_ULP_SYM_WH_PLUS_LOOPBACK_PORT = 3,
382 enum bnxt_ulp_act_prop_sz {
383 BNXT_ULP_ACT_PROP_SZ_ENCAP_TUN_SZ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H_MPLS_2 = 4,
411 BNXT_ULP_ACT_PROP_SZ_OF_PUSH_MPLS_3 = 4,
412 BNXT_ULP_ACT_PROP_SZ_OF_PUSH_MPLS_4 = 4,
413 BNXT_ULP_ACT_PROP_SZ_OF_PUSH_MPLS_5 = 4,
414 BNXT_ULP_ACT_PROP_SZ_OF_PUSH_MPLS_6 = 4,
415 BNXT_ULP_ACT_PROP_SZ_OF_PUSH_MPLS_7 = 4,
416 BNXT_ULP_ACT_PROP_SZ_ENCAP_L2_DMAC = 6,
417 BNXT_ULP_ACT_PROP_SZ_ENCAP_L2_SMAC = 6,
418 BNXT_ULP_ACT_PROP_SZ_ENCAP_VTAG = 8,
419 BNXT_ULP_ACT_PROP_SZ_ENCAP_IP = 32,
420 BNXT_ULP_ACT_PROP_SZ_ENCAP_IP_SRC = 16,
421 BNXT_ULP_ACT_PROP_SZ_ENCAP_UDP = 4,
422 BNXT_ULP_ACT_PROP_SZ_ENCAP_TUN = 32,
423 BNXT_ULP_ACT_PROP_SZ_LAST = 4
426 enum bnxt_ulp_act_prop_idx {
427 BNXT_ULP_ACT_PROP_IDX_ENCAP_TUN_SZ = 0,
428 BNXT_ULP_ACT_PROP_IDX_ENCAP_IP_SZ = 4,
429 BNXT_ULP_ACT_PROP_IDX_ENCAP_VTAG_SZ = 8,
430 BNXT_ULP_ACT_PROP_IDX_ENCAP_VTAG_TYPE = 12,
431 BNXT_ULP_ACT_PROP_IDX_ENCAP_VTAG_NUM = 16,
432 BNXT_ULP_ACT_PROP_IDX_ENCAP_L3_TYPE = 20,
433 BNXT_ULP_ACT_PROP_IDX_MPLS_POP_NUM = 24,
434 BNXT_ULP_ACT_PROP_IDX_MPLS_PUSH_NUM = 28,
435 BNXT_ULP_ACT_PROP_IDX_PORT_ID = 32,
436 BNXT_ULP_ACT_PROP_IDX_VNIC = 36,
437 BNXT_ULP_ACT_PROP_IDX_VPORT = 40,
438 BNXT_ULP_ACT_PROP_IDX_MARK = 44,
439 BNXT_ULP_ACT_PROP_IDX_COUNT = 48,
440 BNXT_ULP_ACT_PROP_IDX_METER = 52,
441 BNXT_ULP_ACT_PROP_IDX_SET_MAC_SRC = 56,
442 BNXT_ULP_ACT_PROP_IDX_SET_MAC_DST = 64,
443 BNXT_ULP_ACT_PROP_IDX_OF_PUSH_VLAN = 72,
444 BNXT_ULP_ACT_PROP_IDX_OF_SET_VLAN_PCP = 76,
445 BNXT_ULP_ACT_PROP_IDX_OF_SET_VLAN_VID = 80,
446 BNXT_ULP_ACT_PROP_IDX_SET_IPV4_SRC = 84,
447 BNXT_ULP_ACT_PROP_IDX_SET_IPV4_DST = 88,
448 BNXT_ULP_ACT_PROP_IDX_SET_IPV6_SRC = 92,
449 BNXT_ULP_ACT_PROP_IDX_SET_IPV6_DST = 108,
450 BNXT_ULP_ACT_PROP_IDX_SET_TP_SRC = 124,
451 BNXT_ULP_ACT_PROP_IDX_SET_TP_DST = 128,
452 BNXT_ULP_ACT_PROP_IDX_OF_PUSH_MPLS_0 = 132,
453 BNXT_ULP_ACT_PROP_IDX_OF_PUSH_MPLS_1 = 136,
454 BNXT_ULP_ACT_PROP_IDX_OF_PUSH_MPLS_2 = 140,
455 BNXT_ULP_ACT_PROP_IDX_OF_PUSH_MPLS_3 = 144,
456 BNXT_ULP_ACT_PROP_IDX_OF_PUSH_MPLS_4 = 148,
457 BNXT_ULP_ACT_PROP_IDX_OF_PUSH_MPLS_5 = 152,
458 BNXT_ULP_ACT_PROP_IDX_OF_PUSH_MPLS_6 = 156,
459 BNXT_ULP_ACT_PROP_IDX_OF_PUSH_MPLS_7 = 160,
460 BNXT_ULP_ACT_PROP_IDX_ENCAP_L2_DMAC = 164,
461 BNXT_ULP_ACT_PROP_IDX_ENCAP_L2_SMAC = 170,
462 BNXT_ULP_ACT_PROP_IDX_ENCAP_VTAG = 176,
463 BNXT_ULP_ACT_PROP_IDX_ENCAP_IP = 184,
464 BNXT_ULP_ACT_PROP_IDX_ENCAP_IP_SRC = 216,
465 BNXT_ULP_ACT_PROP_IDX_ENCAP_UDP = 232,
466 BNXT_ULP_ACT_PROP_IDX_ENCAP_TUN = 236,
467 BNXT_ULP_ACT_PROP_IDX_LAST = 268
470 enum bnxt_ulp_class_hid {
471 BNXT_ULP_CLASS_HID_0013 = 0x0013
474 enum bnxt_ulp_act_hid {
475 BNXT_ULP_ACT_HID_0029 = 0x0029