1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Marvell OcteonTx2 RVU Admin Function driver 3 * 4 * Copyright (C) 2018 Marvell International Ltd. 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License version 2 as 8 * published by the Free Software Foundation. 9 */ 10 11 #ifndef NPC_PROFILE_H 12 #define NPC_PROFILE_H 13 14 #define NPC_KPU_PROFILE_VER 0x0000000100050000 15 16 #define NPC_IH_W 0x8000 17 #define NPC_IH_UTAG 0x2000 18 19 #define NPC_ETYPE_IP 0x0800 20 #define NPC_ETYPE_IP6 0x86dd 21 #define NPC_ETYPE_ARP 0x0806 22 #define NPC_ETYPE_RARP 0x8035 23 #define NPC_ETYPE_MPLSU 0x8847 24 #define NPC_ETYPE_MPLSM 0x8848 25 #define NPC_ETYPE_ETAG 0x893f 26 #define NPC_ETYPE_CTAG 0x8100 27 #define NPC_ETYPE_SBTAG 0x88a8 28 #define NPC_ETYPE_ITAG 0x88e7 29 #define NPC_ETYPE_PTP 0x88f7 30 #define NPC_ETYPE_FCOE 0x8906 31 #define NPC_ETYPE_QINQ 0x9100 32 #define NPC_ETYPE_TRANS_ETH_BR 0x6558 33 #define NPC_ETYPE_PPP 0x880b 34 #define NPC_ETYPE_NSH 0x894f 35 #define NPC_ETYPE_DSA 0xdada 36 37 #define NPC_IPNH_HOP 0 38 #define NPC_IPNH_ICMP 1 39 #define NPC_IPNH_IGMP 2 40 #define NPC_IPNH_IP 4 41 #define NPC_IPNH_TCP 6 42 #define NPC_IPNH_UDP 17 43 #define NPC_IPNH_IP6 41 44 #define NPC_IPNH_ROUT 43 45 #define NPC_IPNH_FRAG 44 46 #define NPC_IPNH_GRE 47 47 #define NPC_IPNH_ESP 50 48 #define NPC_IPNH_AH 51 49 #define NPC_IPNH_ICMP6 58 50 #define NPC_IPNH_NONH 59 51 #define NPC_IPNH_DEST 60 52 #define NPC_IPNH_SCTP 132 53 #define NPC_IPNH_MOBILITY 135 54 #define NPC_IPNH_MPLS 137 55 #define NPC_IPNH_HOSTID 139 56 #define NPC_IPNH_SHIM6 140 57 58 #define NPC_UDP_PORT_PTP_E 319 59 #define NPC_UDP_PORT_PTP_G 320 60 #define NPC_UDP_PORT_GTPC 2123 61 #define NPC_UDP_PORT_GTPU 2152 62 #define NPC_UDP_PORT_VXLAN 4789 63 #define NPC_UDP_PORT_VXLANGPE 4790 64 #define NPC_UDP_PORT_GENEVE 6081 65 #define NPC_UDP_PORT_MPLS 6635 66 #define NPC_UDP_PORT_ESP 4500 67 68 #define NPC_VXLANGPE_NP_IP 0x1 69 #define NPC_VXLANGPE_NP_IP6 0x2 70 #define NPC_VXLANGPE_NP_ETH 0x3 71 #define NPC_VXLANGPE_NP_NSH 0x4 72 #define NPC_VXLANGPE_NP_MPLS 0x5 73 #define NPC_VXLANGPE_NP_GBP 0x6 74 #define NPC_VXLANGPE_NP_VBNG 0x7 75 76 #define NPC_NSH_NP_IP 0x1 77 #define NPC_NSH_NP_IP6 0x2 78 #define NPC_NSH_NP_ETH 0x3 79 #define NPC_NSH_NP_NSH 0x4 80 #define NPC_NSH_NP_MPLS 0x5 81 82 #define NPC_TCP_PORT_HTTP 80 83 #define NPC_TCP_PORT_HTTPS 443 84 #define NPC_TCP_PORT_PPTP 1723 85 86 #define NPC_MPLS_S 0x0100 87 88 #define NPC_IP_TTL_MASK 0xff00 89 #define NPC_IP_VER_4 0x4000 90 #define NPC_IP_VER_6 0x6000 91 #define NPC_IP_VER_MASK 0xf000 92 #define NPC_IP_HDR_LEN_5 0x0500 93 #define NPC_IP_HDR_LEN_MASK 0x0f00 94 #define NPC_IP_HDR_MF 0x2000 95 #define NPC_IP_HDR_FRAGOFF 0x1fff 96 97 #define NPC_IP6_HOP_MASK 0x00ff 98 #define NPC_IP6_FRAG_FRAGOFF 0xfff8 99 100 #define NPC_GRE_F_CSUM (0x1 << 15) 101 #define NPC_GRE_F_ROUTE (0x1 << 14) 102 #define NPC_GRE_F_KEY (0x1 << 13) 103 #define NPC_GRE_F_SEQ (0x1 << 12) 104 #define NPC_GRE_F_ACK (0x1 << 7) 105 #define NPC_GRE_FLAG_MASK (NPC_GRE_F_CSUM | NPC_GRE_F_ROUTE | \ 106 NPC_GRE_F_KEY | NPC_GRE_F_SEQ | NPC_GRE_F_ACK) 107 #define NPC_GRE_VER_MASK 0x0003 108 #define NPC_GRE_VER_1 0x0001 109 110 #define NPC_VXLAN_I 0x0800 111 112 #define NPC_VXLANGPE_VER (0x3 << 12) 113 #define NPC_VXLANGPE_I (0x1 << 11) 114 #define NPC_VXLANGPE_P (0x1 << 10) 115 #define NPC_VXLANGPE_B (0x1 << 9) 116 #define NPC_VXLANGPE_NP_MASK 0x00ff 117 118 #define NPC_NSH_NP_MASK 0x00ff 119 120 #define NPC_GENEVE_F_OAM (0x1 << 7) 121 #define NPC_GENEVE_F_CRI_OPT (0x1 << 6) 122 123 #define NPC_GTP_PT_GTP (0x1 << 12) 124 #define NPC_GTP_PT_MASK (0x1 << 12) 125 #define NPC_GTP_VER1 (0x1 << 13) 126 #define NPC_GTP_VER_MASK (0x7 << 13) 127 #define NPC_GTP_MT_G_PDU 0xff 128 #define NPC_GTP_MT_MASK 0xff 129 130 #define NPC_TCP_FLAGS_FIN 0x0001 131 #define NPC_TCP_FLAGS_SYN 0x0002 132 #define NPC_TCP_FLAGS_RST 0x0004 133 #define NPC_TCP_FLAGS_PSH 0x0008 134 #define NPC_TCP_FLAGS_ACK 0x0010 135 #define NPC_TCP_FLAGS_URG 0x0020 136 #define NPC_TCP_FLAGS_MASK 0x003f 137 138 #define NPC_TCP_DATA_OFFSET_5 0x5000 139 #define NPC_TCP_DATA_OFFSET_MASK 0xf000 140 141 #define NPC_DSA_EXTEND 0x1000 142 #define NPC_DSA_EDSA 0x8000 143 #define NPC_DSA_FDSA 0xc000 144 145 #define NPC_KEXOF_DMAC 8 146 #define MKEX_SIGN 0x19bbfdbd15f /* strtoull of "mkexprof" with base:36 */ 147 #define KEX_LD_CFG(bytesm1, hdr_ofs, ena, flags_ena, key_ofs) \ 148 (((bytesm1) << 16) | ((hdr_ofs) << 8) | ((ena) << 7) | \ 149 ((flags_ena) << 6) | ((key_ofs) & 0x3F)) 150 151 /* Rx parse key extract nibble enable */ 152 #define NPC_PARSE_NIBBLE_INTF_RX (NPC_PARSE_NIBBLE_CHAN | \ 153 NPC_PARSE_NIBBLE_LA_LTYPE | \ 154 NPC_PARSE_NIBBLE_LB_LTYPE | \ 155 NPC_PARSE_NIBBLE_LC_LTYPE | \ 156 NPC_PARSE_NIBBLE_LD_LTYPE | \ 157 NPC_PARSE_NIBBLE_LE_LTYPE) 158 /* Tx parse key extract nibble enable */ 159 #define NPC_PARSE_NIBBLE_INTF_TX (NPC_PARSE_NIBBLE_LA_LTYPE | \ 160 NPC_PARSE_NIBBLE_LB_LTYPE | \ 161 NPC_PARSE_NIBBLE_LC_LTYPE | \ 162 NPC_PARSE_NIBBLE_LD_LTYPE | \ 163 NPC_PARSE_NIBBLE_LE_LTYPE) 164 165 enum npc_kpu_parser_state { 166 NPC_S_NA = 0, 167 NPC_S_KPU1_ETHER, 168 NPC_S_KPU1_IH_NIX, 169 NPC_S_KPU1_IH, 170 NPC_S_KPU1_EXDSA, 171 NPC_S_KPU1_HIGIG2, 172 NPC_S_KPU1_IH_NIX_HIGIG2, 173 NPC_S_KPU2_CTAG, 174 NPC_S_KPU2_CTAG2, 175 NPC_S_KPU2_SBTAG, 176 NPC_S_KPU2_QINQ, 177 NPC_S_KPU2_ETAG, 178 NPC_S_KPU2_ITAG, 179 NPC_S_KPU2_PREHEADER, 180 NPC_S_KPU2_EXDSA, 181 NPC_S_KPU3_CTAG, 182 NPC_S_KPU3_STAG, 183 NPC_S_KPU3_QINQ, 184 NPC_S_KPU3_ITAG, 185 NPC_S_KPU3_CTAG_C, 186 NPC_S_KPU3_STAG_C, 187 NPC_S_KPU3_QINQ_C, 188 NPC_S_KPU3_DSA, 189 NPC_S_KPU4_MPLS, 190 NPC_S_KPU4_NSH, 191 NPC_S_KPU4_FDSA, 192 NPC_S_KPU5_IP, 193 NPC_S_KPU5_IP6, 194 NPC_S_KPU5_ARP, 195 NPC_S_KPU5_RARP, 196 NPC_S_KPU5_PTP, 197 NPC_S_KPU5_FCOE, 198 NPC_S_KPU5_MPLS, 199 NPC_S_KPU5_MPLS_PL, 200 NPC_S_KPU5_NSH, 201 NPC_S_KPU6_IP6_EXT, 202 NPC_S_KPU6_IP6_HOP_DEST, 203 NPC_S_KPU6_IP6_ROUT, 204 NPC_S_KPU6_IP6_FRAG, 205 NPC_S_KPU7_IP6_EXT, 206 NPC_S_KPU7_IP6_ROUT, 207 NPC_S_KPU7_IP6_FRAG, 208 NPC_S_KPU8_TCP, 209 NPC_S_KPU8_UDP, 210 NPC_S_KPU8_SCTP, 211 NPC_S_KPU8_ICMP, 212 NPC_S_KPU8_IGMP, 213 NPC_S_KPU8_ICMP6, 214 NPC_S_KPU8_GRE, 215 NPC_S_KPU8_AH, 216 NPC_S_KPU9_TU_MPLS_IN_GRE, 217 NPC_S_KPU9_TU_MPLS_IN_NSH, 218 NPC_S_KPU9_TU_MPLS_IN_IP, 219 NPC_S_KPU9_TU_MPLS_IN_UDP, 220 NPC_S_KPU9_TU_NSH_IN_GRE, 221 NPC_S_KPU9_VXLAN, 222 NPC_S_KPU9_VXLANGPE, 223 NPC_S_KPU9_GENEVE, 224 NPC_S_KPU9_GTPC, 225 NPC_S_KPU9_GTPU, 226 NPC_S_KPU9_ESP, 227 NPC_S_KPU10_TU_MPLS_IN_VXLANGPE, 228 NPC_S_KPU10_TU_MPLS_PL, 229 NPC_S_KPU10_TU_MPLS, 230 NPC_S_KPU10_TU_NSH_IN_VXLANGPE, 231 NPC_S_KPU11_TU_ETHER, 232 NPC_S_KPU11_TU_PPP, 233 NPC_S_KPU11_TU_MPLS_IN_NSH, 234 NPC_S_KPU11_TU_MPLS_PL, 235 NPC_S_KPU11_TU_MPLS, 236 NPC_S_KPU11_TU_ETHER_IN_NSH, 237 NPC_S_KPU12_TU_IP, 238 NPC_S_KPU12_TU_IP6, 239 NPC_S_KPU12_TU_ARP, 240 NPC_S_KPU13_TU_IP6_EXT, 241 NPC_S_KPU14_TU_IP6_EXT, 242 NPC_S_KPU15_TU_TCP, 243 NPC_S_KPU15_TU_UDP, 244 NPC_S_KPU15_TU_SCTP, 245 NPC_S_KPU15_TU_ICMP, 246 NPC_S_KPU15_TU_IGMP, 247 NPC_S_KPU15_TU_ICMP6, 248 NPC_S_KPU15_TU_ESP, 249 NPC_S_KPU15_TU_AH, 250 NPC_S_KPU16_HTTP_DATA, 251 NPC_S_KPU16_HTTPS_DATA, 252 NPC_S_KPU16_PPTP_DATA, 253 NPC_S_KPU16_TCP_DATA, 254 NPC_S_KPU16_UDP_DATA, 255 NPC_S_KPU16_UDP_PTP, 256 NPC_S_LAST /* has to be the last item */ 257 }; 258 259 enum npc_kpu_la_uflag { 260 NPC_F_LA_U_HAS_TAG = 0x10, 261 NPC_F_LA_U_HAS_IH_NIX = 0x20, 262 NPC_F_LA_U_HAS_HIGIG2 = 0x40, 263 }; 264 enum npc_kpu_la_lflag { 265 NPC_F_LA_L_UNK_ETYPE = 1, 266 NPC_F_LA_L_WITH_VLAN, 267 NPC_F_LA_L_WITH_ETAG, 268 NPC_F_LA_L_WITH_ITAG, 269 NPC_F_LA_L_WITH_MPLS, 270 NPC_F_LA_L_WITH_NSH, 271 }; 272 273 enum npc_kpu_lb_uflag { 274 NPC_F_LB_U_UNK_ETYPE = 0x80, 275 NPC_F_LB_U_MORE_TAG = 0x40, 276 }; 277 enum npc_kpu_lb_lflag { 278 NPC_F_LB_L_WITH_CTAG = 1, 279 NPC_F_LB_L_WITH_CTAG_UNK, 280 NPC_F_LB_L_WITH_STAG_CTAG, 281 NPC_F_LB_L_WITH_STAG_STAG, 282 NPC_F_LB_L_WITH_QINQ_CTAG, 283 NPC_F_LB_L_WITH_QINQ_QINQ, 284 NPC_F_LB_L_WITH_ITAG, 285 NPC_F_LB_L_WITH_ITAG_STAG, 286 NPC_F_LB_L_WITH_ITAG_CTAG, 287 NPC_F_LB_L_WITH_ITAG_UNK, 288 NPC_F_LB_L_WITH_BTAG_ITAG, 289 NPC_F_LB_L_WITH_STAG, 290 NPC_F_LB_L_WITH_QINQ, 291 NPC_F_LB_L_DSA, 292 NPC_F_LB_L_DSA_VLAN, 293 NPC_F_LB_L_EDSA, 294 NPC_F_LB_L_EDSA_VLAN, 295 NPC_F_LB_L_EXDSA, 296 NPC_F_LB_L_EXDSA_VLAN, 297 NPC_F_LB_L_FDSA, 298 }; 299 300 enum npc_kpu_lc_uflag { 301 NPC_F_LC_U_UNK_PROTO = 0x10, 302 NPC_F_LC_U_IP_FRAG = 0x20, 303 NPC_F_LC_U_IP6_FRAG = 0x40, 304 }; 305 enum npc_kpu_lc_lflag { 306 NPC_F_LC_L_IP_IN_IP = 1, 307 NPC_F_LC_L_6TO4, 308 NPC_F_LC_L_MPLS_IN_IP, 309 NPC_F_LC_L_IP6_TUN_IP6, 310 NPC_F_LC_L_IP6_MPLS_IN_IP, 311 NPC_F_LC_L_MPLS_4_LABELS, 312 NPC_F_LC_L_MPLS_3_LABELS, 313 NPC_F_LC_L_MPLS_2_LABELS, 314 NPC_F_LC_L_EXT_HOP, 315 NPC_F_LC_L_EXT_DEST, 316 NPC_F_LC_L_EXT_ROUT, 317 NPC_F_LC_L_EXT_MOBILITY, 318 NPC_F_LC_L_EXT_HOSTID, 319 NPC_F_LC_L_EXT_SHIM6, 320 }; 321 322 enum npc_kpu_ld_lflag { 323 NPC_F_LD_L_TCP_UNK_PORT = 1, 324 NPC_F_LD_L_TCP_HAS_OPTIONS, 325 NPC_F_LD_L_TCP_UNK_PORT_HAS_OPTIONS, 326 NPC_F_LD_L_UDP_UNK_PORT, 327 NPC_F_LD_L_GRE_NVGRE, 328 NPC_F_LD_L_GRE_HAS_SRE, 329 NPC_F_LD_L_GRE_HAS_CSUM, 330 NPC_F_LD_L_GRE_HAS_KEY, 331 NPC_F_LD_L_GRE_HAS_SEQ, 332 NPC_F_LD_L_GRE_HAS_CSUM_KEY, 333 NPC_F_LD_L_GRE_HAS_CSUM_SEQ, 334 NPC_F_LD_L_GRE_HAS_KEY_SEQ, 335 NPC_F_LD_L_GRE_HAS_CSUM_KEY_SEQ, 336 NPC_F_LD_L_GRE_HAS_ROUTE, 337 NPC_F_LD_L_GRE_UNK_PROTO, 338 NPC_F_LD_L_GRE_VER1, 339 NPC_F_LD_L_GRE_VER1_HAS_SEQ, 340 NPC_F_LD_L_GRE_VER1_HAS_ACK, 341 NPC_F_LD_L_GRE_VER1_HAS_SEQ_ACK, 342 NPC_F_LD_L_GRE_VER1_UNK_PROTO, 343 NPC_F_LD_L_MPLS_4_LABELS, 344 NPC_F_LD_L_MPLS_3_LABELS, 345 NPC_F_LD_L_MPLS_2_LABELS, 346 }; 347 348 enum npc_kpu_le_lflag { 349 NPC_F_LE_L_VXLAN_NOVNI, 350 NPC_F_LE_L_VXLANGPE_NOVNI, 351 NPC_F_LE_L_VXLANGPE_UNK, 352 NPC_F_LE_L_VXLANGPE_NONP, 353 NPC_F_LE_L_GENEVE_OAM, 354 NPC_F_LE_L_GENEVE_CRI_OPT, 355 NPC_F_LE_L_GENEVE_OAM_CRI_OPT, 356 NPC_F_LE_L_GTPU_G_PDU, 357 NPC_F_LE_L_GTPU_UNK, 358 }; 359 360 enum npc_kpu_lf_uflag { 361 NPC_F_LF_U_UNK_ETYPE = 0x10, 362 NPC_F_LF_U_HAS_TAG = 0x20, 363 }; 364 365 enum npc_kpu_lf_lflag { 366 NPC_F_LF_L_WITH_CTAG = 1, 367 NPC_F_LF_L_WITH_STAG_CTAG, 368 NPC_F_LF_L_WITH_STAG, 369 NPC_F_LF_L_WITH_QINQ_CTAG, 370 NPC_F_LF_L_WITH_QINQ, 371 }; 372 373 enum npc_kpu_lg_uflag { 374 NPC_F_LG_U_UNK_IP_PROTO = 0x10, 375 NPC_F_LG_U_IP_HAS_OPTIONS = 0x20, 376 NPC_F_LG_U_IP6_HAS_EXT = 0x40, 377 }; 378 379 enum npc_kpu_lh_uflag { 380 NPC_F_LH_U_TCP_HAS_OPTIONS = 0x80, 381 }; 382 383 enum npc_kpu_lh_lflag { 384 NPC_F_LH_L_TCP_HTTP = 1, 385 NPC_F_LH_L_TCP_HTTPS, 386 NPC_F_LH_L_TCP_PPTP, 387 NPC_F_LH_L_TCP_UNK_PORT, 388 NPC_F_LH_L_UDP_UNK_PORT, 389 }; 390 391 enum npc_kpu_err_code { 392 NPC_EC_NOERR = 0, /* has to be zero */ 393 NPC_EC_UNK, 394 NPC_EC_IH_LENGTH, 395 NPC_EC_EDSA_UNK, 396 NPC_EC_L2_K1, 397 NPC_EC_L2_K2, 398 NPC_EC_L2_K3, 399 NPC_EC_L2_K3_ETYPE_UNK, 400 NPC_EC_L2_K4, 401 NPC_EC_MPLS_2MANY, 402 NPC_EC_MPLS_UNK, 403 NPC_EC_NSH_UNK, 404 NPC_EC_IP_TTL_0, 405 NPC_EC_IP_FRAG_OFFSET_1, 406 NPC_EC_IP_VER, 407 NPC_EC_IP6_HOP_0, 408 NPC_EC_IP6_VER, 409 NPC_EC_TCP_FLAGS_FIN_ONLY, 410 NPC_EC_TCP_FLAGS_ZERO, 411 NPC_EC_TCP_FLAGS_RST_FIN, 412 NPC_EC_TCP_FLAGS_URG_SYN, 413 NPC_EC_TCP_FLAGS_RST_SYN, 414 NPC_EC_TCP_FLAGS_SYN_FIN, 415 NPC_EC_VXLAN, 416 NPC_EC_NVGRE, 417 NPC_EC_GRE, 418 NPC_EC_GRE_VER1, 419 NPC_EC_L4, 420 NPC_EC_OIP4_CSUM, 421 NPC_EC_IIP4_CSUM, 422 NPC_EC_LAST /* has to be the last item */ 423 }; 424 425 enum NPC_ERRLEV_E { 426 NPC_ERRLEV_RE = 0, 427 NPC_ERRLEV_LA = 1, 428 NPC_ERRLEV_LB = 2, 429 NPC_ERRLEV_LC = 3, 430 NPC_ERRLEV_LD = 4, 431 NPC_ERRLEV_LE = 5, 432 NPC_ERRLEV_LF = 6, 433 NPC_ERRLEV_LG = 7, 434 NPC_ERRLEV_LH = 8, 435 NPC_ERRLEV_R9 = 9, 436 NPC_ERRLEV_R10 = 10, 437 NPC_ERRLEV_R11 = 11, 438 NPC_ERRLEV_R12 = 12, 439 NPC_ERRLEV_R13 = 13, 440 NPC_ERRLEV_R14 = 14, 441 NPC_ERRLEV_NIX = 15, 442 NPC_ERRLEV_ENUM_LAST = 16, 443 }; 444 445 static const struct npc_kpu_profile_action ikpu_action_entries[] = { 446 { 447 NPC_ERRLEV_RE, NPC_EC_NOERR, 448 12, 16, 20, 0, 0, 449 NPC_S_KPU1_ETHER, 0, 0, 450 NPC_LID_LA, NPC_LT_NA, 451 0, 452 0, 0, 0, 0, 453 454 }, 455 { 456 NPC_ERRLEV_RE, NPC_EC_NOERR, 457 12, 16, 20, 0, 0, 458 NPC_S_KPU1_ETHER, 0, 0, 459 NPC_LID_LA, NPC_LT_NA, 460 0, 461 0, 0, 0, 0, 462 463 }, 464 { 465 NPC_ERRLEV_RE, NPC_EC_NOERR, 466 12, 16, 20, 0, 0, 467 NPC_S_KPU1_ETHER, 0, 0, 468 NPC_LID_LA, NPC_LT_NA, 469 0, 470 0, 0, 0, 0, 471 472 }, 473 { 474 NPC_ERRLEV_RE, NPC_EC_NOERR, 475 12, 16, 20, 0, 0, 476 NPC_S_KPU1_ETHER, 0, 0, 477 NPC_LID_LA, NPC_LT_NA, 478 0, 479 0, 0, 0, 0, 480 481 }, 482 { 483 NPC_ERRLEV_RE, NPC_EC_NOERR, 484 12, 16, 20, 0, 0, 485 NPC_S_KPU1_ETHER, 0, 0, 486 NPC_LID_LA, NPC_LT_NA, 487 0, 488 0, 0, 0, 0, 489 490 }, 491 { 492 NPC_ERRLEV_RE, NPC_EC_NOERR, 493 12, 16, 20, 0, 0, 494 NPC_S_KPU1_ETHER, 0, 0, 495 NPC_LID_LA, NPC_LT_NA, 496 0, 497 0, 0, 0, 0, 498 499 }, 500 { 501 NPC_ERRLEV_RE, NPC_EC_NOERR, 502 12, 16, 20, 0, 0, 503 NPC_S_KPU1_ETHER, 0, 0, 504 NPC_LID_LA, NPC_LT_NA, 505 0, 506 0, 0, 0, 0, 507 508 }, 509 { 510 NPC_ERRLEV_RE, NPC_EC_NOERR, 511 12, 16, 20, 0, 0, 512 NPC_S_KPU1_ETHER, 0, 0, 513 NPC_LID_LA, NPC_LT_NA, 514 0, 515 0, 0, 0, 0, 516 517 }, 518 { 519 NPC_ERRLEV_RE, NPC_EC_NOERR, 520 12, 16, 20, 0, 0, 521 NPC_S_KPU1_ETHER, 0, 0, 522 NPC_LID_LA, NPC_LT_NA, 523 0, 524 0, 0, 0, 0, 525 526 }, 527 { 528 NPC_ERRLEV_RE, NPC_EC_NOERR, 529 12, 16, 20, 0, 0, 530 NPC_S_KPU1_ETHER, 0, 0, 531 NPC_LID_LA, NPC_LT_NA, 532 0, 533 0, 0, 0, 0, 534 535 }, 536 { 537 NPC_ERRLEV_RE, NPC_EC_NOERR, 538 12, 16, 20, 0, 0, 539 NPC_S_KPU1_ETHER, 0, 0, 540 NPC_LID_LA, NPC_LT_NA, 541 0, 542 0, 0, 0, 0, 543 544 }, 545 { 546 NPC_ERRLEV_RE, NPC_EC_NOERR, 547 12, 16, 20, 0, 0, 548 NPC_S_KPU1_ETHER, 0, 0, 549 NPC_LID_LA, NPC_LT_NA, 550 0, 551 0, 0, 0, 0, 552 553 }, 554 { 555 NPC_ERRLEV_RE, NPC_EC_NOERR, 556 12, 16, 20, 0, 0, 557 NPC_S_KPU1_ETHER, 0, 0, 558 NPC_LID_LA, NPC_LT_NA, 559 0, 560 0, 0, 0, 0, 561 562 }, 563 { 564 NPC_ERRLEV_RE, NPC_EC_NOERR, 565 12, 16, 20, 0, 0, 566 NPC_S_KPU1_ETHER, 0, 0, 567 NPC_LID_LA, NPC_LT_NA, 568 0, 569 0, 0, 0, 0, 570 571 }, 572 { 573 NPC_ERRLEV_RE, NPC_EC_NOERR, 574 12, 16, 20, 0, 0, 575 NPC_S_KPU1_ETHER, 0, 0, 576 NPC_LID_LA, NPC_LT_NA, 577 0, 578 0, 0, 0, 0, 579 580 }, 581 { 582 NPC_ERRLEV_RE, NPC_EC_NOERR, 583 12, 16, 20, 0, 0, 584 NPC_S_KPU1_ETHER, 0, 0, 585 NPC_LID_LA, NPC_LT_NA, 586 0, 587 0, 0, 0, 0, 588 589 }, 590 { 591 NPC_ERRLEV_RE, NPC_EC_NOERR, 592 12, 16, 20, 0, 0, 593 NPC_S_KPU1_ETHER, 0, 0, 594 NPC_LID_LA, NPC_LT_NA, 595 0, 596 0, 0, 0, 0, 597 598 }, 599 { 600 NPC_ERRLEV_RE, NPC_EC_NOERR, 601 12, 16, 20, 0, 0, 602 NPC_S_KPU1_ETHER, 0, 0, 603 NPC_LID_LA, NPC_LT_NA, 604 0, 605 0, 0, 0, 0, 606 607 }, 608 { 609 NPC_ERRLEV_RE, NPC_EC_NOERR, 610 12, 16, 20, 0, 0, 611 NPC_S_KPU1_ETHER, 0, 0, 612 NPC_LID_LA, NPC_LT_NA, 613 0, 614 0, 0, 0, 0, 615 616 }, 617 { 618 NPC_ERRLEV_RE, NPC_EC_NOERR, 619 12, 16, 20, 0, 0, 620 NPC_S_KPU1_ETHER, 0, 0, 621 NPC_LID_LA, NPC_LT_NA, 622 0, 623 0, 0, 0, 0, 624 625 }, 626 { 627 NPC_ERRLEV_RE, NPC_EC_NOERR, 628 12, 16, 20, 0, 0, 629 NPC_S_KPU1_ETHER, 0, 0, 630 NPC_LID_LA, NPC_LT_NA, 631 0, 632 0, 0, 0, 0, 633 634 }, 635 { 636 NPC_ERRLEV_RE, NPC_EC_NOERR, 637 12, 16, 20, 0, 0, 638 NPC_S_KPU1_ETHER, 0, 0, 639 NPC_LID_LA, NPC_LT_NA, 640 0, 641 0, 0, 0, 0, 642 643 }, 644 { 645 NPC_ERRLEV_RE, NPC_EC_NOERR, 646 12, 16, 20, 0, 0, 647 NPC_S_KPU1_ETHER, 0, 0, 648 NPC_LID_LA, NPC_LT_NA, 649 0, 650 0, 0, 0, 0, 651 652 }, 653 { 654 NPC_ERRLEV_RE, NPC_EC_NOERR, 655 12, 16, 20, 0, 0, 656 NPC_S_KPU1_ETHER, 0, 0, 657 NPC_LID_LA, NPC_LT_NA, 658 0, 659 0, 0, 0, 0, 660 661 }, 662 { 663 NPC_ERRLEV_RE, NPC_EC_NOERR, 664 12, 16, 20, 0, 0, 665 NPC_S_KPU1_ETHER, 0, 0, 666 NPC_LID_LA, NPC_LT_NA, 667 0, 668 0, 0, 0, 0, 669 670 }, 671 { 672 NPC_ERRLEV_RE, NPC_EC_NOERR, 673 12, 16, 20, 0, 0, 674 NPC_S_KPU1_ETHER, 0, 0, 675 NPC_LID_LA, NPC_LT_NA, 676 0, 677 0, 0, 0, 0, 678 679 }, 680 { 681 NPC_ERRLEV_RE, NPC_EC_NOERR, 682 12, 16, 20, 0, 0, 683 NPC_S_KPU1_ETHER, 0, 0, 684 NPC_LID_LA, NPC_LT_NA, 685 0, 686 0, 0, 0, 0, 687 688 }, 689 { 690 NPC_ERRLEV_RE, NPC_EC_NOERR, 691 12, 16, 20, 0, 0, 692 NPC_S_KPU1_ETHER, 0, 0, 693 NPC_LID_LA, NPC_LT_NA, 694 0, 695 0, 0, 0, 0, 696 697 }, 698 { 699 NPC_ERRLEV_RE, NPC_EC_NOERR, 700 12, 16, 20, 0, 0, 701 NPC_S_KPU1_ETHER, 0, 0, 702 NPC_LID_LA, NPC_LT_NA, 703 0, 704 0, 0, 0, 0, 705 706 }, 707 { 708 NPC_ERRLEV_RE, NPC_EC_NOERR, 709 12, 16, 20, 0, 0, 710 NPC_S_KPU1_ETHER, 0, 0, 711 NPC_LID_LA, NPC_LT_NA, 712 0, 713 0, 0, 0, 0, 714 715 }, 716 { 717 NPC_ERRLEV_RE, NPC_EC_NOERR, 718 12, 16, 20, 0, 0, 719 NPC_S_KPU1_ETHER, 0, 0, 720 NPC_LID_LA, NPC_LT_NA, 721 0, 722 0, 0, 0, 0, 723 724 }, 725 { 726 NPC_ERRLEV_RE, NPC_EC_NOERR, 727 12, 16, 20, 0, 0, 728 NPC_S_KPU1_ETHER, 0, 0, 729 NPC_LID_LA, NPC_LT_NA, 730 0, 731 0, 0, 0, 0, 732 733 }, 734 { 735 NPC_ERRLEV_RE, NPC_EC_NOERR, 736 12, 16, 20, 0, 0, 737 NPC_S_KPU1_ETHER, 0, 0, 738 NPC_LID_LA, NPC_LT_NA, 739 0, 740 0, 0, 0, 0, 741 742 }, 743 { 744 NPC_ERRLEV_RE, NPC_EC_NOERR, 745 12, 16, 20, 0, 0, 746 NPC_S_KPU1_ETHER, 0, 0, 747 NPC_LID_LA, NPC_LT_NA, 748 0, 749 0, 0, 0, 0, 750 751 }, 752 { 753 NPC_ERRLEV_RE, NPC_EC_NOERR, 754 12, 16, 20, 0, 0, 755 NPC_S_KPU1_ETHER, 0, 0, 756 NPC_LID_LA, NPC_LT_NA, 757 0, 758 0, 0, 0, 0, 759 760 }, 761 { 762 NPC_ERRLEV_RE, NPC_EC_NOERR, 763 12, 16, 20, 0, 0, 764 NPC_S_KPU1_ETHER, 0, 0, 765 NPC_LID_LA, NPC_LT_NA, 766 0, 767 0, 0, 0, 0, 768 769 }, 770 { 771 NPC_ERRLEV_RE, NPC_EC_NOERR, 772 12, 16, 20, 0, 0, 773 NPC_S_KPU1_ETHER, 0, 0, 774 NPC_LID_LA, NPC_LT_NA, 775 0, 776 0, 0, 0, 0, 777 778 }, 779 { 780 NPC_ERRLEV_RE, NPC_EC_NOERR, 781 12, 16, 20, 0, 0, 782 NPC_S_KPU1_ETHER, 0, 0, 783 NPC_LID_LA, NPC_LT_NA, 784 0, 785 0, 0, 0, 0, 786 787 }, 788 { 789 NPC_ERRLEV_RE, NPC_EC_NOERR, 790 12, 16, 20, 0, 0, 791 NPC_S_KPU1_ETHER, 0, 0, 792 NPC_LID_LA, NPC_LT_NA, 793 0, 794 0, 0, 0, 0, 795 796 }, 797 { 798 NPC_ERRLEV_RE, NPC_EC_NOERR, 799 12, 16, 20, 0, 0, 800 NPC_S_KPU1_ETHER, 0, 0, 801 NPC_LID_LA, NPC_LT_NA, 802 0, 803 0, 0, 0, 0, 804 805 }, 806 { 807 NPC_ERRLEV_RE, NPC_EC_NOERR, 808 12, 16, 20, 0, 0, 809 NPC_S_KPU1_ETHER, 0, 0, 810 NPC_LID_LA, NPC_LT_NA, 811 0, 812 0, 0, 0, 0, 813 814 }, 815 { 816 NPC_ERRLEV_RE, NPC_EC_NOERR, 817 12, 16, 20, 0, 0, 818 NPC_S_KPU1_ETHER, 0, 0, 819 NPC_LID_LA, NPC_LT_NA, 820 0, 821 0, 0, 0, 0, 822 823 }, 824 { 825 NPC_ERRLEV_RE, NPC_EC_NOERR, 826 12, 16, 20, 0, 0, 827 NPC_S_KPU1_ETHER, 0, 0, 828 NPC_LID_LA, NPC_LT_NA, 829 0, 830 0, 0, 0, 0, 831 832 }, 833 { 834 NPC_ERRLEV_RE, NPC_EC_NOERR, 835 12, 16, 20, 0, 0, 836 NPC_S_KPU1_ETHER, 0, 0, 837 NPC_LID_LA, NPC_LT_NA, 838 0, 839 0, 0, 0, 0, 840 841 }, 842 { 843 NPC_ERRLEV_RE, NPC_EC_NOERR, 844 12, 16, 20, 0, 0, 845 NPC_S_KPU1_ETHER, 0, 0, 846 NPC_LID_LA, NPC_LT_NA, 847 0, 848 0, 0, 0, 0, 849 850 }, 851 { 852 NPC_ERRLEV_RE, NPC_EC_NOERR, 853 12, 16, 20, 0, 0, 854 NPC_S_KPU1_ETHER, 0, 0, 855 NPC_LID_LA, NPC_LT_NA, 856 0, 857 0, 0, 0, 0, 858 859 }, 860 { 861 NPC_ERRLEV_RE, NPC_EC_NOERR, 862 12, 16, 20, 0, 0, 863 NPC_S_KPU1_ETHER, 0, 0, 864 NPC_LID_LA, NPC_LT_NA, 865 0, 866 0, 0, 0, 0, 867 868 }, 869 { 870 NPC_ERRLEV_RE, NPC_EC_NOERR, 871 12, 16, 20, 0, 0, 872 NPC_S_KPU1_ETHER, 0, 0, 873 NPC_LID_LA, NPC_LT_NA, 874 0, 875 0, 0, 0, 0, 876 877 }, 878 { 879 NPC_ERRLEV_RE, NPC_EC_NOERR, 880 12, 16, 20, 0, 0, 881 NPC_S_KPU1_ETHER, 0, 0, 882 NPC_LID_LA, NPC_LT_NA, 883 0, 884 0, 0, 0, 0, 885 886 }, 887 { 888 NPC_ERRLEV_RE, NPC_EC_NOERR, 889 12, 16, 20, 0, 0, 890 NPC_S_KPU1_ETHER, 0, 0, 891 NPC_LID_LA, NPC_LT_NA, 892 0, 893 0, 0, 0, 0, 894 895 }, 896 { 897 NPC_ERRLEV_RE, NPC_EC_NOERR, 898 12, 16, 20, 0, 0, 899 NPC_S_KPU1_ETHER, 0, 0, 900 NPC_LID_LA, NPC_LT_NA, 901 0, 902 0, 0, 0, 0, 903 904 }, 905 { 906 NPC_ERRLEV_RE, NPC_EC_NOERR, 907 12, 16, 20, 0, 0, 908 NPC_S_KPU1_ETHER, 0, 0, 909 NPC_LID_LA, NPC_LT_NA, 910 0, 911 0, 0, 0, 0, 912 913 }, 914 { 915 NPC_ERRLEV_RE, NPC_EC_NOERR, 916 12, 16, 20, 0, 0, 917 NPC_S_KPU1_ETHER, 0, 0, 918 NPC_LID_LA, NPC_LT_NA, 919 0, 920 0, 0, 0, 0, 921 922 }, 923 { 924 NPC_ERRLEV_RE, NPC_EC_NOERR, 925 12, 16, 20, 0, 0, 926 NPC_S_KPU1_ETHER, 0, 0, 927 NPC_LID_LA, NPC_LT_NA, 928 0, 929 0, 0, 0, 0, 930 931 }, 932 { 933 NPC_ERRLEV_RE, NPC_EC_NOERR, 934 12, 16, 20, 0, 0, 935 NPC_S_KPU1_ETHER, 0, 0, 936 NPC_LID_LA, NPC_LT_NA, 937 0, 938 0, 0, 0, 0, 939 940 }, 941 { 942 NPC_ERRLEV_RE, NPC_EC_NOERR, 943 12, 16, 20, 0, 0, 944 NPC_S_KPU1_ETHER, 0, 0, 945 NPC_LID_LA, NPC_LT_NA, 946 0, 947 0, 0, 0, 0, 948 949 }, 950 { 951 NPC_ERRLEV_RE, NPC_EC_NOERR, 952 12, 16, 20, 0, 0, 953 NPC_S_KPU1_ETHER, 0, 0, 954 NPC_LID_LA, NPC_LT_NA, 955 0, 956 0, 0, 0, 0, 957 958 }, 959 { 960 NPC_ERRLEV_RE, NPC_EC_NOERR, 961 12, 16, 20, 0, 0, 962 NPC_S_KPU1_ETHER, 0, 0, 963 NPC_LID_LA, NPC_LT_NA, 964 0, 965 0, 0, 0, 0, 966 967 }, 968 { 969 NPC_ERRLEV_RE, NPC_EC_NOERR, 970 12, 16, 20, 0, 0, 971 NPC_S_KPU1_ETHER, 0, 0, 972 NPC_LID_LA, NPC_LT_NA, 973 0, 974 0, 0, 0, 0, 975 976 }, 977 { 978 NPC_ERRLEV_RE, NPC_EC_NOERR, 979 12, 16, 20, 0, 0, 980 NPC_S_KPU1_ETHER, 0, 0, 981 NPC_LID_LA, NPC_LT_NA, 982 0, 983 0, 0, 0, 0, 984 985 }, 986 { 987 NPC_ERRLEV_RE, NPC_EC_NOERR, 988 36, 40, 44, 0, 0, 989 NPC_S_KPU1_IH_NIX_HIGIG2, 0, 0, 990 NPC_LID_LA, NPC_LT_NA, 991 0, 992 0, 0, 0, 0, 993 994 }, 995 { 996 NPC_ERRLEV_RE, NPC_EC_NOERR, 997 28, 32, 36, 0, 0, 998 NPC_S_KPU1_HIGIG2, 0, 0, 999 NPC_LID_LA, NPC_LT_NA, 1000 0, 1001 0, 0, 0, 0, 1002 1003 }, 1004 { 1005 NPC_ERRLEV_RE, NPC_EC_NOERR, 1006 12, 14, 20, 0, 0, 1007 NPC_S_KPU1_EXDSA, 0, 0, 1008 NPC_LID_LA, NPC_LT_NA, 1009 0, 1010 0, 0, 0, 0, 1011 1012 }, 1013 { 1014 NPC_ERRLEV_RE, NPC_EC_NOERR, 1015 20, 24, 28, 0, 0, 1016 NPC_S_KPU1_IH_NIX, 0, 0, 1017 NPC_LID_LA, NPC_LT_NA, 1018 0, 1019 0, 0, 0, 0, 1020 1021 }, 1022 }; 1023 1024 static const struct npc_kpu_profile_cam kpu1_cam_entries[] = { 1025 { 1026 NPC_S_KPU1_ETHER, 0xff, 1027 NPC_ETYPE_IP, 1028 0xffff, 1029 0x0000, 1030 0x0000, 1031 0x0000, 1032 0x0000, 1033 }, 1034 { 1035 NPC_S_KPU1_ETHER, 0xff, 1036 NPC_ETYPE_IP6, 1037 0xffff, 1038 0x0000, 1039 0x0000, 1040 0x0000, 1041 0x0000, 1042 }, 1043 { 1044 NPC_S_KPU1_ETHER, 0xff, 1045 NPC_ETYPE_ARP, 1046 0xffff, 1047 0x0000, 1048 0x0000, 1049 0x0000, 1050 0x0000, 1051 }, 1052 { 1053 NPC_S_KPU1_ETHER, 0xff, 1054 NPC_ETYPE_RARP, 1055 0xffff, 1056 0x0000, 1057 0x0000, 1058 0x0000, 1059 0x0000, 1060 }, 1061 { 1062 NPC_S_KPU1_ETHER, 0xff, 1063 NPC_ETYPE_PTP, 1064 0xffff, 1065 0x0000, 1066 0x0000, 1067 0x0000, 1068 0x0000, 1069 }, 1070 { 1071 NPC_S_KPU1_ETHER, 0xff, 1072 NPC_ETYPE_FCOE, 1073 0xffff, 1074 0x0000, 1075 0x0000, 1076 0x0000, 1077 0x0000, 1078 }, 1079 { 1080 NPC_S_KPU1_ETHER, 0xff, 1081 NPC_ETYPE_CTAG, 1082 0xffff, 1083 NPC_ETYPE_CTAG, 1084 0xffff, 1085 0x0000, 1086 0x0000, 1087 }, 1088 { 1089 NPC_S_KPU1_ETHER, 0xff, 1090 NPC_ETYPE_CTAG, 1091 0xffff, 1092 0x0000, 1093 0x0000, 1094 0x0000, 1095 0x0000, 1096 }, 1097 { 1098 NPC_S_KPU1_ETHER, 0xff, 1099 NPC_ETYPE_SBTAG, 1100 0xffff, 1101 0x0000, 1102 0x0000, 1103 0x0000, 1104 0x0000, 1105 }, 1106 { 1107 NPC_S_KPU1_ETHER, 0xff, 1108 NPC_ETYPE_QINQ, 1109 0xffff, 1110 0x0000, 1111 0x0000, 1112 0x0000, 1113 0x0000, 1114 }, 1115 { 1116 NPC_S_KPU1_ETHER, 0xff, 1117 NPC_ETYPE_ETAG, 1118 0xffff, 1119 0x0000, 1120 0x0000, 1121 0x0000, 1122 0x0000, 1123 }, 1124 { 1125 NPC_S_KPU1_ETHER, 0xff, 1126 NPC_ETYPE_ITAG, 1127 0xffff, 1128 0x0000, 1129 0x0000, 1130 0x0000, 1131 0x0000, 1132 }, 1133 { 1134 NPC_S_KPU1_ETHER, 0xff, 1135 NPC_ETYPE_MPLSU, 1136 0xffff, 1137 0x0000, 1138 0x0000, 1139 0x0000, 1140 0x0000, 1141 }, 1142 { 1143 NPC_S_KPU1_ETHER, 0xff, 1144 NPC_ETYPE_MPLSM, 1145 0xffff, 1146 0x0000, 1147 0x0000, 1148 0x0000, 1149 0x0000, 1150 }, 1151 { 1152 NPC_S_KPU1_ETHER, 0xff, 1153 NPC_ETYPE_NSH, 1154 0xffff, 1155 0x0000, 1156 0x0000, 1157 0x0000, 1158 0x0000, 1159 }, 1160 { 1161 NPC_S_KPU1_ETHER, 0xff, 1162 NPC_ETYPE_DSA, 1163 0xffff, 1164 0x0000, 1165 0x0000, 1166 0x0000, 1167 0x0000, 1168 }, 1169 { 1170 NPC_S_KPU1_ETHER, 0xff, 1171 0x0000, 1172 0xfc00, 1173 0x0000, 1174 0x0000, 1175 0x0000, 1176 0x0000, 1177 }, 1178 { 1179 NPC_S_KPU1_ETHER, 0xff, 1180 0x0400, 1181 0xfe00, 1182 0x0000, 1183 0x0000, 1184 0x0000, 1185 0x0000, 1186 }, 1187 { 1188 NPC_S_KPU1_ETHER, 0xff, 1189 0x0000, 1190 0x0000, 1191 0x0000, 1192 0x0000, 1193 0x0000, 1194 0x0000, 1195 }, 1196 { 1197 NPC_S_KPU1_IH_NIX, 0xff, 1198 NPC_ETYPE_IP, 1199 0xffff, 1200 0x0000, 1201 0x0000, 1202 0x0000, 1203 0x0000, 1204 }, 1205 { 1206 NPC_S_KPU1_IH_NIX, 0xff, 1207 NPC_ETYPE_IP6, 1208 0xffff, 1209 0x0000, 1210 0x0000, 1211 0x0000, 1212 0x0000, 1213 }, 1214 { 1215 NPC_S_KPU1_IH_NIX, 0xff, 1216 NPC_ETYPE_ARP, 1217 0xffff, 1218 0x0000, 1219 0x0000, 1220 0x0000, 1221 0x0000, 1222 }, 1223 { 1224 NPC_S_KPU1_IH_NIX, 0xff, 1225 NPC_ETYPE_RARP, 1226 0xffff, 1227 0x0000, 1228 0x0000, 1229 0x0000, 1230 0x0000, 1231 }, 1232 { 1233 NPC_S_KPU1_IH_NIX, 0xff, 1234 NPC_ETYPE_PTP, 1235 0xffff, 1236 0x0000, 1237 0x0000, 1238 0x0000, 1239 0x0000, 1240 }, 1241 { 1242 NPC_S_KPU1_IH_NIX, 0xff, 1243 NPC_ETYPE_FCOE, 1244 0xffff, 1245 0x0000, 1246 0x0000, 1247 0x0000, 1248 0x0000, 1249 }, 1250 { 1251 NPC_S_KPU1_IH_NIX, 0xff, 1252 NPC_ETYPE_CTAG, 1253 0xffff, 1254 NPC_ETYPE_CTAG, 1255 0xffff, 1256 0x0000, 1257 0x0000, 1258 }, 1259 { 1260 NPC_S_KPU1_IH_NIX, 0xff, 1261 NPC_ETYPE_CTAG, 1262 0xffff, 1263 0x0000, 1264 0x0000, 1265 0x0000, 1266 0x0000, 1267 }, 1268 { 1269 NPC_S_KPU1_IH_NIX, 0xff, 1270 NPC_ETYPE_SBTAG, 1271 0xffff, 1272 0x0000, 1273 0x0000, 1274 0x0000, 1275 0x0000, 1276 }, 1277 { 1278 NPC_S_KPU1_IH_NIX, 0xff, 1279 NPC_ETYPE_QINQ, 1280 0xffff, 1281 0x0000, 1282 0x0000, 1283 0x0000, 1284 0x0000, 1285 }, 1286 { 1287 NPC_S_KPU1_IH_NIX, 0xff, 1288 NPC_ETYPE_ETAG, 1289 0xffff, 1290 0x0000, 1291 0x0000, 1292 0x0000, 1293 0x0000, 1294 }, 1295 { 1296 NPC_S_KPU1_IH_NIX, 0xff, 1297 NPC_ETYPE_ITAG, 1298 0xffff, 1299 0x0000, 1300 0x0000, 1301 0x0000, 1302 0x0000, 1303 }, 1304 { 1305 NPC_S_KPU1_IH_NIX, 0xff, 1306 NPC_ETYPE_MPLSU, 1307 0xffff, 1308 0x0000, 1309 0x0000, 1310 0x0000, 1311 0x0000, 1312 }, 1313 { 1314 NPC_S_KPU1_IH_NIX, 0xff, 1315 NPC_ETYPE_MPLSM, 1316 0xffff, 1317 0x0000, 1318 0x0000, 1319 0x0000, 1320 0x0000, 1321 }, 1322 { 1323 NPC_S_KPU1_IH_NIX, 0xff, 1324 NPC_ETYPE_NSH, 1325 0xffff, 1326 0x0000, 1327 0x0000, 1328 0x0000, 1329 0x0000, 1330 }, 1331 { 1332 NPC_S_KPU1_IH_NIX, 0xff, 1333 0x0000, 1334 0x0000, 1335 0x0000, 1336 0x0000, 1337 0x0000, 1338 0x0000, 1339 }, 1340 { 1341 NPC_S_KPU1_IH, 0xff, 1342 NPC_IH_W|NPC_IH_UTAG, 1343 NPC_IH_W|NPC_IH_UTAG, 1344 0x0000, 1345 0x0000, 1346 0x0000, 1347 0x0000, 1348 }, 1349 { 1350 NPC_S_KPU1_IH, 0xff, 1351 NPC_IH_W, 1352 NPC_IH_W|NPC_IH_UTAG, 1353 0x0000, 1354 0x0000, 1355 0x0000, 1356 0x0000, 1357 }, 1358 { 1359 NPC_S_KPU1_IH, 0xff, 1360 0x0000, 1361 NPC_IH_W|NPC_IH_UTAG, 1362 0x0000, 1363 0x0000, 1364 0x0000, 1365 0x0000, 1366 }, 1367 { 1368 NPC_S_KPU1_IH, 0xff, 1369 0x0000, 1370 0x0000, 1371 0x0000, 1372 0x0000, 1373 0x0000, 1374 0x0000, 1375 }, 1376 { 1377 NPC_S_KPU1_EXDSA, 0xff, 1378 0x0000, 1379 0x0000, 1380 NPC_DSA_EXTEND, 1381 NPC_DSA_EXTEND, 1382 0x0000, 1383 0x0000, 1384 }, 1385 { 1386 NPC_S_KPU1_EXDSA, 0xff, 1387 NPC_DSA_FDSA, 1388 NPC_DSA_FDSA, 1389 0x0000, 1390 0x0000, 1391 0x0000, 1392 0x0000, 1393 }, 1394 { 1395 NPC_S_KPU1_EXDSA, 0xff, 1396 0x0000, 1397 NPC_DSA_EXTEND, 1398 0x0000, 1399 0x0000, 1400 0x0000, 1401 0x0000, 1402 }, 1403 { 1404 NPC_S_KPU1_HIGIG2, 0xff, 1405 NPC_ETYPE_IP, 1406 0xffff, 1407 0x0000, 1408 0x0000, 1409 0x0000, 1410 0x0000, 1411 }, 1412 { 1413 NPC_S_KPU1_HIGIG2, 0xff, 1414 NPC_ETYPE_IP6, 1415 0xffff, 1416 0x0000, 1417 0x0000, 1418 0x0000, 1419 0x0000, 1420 }, 1421 { 1422 NPC_S_KPU1_HIGIG2, 0xff, 1423 NPC_ETYPE_ARP, 1424 0xffff, 1425 0x0000, 1426 0x0000, 1427 0x0000, 1428 0x0000, 1429 }, 1430 { 1431 NPC_S_KPU1_HIGIG2, 0xff, 1432 NPC_ETYPE_RARP, 1433 0xffff, 1434 0x0000, 1435 0x0000, 1436 0x0000, 1437 0x0000, 1438 }, 1439 { 1440 NPC_S_KPU1_HIGIG2, 0xff, 1441 NPC_ETYPE_PTP, 1442 0xffff, 1443 0x0000, 1444 0x0000, 1445 0x0000, 1446 0x0000, 1447 }, 1448 { 1449 NPC_S_KPU1_HIGIG2, 0xff, 1450 NPC_ETYPE_FCOE, 1451 0xffff, 1452 0x0000, 1453 0x0000, 1454 0x0000, 1455 0x0000, 1456 }, 1457 { 1458 NPC_S_KPU1_HIGIG2, 0xff, 1459 NPC_ETYPE_CTAG, 1460 0xffff, 1461 NPC_ETYPE_CTAG, 1462 0xffff, 1463 0x0000, 1464 0x0000, 1465 }, 1466 { 1467 NPC_S_KPU1_HIGIG2, 0xff, 1468 NPC_ETYPE_CTAG, 1469 0xffff, 1470 0x0000, 1471 0x0000, 1472 0x0000, 1473 0x0000, 1474 }, 1475 { 1476 NPC_S_KPU1_HIGIG2, 0xff, 1477 NPC_ETYPE_SBTAG, 1478 0xffff, 1479 0x0000, 1480 0x0000, 1481 0x0000, 1482 0x0000, 1483 }, 1484 { 1485 NPC_S_KPU1_HIGIG2, 0xff, 1486 NPC_ETYPE_QINQ, 1487 0xffff, 1488 0x0000, 1489 0x0000, 1490 0x0000, 1491 0x0000, 1492 }, 1493 { 1494 NPC_S_KPU1_HIGIG2, 0xff, 1495 NPC_ETYPE_ETAG, 1496 0xffff, 1497 0x0000, 1498 0x0000, 1499 0x0000, 1500 0x0000, 1501 }, 1502 { 1503 NPC_S_KPU1_HIGIG2, 0xff, 1504 NPC_ETYPE_ITAG, 1505 0xffff, 1506 0x0000, 1507 0x0000, 1508 0x0000, 1509 0x0000, 1510 }, 1511 { 1512 NPC_S_KPU1_HIGIG2, 0xff, 1513 NPC_ETYPE_MPLSU, 1514 0xffff, 1515 0x0000, 1516 0x0000, 1517 0x0000, 1518 0x0000, 1519 }, 1520 { 1521 NPC_S_KPU1_HIGIG2, 0xff, 1522 NPC_ETYPE_MPLSM, 1523 0xffff, 1524 0x0000, 1525 0x0000, 1526 0x0000, 1527 0x0000, 1528 }, 1529 { 1530 NPC_S_KPU1_HIGIG2, 0xff, 1531 NPC_ETYPE_NSH, 1532 0xffff, 1533 0x0000, 1534 0x0000, 1535 0x0000, 1536 0x0000, 1537 }, 1538 { 1539 NPC_S_KPU1_HIGIG2, 0xff, 1540 0x0000, 1541 0x0000, 1542 0x0000, 1543 0x0000, 1544 0x0000, 1545 0x0000, 1546 }, 1547 { 1548 NPC_S_KPU1_IH_NIX_HIGIG2, 0xff, 1549 NPC_ETYPE_IP, 1550 0xffff, 1551 0x0000, 1552 0x0000, 1553 0x0000, 1554 0x0000, 1555 }, 1556 { 1557 NPC_S_KPU1_IH_NIX_HIGIG2, 0xff, 1558 NPC_ETYPE_IP6, 1559 0xffff, 1560 0x0000, 1561 0x0000, 1562 0x0000, 1563 0x0000, 1564 }, 1565 { 1566 NPC_S_KPU1_IH_NIX_HIGIG2, 0xff, 1567 NPC_ETYPE_ARP, 1568 0xffff, 1569 0x0000, 1570 0x0000, 1571 0x0000, 1572 0x0000, 1573 }, 1574 { 1575 NPC_S_KPU1_IH_NIX_HIGIG2, 0xff, 1576 NPC_ETYPE_RARP, 1577 0xffff, 1578 0x0000, 1579 0x0000, 1580 0x0000, 1581 0x0000, 1582 }, 1583 { 1584 NPC_S_KPU1_IH_NIX_HIGIG2, 0xff, 1585 NPC_ETYPE_PTP, 1586 0xffff, 1587 0x0000, 1588 0x0000, 1589 0x0000, 1590 0x0000, 1591 }, 1592 { 1593 NPC_S_KPU1_IH_NIX_HIGIG2, 0xff, 1594 NPC_ETYPE_FCOE, 1595 0xffff, 1596 0x0000, 1597 0x0000, 1598 0x0000, 1599 0x0000, 1600 }, 1601 { 1602 NPC_S_KPU1_IH_NIX_HIGIG2, 0xff, 1603 NPC_ETYPE_CTAG, 1604 0xffff, 1605 NPC_ETYPE_CTAG, 1606 0xffff, 1607 0x0000, 1608 0x0000, 1609 }, 1610 { 1611 NPC_S_KPU1_IH_NIX_HIGIG2, 0xff, 1612 NPC_ETYPE_CTAG, 1613 0xffff, 1614 0x0000, 1615 0x0000, 1616 0x0000, 1617 0x0000, 1618 }, 1619 { 1620 NPC_S_KPU1_IH_NIX_HIGIG2, 0xff, 1621 NPC_ETYPE_SBTAG, 1622 0xffff, 1623 0x0000, 1624 0x0000, 1625 0x0000, 1626 0x0000, 1627 }, 1628 { 1629 NPC_S_KPU1_IH_NIX_HIGIG2, 0xff, 1630 NPC_ETYPE_QINQ, 1631 0xffff, 1632 0x0000, 1633 0x0000, 1634 0x0000, 1635 0x0000, 1636 }, 1637 { 1638 NPC_S_KPU1_IH_NIX_HIGIG2, 0xff, 1639 NPC_ETYPE_ETAG, 1640 0xffff, 1641 0x0000, 1642 0x0000, 1643 0x0000, 1644 0x0000, 1645 }, 1646 { 1647 NPC_S_KPU1_IH_NIX_HIGIG2, 0xff, 1648 NPC_ETYPE_ITAG, 1649 0xffff, 1650 0x0000, 1651 0x0000, 1652 0x0000, 1653 0x0000, 1654 }, 1655 { 1656 NPC_S_KPU1_IH_NIX_HIGIG2, 0xff, 1657 NPC_ETYPE_MPLSU, 1658 0xffff, 1659 0x0000, 1660 0x0000, 1661 0x0000, 1662 0x0000, 1663 }, 1664 { 1665 NPC_S_KPU1_IH_NIX_HIGIG2, 0xff, 1666 NPC_ETYPE_MPLSM, 1667 0xffff, 1668 0x0000, 1669 0x0000, 1670 0x0000, 1671 0x0000, 1672 }, 1673 { 1674 NPC_S_KPU1_IH_NIX_HIGIG2, 0xff, 1675 NPC_ETYPE_NSH, 1676 0xffff, 1677 0x0000, 1678 0x0000, 1679 0x0000, 1680 0x0000, 1681 }, 1682 { 1683 NPC_S_KPU1_IH_NIX_HIGIG2, 0xff, 1684 0x0000, 1685 0x0000, 1686 0x0000, 1687 0x0000, 1688 0x0000, 1689 0x0000, 1690 }, 1691 { 1692 NPC_S_NA, 0X00, 1693 0x0000, 1694 0x0000, 1695 0x0000, 1696 0x0000, 1697 0x0000, 1698 0x0000, 1699 }, 1700 }; 1701 1702 static const struct npc_kpu_profile_cam kpu2_cam_entries[] = { 1703 { 1704 NPC_S_KPU2_CTAG, 0xff, 1705 NPC_ETYPE_IP, 1706 0xffff, 1707 0x0000, 1708 0x0000, 1709 0x0000, 1710 0x0000, 1711 }, 1712 { 1713 NPC_S_KPU2_CTAG, 0xff, 1714 NPC_ETYPE_IP6, 1715 0xffff, 1716 0x0000, 1717 0x0000, 1718 0x0000, 1719 0x0000, 1720 }, 1721 { 1722 NPC_S_KPU2_CTAG, 0xff, 1723 NPC_ETYPE_ARP, 1724 0xffff, 1725 0x0000, 1726 0x0000, 1727 0x0000, 1728 0x0000, 1729 }, 1730 { 1731 NPC_S_KPU2_CTAG, 0xff, 1732 NPC_ETYPE_RARP, 1733 0xffff, 1734 0x0000, 1735 0x0000, 1736 0x0000, 1737 0x0000, 1738 }, 1739 { 1740 NPC_S_KPU2_CTAG, 0xff, 1741 NPC_ETYPE_PTP, 1742 0xffff, 1743 0x0000, 1744 0x0000, 1745 0x0000, 1746 0x0000, 1747 }, 1748 { 1749 NPC_S_KPU2_CTAG, 0xff, 1750 NPC_ETYPE_FCOE, 1751 0xffff, 1752 0x0000, 1753 0x0000, 1754 0x0000, 1755 0x0000, 1756 }, 1757 { 1758 NPC_S_KPU2_CTAG, 0xff, 1759 NPC_ETYPE_MPLSU, 1760 0xffff, 1761 0x0000, 1762 0x0000, 1763 0x0000, 1764 0x0000, 1765 }, 1766 { 1767 NPC_S_KPU2_CTAG, 0xff, 1768 NPC_ETYPE_MPLSM, 1769 0xffff, 1770 0x0000, 1771 0x0000, 1772 0x0000, 1773 0x0000, 1774 }, 1775 { 1776 NPC_S_KPU2_CTAG, 0xff, 1777 NPC_ETYPE_NSH, 1778 0xffff, 1779 0x0000, 1780 0x0000, 1781 0x0000, 1782 0x0000, 1783 }, 1784 { 1785 NPC_S_KPU2_CTAG, 0xff, 1786 0x0000, 1787 0x0000, 1788 0x0000, 1789 0x0000, 1790 0x0000, 1791 0x0000, 1792 }, 1793 { 1794 NPC_S_KPU2_SBTAG, 0xff, 1795 NPC_ETYPE_CTAG, 1796 0xffff, 1797 NPC_ETYPE_IP, 1798 0xffff, 1799 0x0000, 1800 0x0000, 1801 }, 1802 { 1803 NPC_S_KPU2_SBTAG, 0xff, 1804 NPC_ETYPE_CTAG, 1805 0xffff, 1806 NPC_ETYPE_IP6, 1807 0xffff, 1808 0x0000, 1809 0x0000, 1810 }, 1811 { 1812 NPC_S_KPU2_SBTAG, 0xff, 1813 NPC_ETYPE_CTAG, 1814 0xffff, 1815 NPC_ETYPE_ARP, 1816 0xffff, 1817 0x0000, 1818 0x0000, 1819 }, 1820 { 1821 NPC_S_KPU2_SBTAG, 0xff, 1822 NPC_ETYPE_CTAG, 1823 0xffff, 1824 NPC_ETYPE_RARP, 1825 0xffff, 1826 0x0000, 1827 0x0000, 1828 }, 1829 { 1830 NPC_S_KPU2_SBTAG, 0xff, 1831 NPC_ETYPE_CTAG, 1832 0xffff, 1833 NPC_ETYPE_PTP, 1834 0xffff, 1835 0x0000, 1836 0x0000, 1837 }, 1838 { 1839 NPC_S_KPU2_SBTAG, 0xff, 1840 NPC_ETYPE_CTAG, 1841 0xffff, 1842 NPC_ETYPE_FCOE, 1843 0xffff, 1844 0x0000, 1845 0x0000, 1846 }, 1847 { 1848 NPC_S_KPU2_SBTAG, 0xff, 1849 NPC_ETYPE_CTAG, 1850 0xffff, 1851 NPC_ETYPE_MPLSU, 1852 0xffff, 1853 0x0000, 1854 0x0000, 1855 }, 1856 { 1857 NPC_S_KPU2_SBTAG, 0xff, 1858 NPC_ETYPE_CTAG, 1859 0xffff, 1860 NPC_ETYPE_MPLSM, 1861 0xffff, 1862 0x0000, 1863 0x0000, 1864 }, 1865 { 1866 NPC_S_KPU2_SBTAG, 0xff, 1867 NPC_ETYPE_CTAG, 1868 0xffff, 1869 NPC_ETYPE_NSH, 1870 0xffff, 1871 0x0000, 1872 0x0000, 1873 }, 1874 { 1875 NPC_S_KPU2_SBTAG, 0xff, 1876 NPC_ETYPE_CTAG, 1877 0xffff, 1878 0x0000, 1879 0x0000, 1880 0x0000, 1881 0x0000, 1882 }, 1883 { 1884 NPC_S_KPU2_SBTAG, 0xff, 1885 NPC_ETYPE_SBTAG, 1886 0xffff, 1887 NPC_ETYPE_CTAG, 1888 0xffff, 1889 0x0000, 1890 0x0000, 1891 }, 1892 { 1893 NPC_S_KPU2_SBTAG, 0xff, 1894 NPC_ETYPE_SBTAG, 1895 0xffff, 1896 NPC_ETYPE_SBTAG, 1897 0xffff, 1898 0x0000, 1899 0x0000, 1900 }, 1901 { 1902 NPC_S_KPU2_SBTAG, 0xff, 1903 NPC_ETYPE_ITAG, 1904 0xffff, 1905 0x0000, 1906 0x0000, 1907 NPC_ETYPE_IP, 1908 0xffff, 1909 }, 1910 { 1911 NPC_S_KPU2_SBTAG, 0xff, 1912 NPC_ETYPE_ITAG, 1913 0xffff, 1914 0x0000, 1915 0x0000, 1916 NPC_ETYPE_IP6, 1917 0xffff, 1918 }, 1919 { 1920 NPC_S_KPU2_SBTAG, 0xff, 1921 NPC_ETYPE_ITAG, 1922 0xffff, 1923 0x0000, 1924 0x0000, 1925 NPC_ETYPE_ARP, 1926 0xffff, 1927 }, 1928 { 1929 NPC_S_KPU2_SBTAG, 0xff, 1930 NPC_ETYPE_ITAG, 1931 0xffff, 1932 0x0000, 1933 0x0000, 1934 NPC_ETYPE_RARP, 1935 0xffff, 1936 }, 1937 { 1938 NPC_S_KPU2_SBTAG, 0xff, 1939 NPC_ETYPE_ITAG, 1940 0xffff, 1941 0x0000, 1942 0x0000, 1943 NPC_ETYPE_PTP, 1944 0xffff, 1945 }, 1946 { 1947 NPC_S_KPU2_SBTAG, 0xff, 1948 NPC_ETYPE_ITAG, 1949 0xffff, 1950 0x0000, 1951 0x0000, 1952 NPC_ETYPE_FCOE, 1953 0xffff, 1954 }, 1955 { 1956 NPC_S_KPU2_SBTAG, 0xff, 1957 NPC_ETYPE_ITAG, 1958 0xffff, 1959 0x0000, 1960 0x0000, 1961 NPC_ETYPE_MPLSU, 1962 0xffff, 1963 }, 1964 { 1965 NPC_S_KPU2_SBTAG, 0xff, 1966 NPC_ETYPE_ITAG, 1967 0xffff, 1968 0x0000, 1969 0x0000, 1970 NPC_ETYPE_MPLSM, 1971 0xffff, 1972 }, 1973 { 1974 NPC_S_KPU2_SBTAG, 0xff, 1975 NPC_ETYPE_ITAG, 1976 0xffff, 1977 0x0000, 1978 0x0000, 1979 NPC_ETYPE_NSH, 1980 0xffff, 1981 }, 1982 { 1983 NPC_S_KPU2_SBTAG, 0xff, 1984 NPC_ETYPE_ITAG, 1985 0xffff, 1986 0x0000, 1987 0x0000, 1988 NPC_ETYPE_SBTAG, 1989 0xffff, 1990 }, 1991 { 1992 NPC_S_KPU2_SBTAG, 0xff, 1993 NPC_ETYPE_ITAG, 1994 0xffff, 1995 0x0000, 1996 0x0000, 1997 NPC_ETYPE_CTAG, 1998 0xffff, 1999 }, 2000 { 2001 NPC_S_KPU2_SBTAG, 0xff, 2002 NPC_ETYPE_ITAG, 2003 0xffff, 2004 0x0000, 2005 0x0000, 2006 0x0000, 2007 0x0000, 2008 }, 2009 { 2010 NPC_S_KPU2_SBTAG, 0xff, 2011 0x0000, 2012 0x0000, 2013 0x0000, 2014 0x0000, 2015 0x0000, 2016 0x0000, 2017 }, 2018 { 2019 NPC_S_KPU2_QINQ, 0xff, 2020 NPC_ETYPE_CTAG, 2021 0xffff, 2022 NPC_ETYPE_IP, 2023 0xffff, 2024 0x0000, 2025 0x0000, 2026 }, 2027 { 2028 NPC_S_KPU2_QINQ, 0xff, 2029 NPC_ETYPE_CTAG, 2030 0xffff, 2031 NPC_ETYPE_IP6, 2032 0xffff, 2033 0x0000, 2034 0x0000, 2035 }, 2036 { 2037 NPC_S_KPU2_QINQ, 0xff, 2038 NPC_ETYPE_CTAG, 2039 0xffff, 2040 NPC_ETYPE_ARP, 2041 0xffff, 2042 0x0000, 2043 0x0000, 2044 }, 2045 { 2046 NPC_S_KPU2_QINQ, 0xff, 2047 NPC_ETYPE_CTAG, 2048 0xffff, 2049 NPC_ETYPE_RARP, 2050 0xffff, 2051 0x0000, 2052 0x0000, 2053 }, 2054 { 2055 NPC_S_KPU2_QINQ, 0xff, 2056 NPC_ETYPE_CTAG, 2057 0xffff, 2058 NPC_ETYPE_PTP, 2059 0xffff, 2060 0x0000, 2061 0x0000, 2062 }, 2063 { 2064 NPC_S_KPU2_QINQ, 0xff, 2065 NPC_ETYPE_CTAG, 2066 0xffff, 2067 NPC_ETYPE_FCOE, 2068 0xffff, 2069 0x0000, 2070 0x0000, 2071 }, 2072 { 2073 NPC_S_KPU2_QINQ, 0xff, 2074 NPC_ETYPE_CTAG, 2075 0xffff, 2076 NPC_ETYPE_MPLSU, 2077 0xffff, 2078 0x0000, 2079 0x0000, 2080 }, 2081 { 2082 NPC_S_KPU2_QINQ, 0xff, 2083 NPC_ETYPE_CTAG, 2084 0xffff, 2085 NPC_ETYPE_MPLSM, 2086 0xffff, 2087 0x0000, 2088 0x0000, 2089 }, 2090 { 2091 NPC_S_KPU2_QINQ, 0xff, 2092 NPC_ETYPE_CTAG, 2093 0xffff, 2094 NPC_ETYPE_NSH, 2095 0xffff, 2096 0x0000, 2097 0x0000, 2098 }, 2099 { 2100 NPC_S_KPU2_QINQ, 0xff, 2101 NPC_ETYPE_CTAG, 2102 0xffff, 2103 0x0000, 2104 0x0000, 2105 0x0000, 2106 0x0000, 2107 }, 2108 { 2109 NPC_S_KPU2_QINQ, 0xff, 2110 NPC_ETYPE_QINQ, 2111 0xffff, 2112 NPC_ETYPE_CTAG, 2113 0xffff, 2114 0x0000, 2115 0x0000, 2116 }, 2117 { 2118 NPC_S_KPU2_QINQ, 0xff, 2119 NPC_ETYPE_QINQ, 2120 0xffff, 2121 NPC_ETYPE_QINQ, 2122 0xffff, 2123 0x0000, 2124 0x0000, 2125 }, 2126 { 2127 NPC_S_KPU2_QINQ, 0xff, 2128 0x0000, 2129 0x0000, 2130 0x0000, 2131 0x0000, 2132 0x0000, 2133 0x0000, 2134 }, 2135 { 2136 NPC_S_KPU2_ETAG, 0xff, 2137 NPC_ETYPE_IP, 2138 0xffff, 2139 0x0000, 2140 0x0000, 2141 0x0000, 2142 0x0000, 2143 }, 2144 { 2145 NPC_S_KPU2_ETAG, 0xff, 2146 NPC_ETYPE_IP6, 2147 0xffff, 2148 0x0000, 2149 0x0000, 2150 0x0000, 2151 0x0000, 2152 }, 2153 { 2154 NPC_S_KPU2_ETAG, 0xff, 2155 NPC_ETYPE_ARP, 2156 0xffff, 2157 0x0000, 2158 0x0000, 2159 0x0000, 2160 0x0000, 2161 }, 2162 { 2163 NPC_S_KPU2_ETAG, 0xff, 2164 NPC_ETYPE_RARP, 2165 0xffff, 2166 0x0000, 2167 0x0000, 2168 0x0000, 2169 0x0000, 2170 }, 2171 { 2172 NPC_S_KPU2_ETAG, 0xff, 2173 NPC_ETYPE_PTP, 2174 0xffff, 2175 0x0000, 2176 0x0000, 2177 0x0000, 2178 0x0000, 2179 }, 2180 { 2181 NPC_S_KPU2_ETAG, 0xff, 2182 NPC_ETYPE_FCOE, 2183 0xffff, 2184 0x0000, 2185 0x0000, 2186 0x0000, 2187 0x0000, 2188 }, 2189 { 2190 NPC_S_KPU2_ETAG, 0xff, 2191 NPC_ETYPE_MPLSU, 2192 0xffff, 2193 0x0000, 2194 0x0000, 2195 0x0000, 2196 0x0000, 2197 }, 2198 { 2199 NPC_S_KPU2_ETAG, 0xff, 2200 NPC_ETYPE_MPLSM, 2201 0xffff, 2202 0x0000, 2203 0x0000, 2204 0x0000, 2205 0x0000, 2206 }, 2207 { 2208 NPC_S_KPU2_ETAG, 0xff, 2209 NPC_ETYPE_NSH, 2210 0xffff, 2211 0x0000, 2212 0x0000, 2213 0x0000, 2214 0x0000, 2215 }, 2216 { 2217 NPC_S_KPU2_ETAG, 0xff, 2218 NPC_ETYPE_CTAG, 2219 0xffff, 2220 0x0000, 2221 0x0000, 2222 0x0000, 2223 0x0000, 2224 }, 2225 { 2226 NPC_S_KPU2_ETAG, 0xff, 2227 NPC_ETYPE_SBTAG, 2228 0xffff, 2229 NPC_ETYPE_ITAG, 2230 0xffff, 2231 0x0000, 2232 0x0000, 2233 }, 2234 { 2235 NPC_S_KPU2_ETAG, 0xff, 2236 NPC_ETYPE_SBTAG, 2237 0xffff, 2238 0x0000, 2239 0x0000, 2240 0x0000, 2241 0x0000, 2242 }, 2243 { 2244 NPC_S_KPU2_ETAG, 0xff, 2245 NPC_ETYPE_QINQ, 2246 0xffff, 2247 0x0000, 2248 0x0000, 2249 0x0000, 2250 0x0000, 2251 }, 2252 { 2253 NPC_S_KPU2_ETAG, 0xff, 2254 NPC_ETYPE_ITAG, 2255 0xffff, 2256 0x0000, 2257 0x0000, 2258 NPC_ETYPE_IP, 2259 0xffff, 2260 }, 2261 { 2262 NPC_S_KPU2_ETAG, 0xff, 2263 NPC_ETYPE_ITAG, 2264 0xffff, 2265 0x0000, 2266 0x0000, 2267 NPC_ETYPE_IP6, 2268 0xffff, 2269 }, 2270 { 2271 NPC_S_KPU2_ETAG, 0xff, 2272 NPC_ETYPE_ITAG, 2273 0xffff, 2274 0x0000, 2275 0x0000, 2276 NPC_ETYPE_ARP, 2277 0xffff, 2278 }, 2279 { 2280 NPC_S_KPU2_ETAG, 0xff, 2281 NPC_ETYPE_ITAG, 2282 0xffff, 2283 0x0000, 2284 0x0000, 2285 NPC_ETYPE_SBTAG, 2286 0xffff, 2287 }, 2288 { 2289 NPC_S_KPU2_ETAG, 0xff, 2290 NPC_ETYPE_ITAG, 2291 0xffff, 2292 0x0000, 2293 0x0000, 2294 NPC_ETYPE_CTAG, 2295 0xffff, 2296 }, 2297 { 2298 NPC_S_KPU2_ETAG, 0xff, 2299 NPC_ETYPE_ITAG, 2300 0xffff, 2301 0x0000, 2302 0x0000, 2303 0x0000, 2304 0x0000, 2305 }, 2306 { 2307 NPC_S_KPU2_ETAG, 0xff, 2308 0x0000, 2309 0x0000, 2310 0x0000, 2311 0x0000, 2312 0x0000, 2313 0x0000, 2314 }, 2315 { 2316 NPC_S_KPU2_ITAG, 0xff, 2317 NPC_ETYPE_IP, 2318 0xffff, 2319 0x0000, 2320 0x0000, 2321 0x0000, 2322 0x0000, 2323 }, 2324 { 2325 NPC_S_KPU2_ITAG, 0xff, 2326 NPC_ETYPE_IP6, 2327 0xffff, 2328 0x0000, 2329 0x0000, 2330 0x0000, 2331 0x0000, 2332 }, 2333 { 2334 NPC_S_KPU2_ITAG, 0xff, 2335 NPC_ETYPE_ARP, 2336 0xffff, 2337 0x0000, 2338 0x0000, 2339 0x0000, 2340 0x0000, 2341 }, 2342 { 2343 NPC_S_KPU2_ITAG, 0xff, 2344 NPC_ETYPE_RARP, 2345 0xffff, 2346 0x0000, 2347 0x0000, 2348 0x0000, 2349 0x0000, 2350 }, 2351 { 2352 NPC_S_KPU2_ITAG, 0xff, 2353 NPC_ETYPE_SBTAG, 2354 0xffff, 2355 NPC_ETYPE_CTAG, 2356 0xffff, 2357 NPC_ETYPE_IP, 2358 0xffff, 2359 }, 2360 { 2361 NPC_S_KPU2_ITAG, 0xff, 2362 NPC_ETYPE_SBTAG, 2363 0xffff, 2364 NPC_ETYPE_CTAG, 2365 0xffff, 2366 NPC_ETYPE_IP6, 2367 0xffff, 2368 }, 2369 { 2370 NPC_S_KPU2_ITAG, 0xff, 2371 NPC_ETYPE_SBTAG, 2372 0xffff, 2373 NPC_ETYPE_CTAG, 2374 0xffff, 2375 NPC_ETYPE_ARP, 2376 0xffff, 2377 }, 2378 { 2379 NPC_S_KPU2_ITAG, 0xff, 2380 NPC_ETYPE_SBTAG, 2381 0xffff, 2382 NPC_ETYPE_CTAG, 2383 0xffff, 2384 0x0000, 2385 0x0000, 2386 }, 2387 { 2388 NPC_S_KPU2_ITAG, 0xff, 2389 NPC_ETYPE_SBTAG, 2390 0xffff, 2391 NPC_ETYPE_IP, 2392 0xffff, 2393 0x0000, 2394 0x0000, 2395 }, 2396 { 2397 NPC_S_KPU2_ITAG, 0xff, 2398 NPC_ETYPE_SBTAG, 2399 0xffff, 2400 NPC_ETYPE_IP6, 2401 0xffff, 2402 0x0000, 2403 0x0000, 2404 }, 2405 { 2406 NPC_S_KPU2_ITAG, 0xff, 2407 NPC_ETYPE_SBTAG, 2408 0xffff, 2409 NPC_ETYPE_ARP, 2410 0xffff, 2411 0x0000, 2412 0x0000, 2413 }, 2414 { 2415 NPC_S_KPU2_ITAG, 0xff, 2416 NPC_ETYPE_SBTAG, 2417 0xffff, 2418 0x0000, 2419 0x0000, 2420 0x0000, 2421 0x0000, 2422 }, 2423 { 2424 NPC_S_KPU2_ITAG, 0xff, 2425 NPC_ETYPE_CTAG, 2426 0xffff, 2427 NPC_ETYPE_IP, 2428 0xffff, 2429 0x0000, 2430 0x0000, 2431 }, 2432 { 2433 NPC_S_KPU2_ITAG, 0xff, 2434 NPC_ETYPE_CTAG, 2435 0xffff, 2436 NPC_ETYPE_IP6, 2437 0xffff, 2438 0x0000, 2439 0x0000, 2440 }, 2441 { 2442 NPC_S_KPU2_ITAG, 0xff, 2443 NPC_ETYPE_CTAG, 2444 0xffff, 2445 NPC_ETYPE_ARP, 2446 0xffff, 2447 0x0000, 2448 0x0000, 2449 }, 2450 { 2451 NPC_S_KPU2_ITAG, 0xff, 2452 NPC_ETYPE_CTAG, 2453 0xffff, 2454 0x0000, 2455 0x0000, 2456 0x0000, 2457 0x0000, 2458 }, 2459 { 2460 NPC_S_KPU2_ITAG, 0xff, 2461 0x0000, 2462 0x0000, 2463 0x0000, 2464 0x0000, 2465 0x0000, 2466 0x0000, 2467 }, 2468 { 2469 NPC_S_KPU2_CTAG2, 0xff, 2470 NPC_ETYPE_IP, 2471 0xffff, 2472 0x0000, 2473 0x0000, 2474 0x0000, 2475 0x0000, 2476 }, 2477 { 2478 NPC_S_KPU2_CTAG2, 0xff, 2479 NPC_ETYPE_IP6, 2480 0xffff, 2481 0x0000, 2482 0x0000, 2483 0x0000, 2484 0x0000, 2485 }, 2486 { 2487 NPC_S_KPU2_CTAG2, 0xff, 2488 NPC_ETYPE_ARP, 2489 0xffff, 2490 0x0000, 2491 0x0000, 2492 0x0000, 2493 0x0000, 2494 }, 2495 { 2496 NPC_S_KPU2_CTAG2, 0xff, 2497 NPC_ETYPE_RARP, 2498 0xffff, 2499 0x0000, 2500 0x0000, 2501 0x0000, 2502 0x0000, 2503 }, 2504 { 2505 NPC_S_KPU2_CTAG2, 0xff, 2506 NPC_ETYPE_PTP, 2507 0xffff, 2508 0x0000, 2509 0x0000, 2510 0x0000, 2511 0x0000, 2512 }, 2513 { 2514 NPC_S_KPU2_CTAG2, 0xff, 2515 NPC_ETYPE_FCOE, 2516 0xffff, 2517 0x0000, 2518 0x0000, 2519 0x0000, 2520 0x0000, 2521 }, 2522 { 2523 NPC_S_KPU2_CTAG2, 0xff, 2524 NPC_ETYPE_MPLSU, 2525 0xffff, 2526 0x0000, 2527 0x0000, 2528 0x0000, 2529 0x0000, 2530 }, 2531 { 2532 NPC_S_KPU2_CTAG2, 0xff, 2533 NPC_ETYPE_MPLSM, 2534 0xffff, 2535 0x0000, 2536 0x0000, 2537 0x0000, 2538 0x0000, 2539 }, 2540 { 2541 NPC_S_KPU2_CTAG2, 0xff, 2542 NPC_ETYPE_NSH, 2543 0xffff, 2544 0x0000, 2545 0x0000, 2546 0x0000, 2547 0x0000, 2548 }, 2549 { 2550 NPC_S_KPU2_CTAG2, 0xff, 2551 NPC_ETYPE_CTAG, 2552 0xffff, 2553 0x0000, 2554 0x0000, 2555 0x0000, 2556 0x0000, 2557 }, 2558 { 2559 NPC_S_KPU2_CTAG2, 0xff, 2560 0x0000, 2561 0x0000, 2562 0x0000, 2563 0x0000, 2564 0x0000, 2565 0x0000, 2566 }, 2567 { 2568 NPC_S_KPU2_PREHEADER, 0xff, 2569 NPC_ETYPE_IP, 2570 0xffff, 2571 0x0000, 2572 0x0000, 2573 0x0000, 2574 0x0000, 2575 }, 2576 { 2577 NPC_S_KPU2_PREHEADER, 0xff, 2578 NPC_ETYPE_IP6, 2579 0xffff, 2580 0x0000, 2581 0x0000, 2582 0x0000, 2583 0x0000, 2584 }, 2585 { 2586 NPC_S_KPU2_PREHEADER, 0xff, 2587 NPC_ETYPE_ARP, 2588 0xffff, 2589 0x0000, 2590 0x0000, 2591 0x0000, 2592 0x0000, 2593 }, 2594 { 2595 NPC_S_KPU2_PREHEADER, 0xff, 2596 NPC_ETYPE_RARP, 2597 0xffff, 2598 0x0000, 2599 0x0000, 2600 0x0000, 2601 0x0000, 2602 }, 2603 { 2604 NPC_S_KPU2_PREHEADER, 0xff, 2605 NPC_ETYPE_PTP, 2606 0xffff, 2607 0x0000, 2608 0x0000, 2609 0x0000, 2610 0x0000, 2611 }, 2612 { 2613 NPC_S_KPU2_PREHEADER, 0xff, 2614 NPC_ETYPE_FCOE, 2615 0xffff, 2616 0x0000, 2617 0x0000, 2618 0x0000, 2619 0x0000, 2620 }, 2621 { 2622 NPC_S_KPU2_PREHEADER, 0xff, 2623 NPC_ETYPE_CTAG, 2624 0xffff, 2625 0x0000, 2626 0x0000, 2627 0x0000, 2628 0x0000, 2629 }, 2630 { 2631 NPC_S_KPU2_PREHEADER, 0xff, 2632 NPC_ETYPE_SBTAG, 2633 0xffff, 2634 0x0000, 2635 0x0000, 2636 0x0000, 2637 0x0000, 2638 }, 2639 { 2640 NPC_S_KPU2_PREHEADER, 0xff, 2641 NPC_ETYPE_QINQ, 2642 0xffff, 2643 0x0000, 2644 0x0000, 2645 0x0000, 2646 0x0000, 2647 }, 2648 { 2649 NPC_S_KPU2_PREHEADER, 0xff, 2650 NPC_ETYPE_MPLSU, 2651 0xffff, 2652 0x0000, 2653 0x0000, 2654 0x0000, 2655 0x0000, 2656 }, 2657 { 2658 NPC_S_KPU2_PREHEADER, 0xff, 2659 NPC_ETYPE_MPLSM, 2660 0xffff, 2661 0x0000, 2662 0x0000, 2663 0x0000, 2664 0x0000, 2665 }, 2666 { 2667 NPC_S_KPU2_PREHEADER, 0xff, 2668 NPC_ETYPE_NSH, 2669 0xffff, 2670 0x0000, 2671 0x0000, 2672 0x0000, 2673 0x0000, 2674 }, 2675 { 2676 NPC_S_KPU2_EXDSA, 0xff, 2677 NPC_DSA_EDSA, 2678 NPC_DSA_EDSA, 2679 0x0000, 2680 0x0000, 2681 NPC_ETYPE_IP, 2682 0xffff, 2683 }, 2684 { 2685 NPC_S_KPU2_EXDSA, 0xff, 2686 NPC_DSA_EDSA, 2687 NPC_DSA_EDSA, 2688 0x0000, 2689 0x0000, 2690 NPC_ETYPE_IP6, 2691 0xffff, 2692 }, 2693 { 2694 NPC_S_KPU2_EXDSA, 0xff, 2695 NPC_DSA_EDSA, 2696 NPC_DSA_EDSA, 2697 0x0000, 2698 0x0000, 2699 NPC_ETYPE_ARP, 2700 0xffff, 2701 }, 2702 { 2703 NPC_S_KPU2_EXDSA, 0xff, 2704 NPC_DSA_EDSA, 2705 NPC_DSA_EDSA, 2706 0x0000, 2707 0x0000, 2708 NPC_ETYPE_RARP, 2709 0xffff, 2710 }, 2711 { 2712 NPC_S_KPU2_EXDSA, 0xff, 2713 NPC_DSA_EDSA, 2714 NPC_DSA_EDSA, 2715 0x0000, 2716 0x0000, 2717 NPC_ETYPE_PTP, 2718 0xffff, 2719 }, 2720 { 2721 NPC_S_KPU2_EXDSA, 0xff, 2722 NPC_DSA_EDSA, 2723 NPC_DSA_EDSA, 2724 0x0000, 2725 0x0000, 2726 NPC_ETYPE_FCOE, 2727 0xffff, 2728 }, 2729 { 2730 NPC_S_KPU2_EXDSA, 0xff, 2731 NPC_DSA_EDSA, 2732 NPC_DSA_EDSA, 2733 0x0000, 2734 0x0000, 2735 NPC_ETYPE_CTAG, 2736 0xffff, 2737 }, 2738 { 2739 NPC_S_KPU2_EXDSA, 0xff, 2740 NPC_DSA_EDSA, 2741 NPC_DSA_EDSA, 2742 0x0000, 2743 0x0000, 2744 0x0000, 2745 0x0000, 2746 }, 2747 { 2748 NPC_S_KPU2_EXDSA, 0xff, 2749 0x0000, 2750 NPC_DSA_EDSA, 2751 NPC_ETYPE_IP, 2752 0xffff, 2753 0x0000, 2754 0x0000, 2755 }, 2756 { 2757 NPC_S_KPU2_EXDSA, 0xff, 2758 0x0000, 2759 NPC_DSA_EDSA, 2760 NPC_ETYPE_IP6, 2761 0xffff, 2762 0x0000, 2763 0x0000, 2764 }, 2765 { 2766 NPC_S_KPU2_EXDSA, 0xff, 2767 0x0000, 2768 NPC_DSA_EDSA, 2769 NPC_ETYPE_ARP, 2770 0xffff, 2771 0x0000, 2772 0x0000, 2773 }, 2774 { 2775 NPC_S_KPU2_EXDSA, 0xff, 2776 0x0000, 2777 NPC_DSA_EDSA, 2778 NPC_ETYPE_RARP, 2779 0xffff, 2780 0x0000, 2781 0x0000, 2782 }, 2783 { 2784 NPC_S_KPU2_EXDSA, 0xff, 2785 0x0000, 2786 NPC_DSA_EDSA, 2787 NPC_ETYPE_PTP, 2788 0xffff, 2789 0x0000, 2790 0x0000, 2791 }, 2792 { 2793 NPC_S_KPU2_EXDSA, 0xff, 2794 0x0000, 2795 NPC_DSA_EDSA, 2796 NPC_ETYPE_FCOE, 2797 0xffff, 2798 0x0000, 2799 0x0000, 2800 }, 2801 { 2802 NPC_S_KPU2_EXDSA, 0xff, 2803 0x0000, 2804 NPC_DSA_EDSA, 2805 NPC_ETYPE_CTAG, 2806 0xffff, 2807 0x0000, 2808 0x0000, 2809 }, 2810 { 2811 NPC_S_KPU2_EXDSA, 0xff, 2812 0x0000, 2813 NPC_DSA_EDSA, 2814 0x0000, 2815 0x0000, 2816 0x0000, 2817 0x0000, 2818 }, 2819 { 2820 NPC_S_NA, 0X00, 2821 0x0000, 2822 0x0000, 2823 0x0000, 2824 0x0000, 2825 0x0000, 2826 0x0000, 2827 }, 2828 }; 2829 2830 static const struct npc_kpu_profile_cam kpu3_cam_entries[] = { 2831 { 2832 NPC_S_KPU3_CTAG, 0xff, 2833 NPC_ETYPE_IP, 2834 0xffff, 2835 0x0000, 2836 0x0000, 2837 0x0000, 2838 0x0000, 2839 }, 2840 { 2841 NPC_S_KPU3_CTAG, 0xff, 2842 NPC_ETYPE_IP6, 2843 0xffff, 2844 0x0000, 2845 0x0000, 2846 0x0000, 2847 0x0000, 2848 }, 2849 { 2850 NPC_S_KPU3_CTAG, 0xff, 2851 NPC_ETYPE_ARP, 2852 0xffff, 2853 0x0000, 2854 0x0000, 2855 0x0000, 2856 0x0000, 2857 }, 2858 { 2859 NPC_S_KPU3_CTAG, 0xff, 2860 NPC_ETYPE_RARP, 2861 0xffff, 2862 0x0000, 2863 0x0000, 2864 0x0000, 2865 0x0000, 2866 }, 2867 { 2868 NPC_S_KPU3_CTAG, 0xff, 2869 NPC_ETYPE_PTP, 2870 0xffff, 2871 0x0000, 2872 0x0000, 2873 0x0000, 2874 0x0000, 2875 }, 2876 { 2877 NPC_S_KPU3_CTAG, 0xff, 2878 NPC_ETYPE_FCOE, 2879 0xffff, 2880 0x0000, 2881 0x0000, 2882 0x0000, 2883 0x0000, 2884 }, 2885 { 2886 NPC_S_KPU3_CTAG, 0xff, 2887 NPC_ETYPE_MPLSU, 2888 0xffff, 2889 0x0000, 2890 0x0000, 2891 0x0000, 2892 0x0000, 2893 }, 2894 { 2895 NPC_S_KPU3_CTAG, 0xff, 2896 NPC_ETYPE_MPLSM, 2897 0xffff, 2898 0x0000, 2899 0x0000, 2900 0x0000, 2901 0x0000, 2902 }, 2903 { 2904 NPC_S_KPU3_CTAG, 0xff, 2905 NPC_ETYPE_NSH, 2906 0xffff, 2907 0x0000, 2908 0x0000, 2909 0x0000, 2910 0x0000, 2911 }, 2912 { 2913 NPC_S_KPU3_CTAG, 0xff, 2914 0x0000, 2915 0x0000, 2916 0x0000, 2917 0x0000, 2918 0x0000, 2919 0x0000, 2920 }, 2921 { 2922 NPC_S_KPU3_STAG, 0xff, 2923 NPC_ETYPE_CTAG, 2924 0xffff, 2925 NPC_ETYPE_IP, 2926 0xffff, 2927 0x0000, 2928 0x0000, 2929 }, 2930 { 2931 NPC_S_KPU3_STAG, 0xff, 2932 NPC_ETYPE_CTAG, 2933 0xffff, 2934 NPC_ETYPE_IP6, 2935 0xffff, 2936 0x0000, 2937 0x0000, 2938 }, 2939 { 2940 NPC_S_KPU3_STAG, 0xff, 2941 NPC_ETYPE_CTAG, 2942 0xffff, 2943 NPC_ETYPE_ARP, 2944 0xffff, 2945 0x0000, 2946 0x0000, 2947 }, 2948 { 2949 NPC_S_KPU3_STAG, 0xff, 2950 NPC_ETYPE_CTAG, 2951 0xffff, 2952 NPC_ETYPE_RARP, 2953 0xffff, 2954 0x0000, 2955 0x0000, 2956 }, 2957 { 2958 NPC_S_KPU3_STAG, 0xff, 2959 NPC_ETYPE_CTAG, 2960 0xffff, 2961 NPC_ETYPE_PTP, 2962 0xffff, 2963 0x0000, 2964 0x0000, 2965 }, 2966 { 2967 NPC_S_KPU3_STAG, 0xff, 2968 NPC_ETYPE_CTAG, 2969 0xffff, 2970 NPC_ETYPE_FCOE, 2971 0xffff, 2972 0x0000, 2973 0x0000, 2974 }, 2975 { 2976 NPC_S_KPU3_STAG, 0xff, 2977 NPC_ETYPE_CTAG, 2978 0xffff, 2979 NPC_ETYPE_MPLSU, 2980 0xffff, 2981 0x0000, 2982 0x0000, 2983 }, 2984 { 2985 NPC_S_KPU3_STAG, 0xff, 2986 NPC_ETYPE_CTAG, 2987 0xffff, 2988 NPC_ETYPE_MPLSM, 2989 0xffff, 2990 0x0000, 2991 0x0000, 2992 }, 2993 { 2994 NPC_S_KPU3_STAG, 0xff, 2995 NPC_ETYPE_CTAG, 2996 0xffff, 2997 NPC_ETYPE_NSH, 2998 0xffff, 2999 0x0000, 3000 0x0000, 3001 }, 3002 { 3003 NPC_S_KPU3_STAG, 0xff, 3004 NPC_ETYPE_IP, 3005 0xffff, 3006 0x0000, 3007 0x0000, 3008 0x0000, 3009 0x0000, 3010 }, 3011 { 3012 NPC_S_KPU3_STAG, 0xff, 3013 NPC_ETYPE_IP6, 3014 0xffff, 3015 0x0000, 3016 0x0000, 3017 0x0000, 3018 0x0000, 3019 }, 3020 { 3021 NPC_S_KPU3_STAG, 0xff, 3022 NPC_ETYPE_ARP, 3023 0xffff, 3024 0x0000, 3025 0x0000, 3026 0x0000, 3027 0x0000, 3028 }, 3029 { 3030 NPC_S_KPU3_STAG, 0xff, 3031 NPC_ETYPE_RARP, 3032 0xffff, 3033 0x0000, 3034 0x0000, 3035 0x0000, 3036 0x0000, 3037 }, 3038 { 3039 NPC_S_KPU3_STAG, 0xff, 3040 NPC_ETYPE_MPLSU, 3041 0xffff, 3042 0x0000, 3043 0x0000, 3044 0x0000, 3045 0x0000, 3046 }, 3047 { 3048 NPC_S_KPU3_STAG, 0xff, 3049 NPC_ETYPE_MPLSM, 3050 0xffff, 3051 0x0000, 3052 0x0000, 3053 0x0000, 3054 0x0000, 3055 }, 3056 { 3057 NPC_S_KPU3_STAG, 0xff, 3058 NPC_ETYPE_NSH, 3059 0xffff, 3060 0x0000, 3061 0x0000, 3062 0x0000, 3063 0x0000, 3064 }, 3065 { 3066 NPC_S_KPU3_STAG, 0xff, 3067 0x0000, 3068 0x0000, 3069 0x0000, 3070 0x0000, 3071 0x0000, 3072 0x0000, 3073 }, 3074 { 3075 NPC_S_KPU3_QINQ, 0xff, 3076 NPC_ETYPE_CTAG, 3077 0xffff, 3078 NPC_ETYPE_IP, 3079 0xffff, 3080 0x0000, 3081 0x0000, 3082 }, 3083 { 3084 NPC_S_KPU3_QINQ, 0xff, 3085 NPC_ETYPE_CTAG, 3086 0xffff, 3087 NPC_ETYPE_IP6, 3088 0xffff, 3089 0x0000, 3090 0x0000, 3091 }, 3092 { 3093 NPC_S_KPU3_QINQ, 0xff, 3094 NPC_ETYPE_CTAG, 3095 0xffff, 3096 NPC_ETYPE_ARP, 3097 0xffff, 3098 0x0000, 3099 0x0000, 3100 }, 3101 { 3102 NPC_S_KPU3_QINQ, 0xff, 3103 NPC_ETYPE_CTAG, 3104 0xffff, 3105 NPC_ETYPE_RARP, 3106 0xffff, 3107 0x0000, 3108 0x0000, 3109 }, 3110 { 3111 NPC_S_KPU3_QINQ, 0xff, 3112 NPC_ETYPE_CTAG, 3113 0xffff, 3114 NPC_ETYPE_PTP, 3115 0xffff, 3116 0x0000, 3117 0x0000, 3118 }, 3119 { 3120 NPC_S_KPU3_QINQ, 0xff, 3121 NPC_ETYPE_CTAG, 3122 0xffff, 3123 NPC_ETYPE_FCOE, 3124 0xffff, 3125 0x0000, 3126 0x0000, 3127 }, 3128 { 3129 NPC_S_KPU3_QINQ, 0xff, 3130 NPC_ETYPE_CTAG, 3131 0xffff, 3132 NPC_ETYPE_MPLSU, 3133 0xffff, 3134 0x0000, 3135 0x0000, 3136 }, 3137 { 3138 NPC_S_KPU3_QINQ, 0xff, 3139 NPC_ETYPE_CTAG, 3140 0xffff, 3141 NPC_ETYPE_MPLSM, 3142 0xffff, 3143 0x0000, 3144 0x0000, 3145 }, 3146 { 3147 NPC_S_KPU3_QINQ, 0xff, 3148 NPC_ETYPE_CTAG, 3149 0xffff, 3150 NPC_ETYPE_NSH, 3151 0xffff, 3152 0x0000, 3153 0x0000, 3154 }, 3155 { 3156 NPC_S_KPU3_QINQ, 0xff, 3157 NPC_ETYPE_IP, 3158 0xffff, 3159 0x0000, 3160 0x0000, 3161 0x0000, 3162 0x0000, 3163 }, 3164 { 3165 NPC_S_KPU3_QINQ, 0xff, 3166 NPC_ETYPE_IP6, 3167 0xffff, 3168 0x0000, 3169 0x0000, 3170 0x0000, 3171 0x0000, 3172 }, 3173 { 3174 NPC_S_KPU3_QINQ, 0xff, 3175 NPC_ETYPE_ARP, 3176 0xffff, 3177 0x0000, 3178 0x0000, 3179 0x0000, 3180 0x0000, 3181 }, 3182 { 3183 NPC_S_KPU3_QINQ, 0xff, 3184 NPC_ETYPE_RARP, 3185 0xffff, 3186 0x0000, 3187 0x0000, 3188 0x0000, 3189 0x0000, 3190 }, 3191 { 3192 NPC_S_KPU3_QINQ, 0xff, 3193 NPC_ETYPE_PTP, 3194 0xffff, 3195 0x0000, 3196 0x0000, 3197 0x0000, 3198 0x0000, 3199 }, 3200 { 3201 NPC_S_KPU3_QINQ, 0xff, 3202 NPC_ETYPE_FCOE, 3203 0xffff, 3204 0x0000, 3205 0x0000, 3206 0x0000, 3207 0x0000, 3208 }, 3209 { 3210 NPC_S_KPU3_QINQ, 0xff, 3211 NPC_ETYPE_MPLSU, 3212 0xffff, 3213 0x0000, 3214 0x0000, 3215 0x0000, 3216 0x0000, 3217 }, 3218 { 3219 NPC_S_KPU3_QINQ, 0xff, 3220 NPC_ETYPE_MPLSM, 3221 0xffff, 3222 0x0000, 3223 0x0000, 3224 0x0000, 3225 0x0000, 3226 }, 3227 { 3228 NPC_S_KPU3_QINQ, 0xff, 3229 NPC_ETYPE_NSH, 3230 0xffff, 3231 0x0000, 3232 0x0000, 3233 0x0000, 3234 0x0000, 3235 }, 3236 { 3237 NPC_S_KPU3_QINQ, 0xff, 3238 0x0000, 3239 0x0000, 3240 0x0000, 3241 0x0000, 3242 0x0000, 3243 0x0000, 3244 }, 3245 { 3246 NPC_S_KPU3_ITAG, 0xff, 3247 NPC_ETYPE_IP, 3248 0xffff, 3249 0x0000, 3250 0x0000, 3251 0x0000, 3252 0x0000, 3253 }, 3254 { 3255 NPC_S_KPU3_ITAG, 0xff, 3256 NPC_ETYPE_IP6, 3257 0xffff, 3258 0x0000, 3259 0x0000, 3260 0x0000, 3261 0x0000, 3262 }, 3263 { 3264 NPC_S_KPU3_ITAG, 0xff, 3265 NPC_ETYPE_ARP, 3266 0xffff, 3267 0x0000, 3268 0x0000, 3269 0x0000, 3270 0x0000, 3271 }, 3272 { 3273 NPC_S_KPU3_ITAG, 0xff, 3274 NPC_ETYPE_RARP, 3275 0xffff, 3276 0x0000, 3277 0x0000, 3278 0x0000, 3279 0x0000, 3280 }, 3281 { 3282 NPC_S_KPU3_ITAG, 0xff, 3283 NPC_ETYPE_SBTAG, 3284 0xffff, 3285 NPC_ETYPE_CTAG, 3286 0xffff, 3287 NPC_ETYPE_IP, 3288 0xffff, 3289 }, 3290 { 3291 NPC_S_KPU3_ITAG, 0xff, 3292 NPC_ETYPE_SBTAG, 3293 0xffff, 3294 NPC_ETYPE_CTAG, 3295 0xffff, 3296 NPC_ETYPE_IP6, 3297 0xffff, 3298 }, 3299 { 3300 NPC_S_KPU3_ITAG, 0xff, 3301 NPC_ETYPE_SBTAG, 3302 0xffff, 3303 NPC_ETYPE_CTAG, 3304 0xffff, 3305 NPC_ETYPE_ARP, 3306 0xffff, 3307 }, 3308 { 3309 NPC_S_KPU3_ITAG, 0xff, 3310 NPC_ETYPE_SBTAG, 3311 0xffff, 3312 NPC_ETYPE_IP, 3313 0xffff, 3314 0x0000, 3315 0x0000, 3316 }, 3317 { 3318 NPC_S_KPU3_ITAG, 0xff, 3319 NPC_ETYPE_SBTAG, 3320 0xffff, 3321 NPC_ETYPE_IP6, 3322 0xffff, 3323 0x0000, 3324 0x0000, 3325 }, 3326 { 3327 NPC_S_KPU3_ITAG, 0xff, 3328 NPC_ETYPE_SBTAG, 3329 0xffff, 3330 NPC_ETYPE_ARP, 3331 0xffff, 3332 0x0000, 3333 0x0000, 3334 }, 3335 { 3336 NPC_S_KPU3_ITAG, 0xff, 3337 NPC_ETYPE_SBTAG, 3338 0xffff, 3339 NPC_ETYPE_CTAG, 3340 0xffff, 3341 0x0000, 3342 0x0000, 3343 }, 3344 { 3345 NPC_S_KPU3_ITAG, 0xff, 3346 NPC_ETYPE_SBTAG, 3347 0xffff, 3348 0x0000, 3349 0x0000, 3350 0x0000, 3351 0x0000, 3352 }, 3353 { 3354 NPC_S_KPU3_ITAG, 0xff, 3355 NPC_ETYPE_CTAG, 3356 0xffff, 3357 NPC_ETYPE_IP, 3358 0xffff, 3359 0x0000, 3360 0x0000, 3361 }, 3362 { 3363 NPC_S_KPU3_ITAG, 0xff, 3364 NPC_ETYPE_CTAG, 3365 0xffff, 3366 NPC_ETYPE_IP6, 3367 0xffff, 3368 0x0000, 3369 0x0000, 3370 }, 3371 { 3372 NPC_S_KPU3_ITAG, 0xff, 3373 NPC_ETYPE_CTAG, 3374 0xffff, 3375 NPC_ETYPE_ARP, 3376 0xffff, 3377 0x0000, 3378 0x0000, 3379 }, 3380 { 3381 NPC_S_KPU3_ITAG, 0xff, 3382 NPC_ETYPE_CTAG, 3383 0xffff, 3384 0x0000, 3385 0x0000, 3386 0x0000, 3387 0x0000, 3388 }, 3389 { 3390 NPC_S_KPU3_ITAG, 0xff, 3391 0x0000, 3392 0x0000, 3393 0x0000, 3394 0x0000, 3395 0x0000, 3396 0x0000, 3397 }, 3398 { 3399 NPC_S_KPU3_CTAG_C, 0xff, 3400 NPC_ETYPE_IP, 3401 0xffff, 3402 0x0000, 3403 0x0000, 3404 0x0000, 3405 0x0000, 3406 }, 3407 { 3408 NPC_S_KPU3_CTAG_C, 0xff, 3409 NPC_ETYPE_IP6, 3410 0xffff, 3411 0x0000, 3412 0x0000, 3413 0x0000, 3414 0x0000, 3415 }, 3416 { 3417 NPC_S_KPU3_CTAG_C, 0xff, 3418 NPC_ETYPE_ARP, 3419 0xffff, 3420 0x0000, 3421 0x0000, 3422 0x0000, 3423 0x0000, 3424 }, 3425 { 3426 NPC_S_KPU3_CTAG_C, 0xff, 3427 NPC_ETYPE_RARP, 3428 0xffff, 3429 0x0000, 3430 0x0000, 3431 0x0000, 3432 0x0000, 3433 }, 3434 { 3435 NPC_S_KPU3_CTAG_C, 0xff, 3436 NPC_ETYPE_PTP, 3437 0xffff, 3438 0x0000, 3439 0x0000, 3440 0x0000, 3441 0x0000, 3442 }, 3443 { 3444 NPC_S_KPU3_CTAG_C, 0xff, 3445 NPC_ETYPE_FCOE, 3446 0xffff, 3447 0x0000, 3448 0x0000, 3449 0x0000, 3450 0x0000, 3451 }, 3452 { 3453 NPC_S_KPU3_CTAG_C, 0xff, 3454 NPC_ETYPE_MPLSU, 3455 0xffff, 3456 0x0000, 3457 0x0000, 3458 0x0000, 3459 0x0000, 3460 }, 3461 { 3462 NPC_S_KPU3_CTAG_C, 0xff, 3463 NPC_ETYPE_MPLSM, 3464 0xffff, 3465 0x0000, 3466 0x0000, 3467 0x0000, 3468 0x0000, 3469 }, 3470 { 3471 NPC_S_KPU3_CTAG_C, 0xff, 3472 NPC_ETYPE_NSH, 3473 0xffff, 3474 0x0000, 3475 0x0000, 3476 0x0000, 3477 0x0000, 3478 }, 3479 { 3480 NPC_S_KPU3_CTAG_C, 0xff, 3481 0x0000, 3482 0x0000, 3483 0x0000, 3484 0x0000, 3485 0x0000, 3486 0x0000, 3487 }, 3488 { 3489 NPC_S_KPU3_STAG_C, 0xff, 3490 NPC_ETYPE_CTAG, 3491 0xffff, 3492 NPC_ETYPE_IP, 3493 0xffff, 3494 0x0000, 3495 0x0000, 3496 }, 3497 { 3498 NPC_S_KPU3_STAG_C, 0xff, 3499 NPC_ETYPE_CTAG, 3500 0xffff, 3501 NPC_ETYPE_IP6, 3502 0xffff, 3503 0x0000, 3504 0x0000, 3505 }, 3506 { 3507 NPC_S_KPU3_STAG_C, 0xff, 3508 NPC_ETYPE_CTAG, 3509 0xffff, 3510 NPC_ETYPE_ARP, 3511 0xffff, 3512 0x0000, 3513 0x0000, 3514 }, 3515 { 3516 NPC_S_KPU3_STAG_C, 0xff, 3517 NPC_ETYPE_CTAG, 3518 0xffff, 3519 NPC_ETYPE_RARP, 3520 0xffff, 3521 0x0000, 3522 0x0000, 3523 }, 3524 { 3525 NPC_S_KPU3_STAG_C, 0xff, 3526 NPC_ETYPE_CTAG, 3527 0xffff, 3528 NPC_ETYPE_PTP, 3529 0xffff, 3530 0x0000, 3531 0x0000, 3532 }, 3533 { 3534 NPC_S_KPU3_STAG_C, 0xff, 3535 NPC_ETYPE_CTAG, 3536 0xffff, 3537 NPC_ETYPE_FCOE, 3538 0xffff, 3539 0x0000, 3540 0x0000, 3541 }, 3542 { 3543 NPC_S_KPU3_STAG_C, 0xff, 3544 NPC_ETYPE_CTAG, 3545 0xffff, 3546 NPC_ETYPE_MPLSU, 3547 0xffff, 3548 0x0000, 3549 0x0000, 3550 }, 3551 { 3552 NPC_S_KPU3_STAG_C, 0xff, 3553 NPC_ETYPE_CTAG, 3554 0xffff, 3555 NPC_ETYPE_MPLSM, 3556 0xffff, 3557 0x0000, 3558 0x0000, 3559 }, 3560 { 3561 NPC_S_KPU3_STAG_C, 0xff, 3562 NPC_ETYPE_CTAG, 3563 0xffff, 3564 NPC_ETYPE_NSH, 3565 0xffff, 3566 0x0000, 3567 0x0000, 3568 }, 3569 { 3570 NPC_S_KPU3_STAG_C, 0xff, 3571 NPC_ETYPE_IP, 3572 0xffff, 3573 0x0000, 3574 0x0000, 3575 0x0000, 3576 0x0000, 3577 }, 3578 { 3579 NPC_S_KPU3_STAG_C, 0xff, 3580 NPC_ETYPE_IP6, 3581 0xffff, 3582 0x0000, 3583 0x0000, 3584 0x0000, 3585 0x0000, 3586 }, 3587 { 3588 NPC_S_KPU3_STAG_C, 0xff, 3589 NPC_ETYPE_ARP, 3590 0xffff, 3591 0x0000, 3592 0x0000, 3593 0x0000, 3594 0x0000, 3595 }, 3596 { 3597 NPC_S_KPU3_STAG_C, 0xff, 3598 NPC_ETYPE_RARP, 3599 0xffff, 3600 0x0000, 3601 0x0000, 3602 0x0000, 3603 0x0000, 3604 }, 3605 { 3606 NPC_S_KPU3_STAG_C, 0xff, 3607 NPC_ETYPE_MPLSU, 3608 0xffff, 3609 0x0000, 3610 0x0000, 3611 0x0000, 3612 0x0000, 3613 }, 3614 { 3615 NPC_S_KPU3_STAG_C, 0xff, 3616 NPC_ETYPE_MPLSM, 3617 0xffff, 3618 0x0000, 3619 0x0000, 3620 0x0000, 3621 0x0000, 3622 }, 3623 { 3624 NPC_S_KPU3_STAG_C, 0xff, 3625 NPC_ETYPE_NSH, 3626 0xffff, 3627 0x0000, 3628 0x0000, 3629 0x0000, 3630 0x0000, 3631 }, 3632 { 3633 NPC_S_KPU3_STAG_C, 0xff, 3634 0x0000, 3635 0x0000, 3636 0x0000, 3637 0x0000, 3638 0x0000, 3639 0x0000, 3640 }, 3641 { 3642 NPC_S_KPU3_QINQ_C, 0xff, 3643 NPC_ETYPE_CTAG, 3644 0xffff, 3645 NPC_ETYPE_IP, 3646 0xffff, 3647 0x0000, 3648 0x0000, 3649 }, 3650 { 3651 NPC_S_KPU3_QINQ_C, 0xff, 3652 NPC_ETYPE_CTAG, 3653 0xffff, 3654 NPC_ETYPE_IP6, 3655 0xffff, 3656 0x0000, 3657 0x0000, 3658 }, 3659 { 3660 NPC_S_KPU3_QINQ_C, 0xff, 3661 NPC_ETYPE_CTAG, 3662 0xffff, 3663 NPC_ETYPE_ARP, 3664 0xffff, 3665 0x0000, 3666 0x0000, 3667 }, 3668 { 3669 NPC_S_KPU3_QINQ_C, 0xff, 3670 NPC_ETYPE_CTAG, 3671 0xffff, 3672 NPC_ETYPE_RARP, 3673 0xffff, 3674 0x0000, 3675 0x0000, 3676 }, 3677 { 3678 NPC_S_KPU3_QINQ_C, 0xff, 3679 NPC_ETYPE_CTAG, 3680 0xffff, 3681 NPC_ETYPE_PTP, 3682 0xffff, 3683 0x0000, 3684 0x0000, 3685 }, 3686 { 3687 NPC_S_KPU3_QINQ_C, 0xff, 3688 NPC_ETYPE_CTAG, 3689 0xffff, 3690 NPC_ETYPE_FCOE, 3691 0xffff, 3692 0x0000, 3693 0x0000, 3694 }, 3695 { 3696 NPC_S_KPU3_QINQ_C, 0xff, 3697 NPC_ETYPE_CTAG, 3698 0xffff, 3699 NPC_ETYPE_MPLSU, 3700 0xffff, 3701 0x0000, 3702 0x0000, 3703 }, 3704 { 3705 NPC_S_KPU3_QINQ_C, 0xff, 3706 NPC_ETYPE_CTAG, 3707 0xffff, 3708 NPC_ETYPE_MPLSM, 3709 0xffff, 3710 0x0000, 3711 0x0000, 3712 }, 3713 { 3714 NPC_S_KPU3_QINQ_C, 0xff, 3715 NPC_ETYPE_CTAG, 3716 0xffff, 3717 NPC_ETYPE_NSH, 3718 0xffff, 3719 0x0000, 3720 0x0000, 3721 }, 3722 { 3723 NPC_S_KPU3_QINQ_C, 0xff, 3724 NPC_ETYPE_IP, 3725 0xffff, 3726 0x0000, 3727 0x0000, 3728 0x0000, 3729 0x0000, 3730 }, 3731 { 3732 NPC_S_KPU3_QINQ_C, 0xff, 3733 NPC_ETYPE_IP6, 3734 0xffff, 3735 0x0000, 3736 0x0000, 3737 0x0000, 3738 0x0000, 3739 }, 3740 { 3741 NPC_S_KPU3_QINQ_C, 0xff, 3742 NPC_ETYPE_ARP, 3743 0xffff, 3744 0x0000, 3745 0x0000, 3746 0x0000, 3747 0x0000, 3748 }, 3749 { 3750 NPC_S_KPU3_QINQ_C, 0xff, 3751 NPC_ETYPE_RARP, 3752 0xffff, 3753 0x0000, 3754 0x0000, 3755 0x0000, 3756 0x0000, 3757 }, 3758 { 3759 NPC_S_KPU3_QINQ_C, 0xff, 3760 NPC_ETYPE_PTP, 3761 0xffff, 3762 0x0000, 3763 0x0000, 3764 0x0000, 3765 0x0000, 3766 }, 3767 { 3768 NPC_S_KPU3_QINQ_C, 0xff, 3769 NPC_ETYPE_FCOE, 3770 0xffff, 3771 0x0000, 3772 0x0000, 3773 0x0000, 3774 0x0000, 3775 }, 3776 { 3777 NPC_S_KPU3_QINQ_C, 0xff, 3778 NPC_ETYPE_MPLSU, 3779 0xffff, 3780 0x0000, 3781 0x0000, 3782 0x0000, 3783 0x0000, 3784 }, 3785 { 3786 NPC_S_KPU3_QINQ_C, 0xff, 3787 NPC_ETYPE_MPLSM, 3788 0xffff, 3789 0x0000, 3790 0x0000, 3791 0x0000, 3792 0x0000, 3793 }, 3794 { 3795 NPC_S_KPU3_QINQ_C, 0xff, 3796 NPC_ETYPE_NSH, 3797 0xffff, 3798 0x0000, 3799 0x0000, 3800 0x0000, 3801 0x0000, 3802 }, 3803 { 3804 NPC_S_KPU3_QINQ_C, 0xff, 3805 0x0000, 3806 0x0000, 3807 0x0000, 3808 0x0000, 3809 0x0000, 3810 0x0000, 3811 }, 3812 { 3813 NPC_S_KPU3_DSA, 0xff, 3814 NPC_ETYPE_IP, 3815 0xffff, 3816 0x0000, 3817 0x0000, 3818 0x0000, 3819 0x0000, 3820 }, 3821 { 3822 NPC_S_KPU3_DSA, 0xff, 3823 NPC_ETYPE_IP6, 3824 0xffff, 3825 0x0000, 3826 0x0000, 3827 0x0000, 3828 0x0000, 3829 }, 3830 { 3831 NPC_S_KPU3_DSA, 0xff, 3832 NPC_ETYPE_ARP, 3833 0xffff, 3834 0x0000, 3835 0x0000, 3836 0x0000, 3837 0x0000, 3838 }, 3839 { 3840 NPC_S_KPU3_DSA, 0xff, 3841 NPC_ETYPE_RARP, 3842 0xffff, 3843 0x0000, 3844 0x0000, 3845 0x0000, 3846 0x0000, 3847 }, 3848 { 3849 NPC_S_KPU3_DSA, 0xff, 3850 NPC_ETYPE_PTP, 3851 0xffff, 3852 0x0000, 3853 0x0000, 3854 0x0000, 3855 0x0000, 3856 }, 3857 { 3858 NPC_S_KPU3_DSA, 0xff, 3859 NPC_ETYPE_FCOE, 3860 0xffff, 3861 0x0000, 3862 0x0000, 3863 0x0000, 3864 0x0000, 3865 }, 3866 { 3867 NPC_S_KPU3_DSA, 0xff, 3868 NPC_ETYPE_CTAG, 3869 0xffff, 3870 NPC_ETYPE_IP, 3871 0xffff, 3872 0x0000, 3873 0x0000, 3874 }, 3875 { 3876 NPC_S_KPU3_DSA, 0xff, 3877 NPC_ETYPE_CTAG, 3878 0xffff, 3879 NPC_ETYPE_IP6, 3880 0xffff, 3881 0x0000, 3882 0x0000, 3883 }, 3884 { 3885 NPC_S_KPU3_DSA, 0xff, 3886 NPC_ETYPE_CTAG, 3887 0xffff, 3888 NPC_ETYPE_ARP, 3889 0xffff, 3890 0x0000, 3891 0x0000, 3892 }, 3893 { 3894 NPC_S_KPU3_DSA, 0xff, 3895 NPC_ETYPE_CTAG, 3896 0xffff, 3897 NPC_ETYPE_RARP, 3898 0xffff, 3899 0x0000, 3900 0x0000, 3901 }, 3902 { 3903 NPC_S_KPU3_DSA, 0xff, 3904 NPC_ETYPE_CTAG, 3905 0xffff, 3906 NPC_ETYPE_PTP, 3907 0xffff, 3908 0x0000, 3909 0x0000, 3910 }, 3911 { 3912 NPC_S_KPU3_DSA, 0xff, 3913 NPC_ETYPE_CTAG, 3914 0xffff, 3915 NPC_ETYPE_FCOE, 3916 0xffff, 3917 0x0000, 3918 0x0000, 3919 }, 3920 { 3921 NPC_S_KPU3_DSA, 0xff, 3922 NPC_ETYPE_CTAG, 3923 0xffff, 3924 0x0000, 3925 0x0000, 3926 0x0000, 3927 0x0000, 3928 }, 3929 { 3930 NPC_S_KPU3_DSA, 0xff, 3931 0x0000, 3932 0x0000, 3933 0x0000, 3934 0x0000, 3935 0x0000, 3936 0x0000, 3937 }, 3938 { 3939 NPC_S_NA, 0X00, 3940 0x0000, 3941 0x0000, 3942 0x0000, 3943 0x0000, 3944 0x0000, 3945 0x0000, 3946 }, 3947 }; 3948 3949 static const struct npc_kpu_profile_cam kpu4_cam_entries[] = { 3950 { 3951 NPC_S_KPU4_MPLS, 0xff, 3952 NPC_MPLS_S, 3953 NPC_MPLS_S, 3954 0x0000, 3955 0x0000, 3956 0x0000, 3957 0x0000, 3958 }, 3959 { 3960 NPC_S_KPU4_MPLS, 0xff, 3961 0x0000, 3962 NPC_MPLS_S, 3963 NPC_MPLS_S, 3964 NPC_MPLS_S, 3965 0x0000, 3966 0x0000, 3967 }, 3968 { 3969 NPC_S_KPU4_MPLS, 0xff, 3970 0x0000, 3971 NPC_MPLS_S, 3972 0x0000, 3973 NPC_MPLS_S, 3974 NPC_MPLS_S, 3975 NPC_MPLS_S, 3976 }, 3977 { 3978 NPC_S_KPU4_MPLS, 0xff, 3979 0x0000, 3980 NPC_MPLS_S, 3981 0x0000, 3982 NPC_MPLS_S, 3983 0x0000, 3984 NPC_MPLS_S, 3985 }, 3986 { 3987 NPC_S_KPU4_NSH, 0xff, 3988 NPC_NSH_NP_IP, 3989 NPC_NSH_NP_MASK, 3990 0x0000, 3991 0x0000, 3992 0x0000, 3993 0x0000, 3994 }, 3995 { 3996 NPC_S_KPU4_NSH, 0xff, 3997 NPC_NSH_NP_IP6, 3998 NPC_NSH_NP_MASK, 3999 0x0000, 4000 0x0000, 4001 0x0000, 4002 0x0000, 4003 }, 4004 { 4005 NPC_S_KPU4_NSH, 0xff, 4006 NPC_NSH_NP_ETH, 4007 NPC_NSH_NP_MASK, 4008 0x0000, 4009 0x0000, 4010 0x0000, 4011 0x0000, 4012 }, 4013 { 4014 NPC_S_KPU4_NSH, 0xff, 4015 NPC_NSH_NP_MPLS, 4016 NPC_NSH_NP_MASK, 4017 0x0000, 4018 0x0000, 4019 0x0000, 4020 0x0000, 4021 }, 4022 { 4023 NPC_S_KPU4_NSH, 0xff, 4024 0x0000, 4025 0x0000, 4026 0x0000, 4027 0x0000, 4028 0x0000, 4029 0x0000, 4030 }, 4031 { 4032 NPC_S_KPU4_FDSA, 0xff, 4033 NPC_ETYPE_IP, 4034 0xffff, 4035 0x0000, 4036 0x0000, 4037 0x0000, 4038 0x0000, 4039 }, 4040 { 4041 NPC_S_KPU4_FDSA, 0xff, 4042 NPC_ETYPE_IP6, 4043 0xffff, 4044 0x0000, 4045 0x0000, 4046 0x0000, 4047 0x0000, 4048 }, 4049 { 4050 NPC_S_KPU4_FDSA, 0xff, 4051 NPC_ETYPE_ARP, 4052 0xffff, 4053 0x0000, 4054 0x0000, 4055 0x0000, 4056 0x0000, 4057 }, 4058 { 4059 NPC_S_KPU4_FDSA, 0xff, 4060 NPC_ETYPE_RARP, 4061 0xffff, 4062 0x0000, 4063 0x0000, 4064 0x0000, 4065 0x0000, 4066 }, 4067 { 4068 NPC_S_KPU4_FDSA, 0xff, 4069 NPC_ETYPE_PTP, 4070 0xffff, 4071 0x0000, 4072 0x0000, 4073 0x0000, 4074 0x0000, 4075 }, 4076 { 4077 NPC_S_KPU4_FDSA, 0xff, 4078 NPC_ETYPE_FCOE, 4079 0xffff, 4080 0x0000, 4081 0x0000, 4082 0x0000, 4083 0x0000, 4084 }, 4085 { 4086 NPC_S_KPU4_FDSA, 0xff, 4087 0x0000, 4088 NPC_DSA_FDSA, 4089 0x0000, 4090 0x0000, 4091 0x0000, 4092 0x0000, 4093 }, 4094 { 4095 NPC_S_NA, 0X00, 4096 0x0000, 4097 0x0000, 4098 0x0000, 4099 0x0000, 4100 0x0000, 4101 0x0000, 4102 }, 4103 }; 4104 4105 static const struct npc_kpu_profile_cam kpu5_cam_entries[] = { 4106 { 4107 NPC_S_KPU5_IP, 0xff, 4108 0x0000, 4109 NPC_IP_TTL_MASK, 4110 0x0000, 4111 0x0000, 4112 0x0000, 4113 0x0000, 4114 }, 4115 { 4116 NPC_S_KPU5_IP, 0xff, 4117 0x0000, 4118 0x0000, 4119 0x0000, 4120 0x0000, 4121 0x0001, 4122 NPC_IP_HDR_FRAGOFF, 4123 }, 4124 { 4125 NPC_S_KPU5_IP, 0xff, 4126 NPC_IPNH_TCP, 4127 0x00ff, 4128 NPC_IP_VER_4|NPC_IP_HDR_LEN_5, 4129 NPC_IP_VER_MASK|NPC_IP_HDR_LEN_MASK, 4130 0x0000, 4131 NPC_IP_HDR_MF|NPC_IP_HDR_FRAGOFF, 4132 }, 4133 { 4134 NPC_S_KPU5_IP, 0xff, 4135 NPC_IPNH_UDP, 4136 0x00ff, 4137 NPC_IP_VER_4|NPC_IP_HDR_LEN_5, 4138 NPC_IP_VER_MASK|NPC_IP_HDR_LEN_MASK, 4139 0x0000, 4140 NPC_IP_HDR_MF|NPC_IP_HDR_FRAGOFF, 4141 }, 4142 { 4143 NPC_S_KPU5_IP, 0xff, 4144 NPC_IPNH_SCTP, 4145 0x00ff, 4146 NPC_IP_VER_4|NPC_IP_HDR_LEN_5, 4147 NPC_IP_VER_MASK|NPC_IP_HDR_LEN_MASK, 4148 0x0000, 4149 NPC_IP_HDR_MF|NPC_IP_HDR_FRAGOFF, 4150 }, 4151 { 4152 NPC_S_KPU5_IP, 0xff, 4153 NPC_IPNH_ICMP, 4154 0x00ff, 4155 NPC_IP_VER_4|NPC_IP_HDR_LEN_5, 4156 NPC_IP_VER_MASK|NPC_IP_HDR_LEN_MASK, 4157 0x0000, 4158 NPC_IP_HDR_MF|NPC_IP_HDR_FRAGOFF, 4159 }, 4160 { 4161 NPC_S_KPU5_IP, 0xff, 4162 NPC_IPNH_IGMP, 4163 0x00ff, 4164 NPC_IP_VER_4|NPC_IP_HDR_LEN_5, 4165 NPC_IP_VER_MASK|NPC_IP_HDR_LEN_MASK, 4166 0x0000, 4167 NPC_IP_HDR_MF|NPC_IP_HDR_FRAGOFF, 4168 }, 4169 { 4170 NPC_S_KPU5_IP, 0xff, 4171 NPC_IPNH_ESP, 4172 0x00ff, 4173 NPC_IP_VER_4|NPC_IP_HDR_LEN_5, 4174 NPC_IP_VER_MASK|NPC_IP_HDR_LEN_MASK, 4175 0x0000, 4176 NPC_IP_HDR_MF|NPC_IP_HDR_FRAGOFF, 4177 }, 4178 { 4179 NPC_S_KPU5_IP, 0xff, 4180 NPC_IPNH_AH, 4181 0x00ff, 4182 NPC_IP_VER_4|NPC_IP_HDR_LEN_5, 4183 NPC_IP_VER_MASK|NPC_IP_HDR_LEN_MASK, 4184 0x0000, 4185 NPC_IP_HDR_MF|NPC_IP_HDR_FRAGOFF, 4186 }, 4187 { 4188 NPC_S_KPU5_IP, 0xff, 4189 NPC_IPNH_GRE, 4190 0x00ff, 4191 NPC_IP_VER_4|NPC_IP_HDR_LEN_5, 4192 NPC_IP_VER_MASK|NPC_IP_HDR_LEN_MASK, 4193 0x0000, 4194 NPC_IP_HDR_MF|NPC_IP_HDR_FRAGOFF, 4195 }, 4196 { 4197 NPC_S_KPU5_IP, 0xff, 4198 NPC_IPNH_IP, 4199 0x00ff, 4200 NPC_IP_VER_4|NPC_IP_HDR_LEN_5, 4201 NPC_IP_VER_MASK|NPC_IP_HDR_LEN_MASK, 4202 0x0000, 4203 NPC_IP_HDR_MF|NPC_IP_HDR_FRAGOFF, 4204 }, 4205 { 4206 NPC_S_KPU5_IP, 0xff, 4207 NPC_IPNH_IP6, 4208 0x00ff, 4209 NPC_IP_VER_4|NPC_IP_HDR_LEN_5, 4210 NPC_IP_VER_MASK|NPC_IP_HDR_LEN_MASK, 4211 0x0000, 4212 NPC_IP_HDR_MF|NPC_IP_HDR_FRAGOFF, 4213 }, 4214 { 4215 NPC_S_KPU5_IP, 0xff, 4216 NPC_IPNH_MPLS, 4217 0x00ff, 4218 NPC_IP_VER_4|NPC_IP_HDR_LEN_5, 4219 NPC_IP_VER_MASK|NPC_IP_HDR_LEN_MASK, 4220 0x0000, 4221 NPC_IP_HDR_MF|NPC_IP_HDR_FRAGOFF, 4222 }, 4223 { 4224 NPC_S_KPU5_IP, 0xff, 4225 0x0000, 4226 0x0000, 4227 NPC_IP_VER_4|NPC_IP_HDR_LEN_5, 4228 NPC_IP_VER_MASK|NPC_IP_HDR_LEN_MASK, 4229 0x0000, 4230 NPC_IP_HDR_MF|NPC_IP_HDR_FRAGOFF, 4231 }, 4232 { 4233 NPC_S_KPU5_IP, 0xff, 4234 0x0000, 4235 0x0000, 4236 NPC_IP_VER_4|NPC_IP_HDR_LEN_5, 4237 NPC_IP_VER_MASK|NPC_IP_HDR_LEN_MASK, 4238 0x0000, 4239 0x0000, 4240 }, 4241 { 4242 NPC_S_KPU5_IP, 0xff, 4243 NPC_IPNH_TCP, 4244 0x00ff, 4245 NPC_IP_VER_4, 4246 NPC_IP_VER_MASK, 4247 0x0000, 4248 NPC_IP_HDR_MF|NPC_IP_HDR_FRAGOFF, 4249 }, 4250 { 4251 NPC_S_KPU5_IP, 0xff, 4252 NPC_IPNH_UDP, 4253 0x00ff, 4254 NPC_IP_VER_4, 4255 NPC_IP_VER_MASK, 4256 0x0000, 4257 NPC_IP_HDR_MF|NPC_IP_HDR_FRAGOFF, 4258 }, 4259 { 4260 NPC_S_KPU5_IP, 0xff, 4261 NPC_IPNH_SCTP, 4262 0x00ff, 4263 NPC_IP_VER_4, 4264 NPC_IP_VER_MASK, 4265 0x0000, 4266 NPC_IP_HDR_MF|NPC_IP_HDR_FRAGOFF, 4267 }, 4268 { 4269 NPC_S_KPU5_IP, 0xff, 4270 NPC_IPNH_ICMP, 4271 0x00ff, 4272 NPC_IP_VER_4, 4273 NPC_IP_VER_MASK, 4274 0x0000, 4275 NPC_IP_HDR_MF|NPC_IP_HDR_FRAGOFF, 4276 }, 4277 { 4278 NPC_S_KPU5_IP, 0xff, 4279 NPC_IPNH_IGMP, 4280 0x00ff, 4281 NPC_IP_VER_4, 4282 NPC_IP_VER_MASK, 4283 0x0000, 4284 NPC_IP_HDR_MF|NPC_IP_HDR_FRAGOFF, 4285 }, 4286 { 4287 NPC_S_KPU5_IP, 0xff, 4288 NPC_IPNH_ESP, 4289 0x00ff, 4290 NPC_IP_VER_4, 4291 NPC_IP_VER_MASK, 4292 0x0000, 4293 NPC_IP_HDR_MF|NPC_IP_HDR_FRAGOFF, 4294 }, 4295 { 4296 NPC_S_KPU5_IP, 0xff, 4297 NPC_IPNH_AH, 4298 0x00ff, 4299 NPC_IP_VER_4, 4300 NPC_IP_VER_MASK, 4301 0x0000, 4302 NPC_IP_HDR_MF|NPC_IP_HDR_FRAGOFF, 4303 }, 4304 { 4305 NPC_S_KPU5_IP, 0xff, 4306 NPC_IPNH_GRE, 4307 0x00ff, 4308 NPC_IP_VER_4, 4309 NPC_IP_VER_MASK, 4310 0x0000, 4311 NPC_IP_HDR_MF|NPC_IP_HDR_FRAGOFF, 4312 }, 4313 { 4314 NPC_S_KPU5_IP, 0xff, 4315 NPC_IPNH_IP, 4316 0x00ff, 4317 NPC_IP_VER_4, 4318 NPC_IP_VER_MASK, 4319 0x0000, 4320 NPC_IP_HDR_MF|NPC_IP_HDR_FRAGOFF, 4321 }, 4322 { 4323 NPC_S_KPU5_IP, 0xff, 4324 NPC_IPNH_IP6, 4325 0x00ff, 4326 NPC_IP_VER_4, 4327 NPC_IP_VER_MASK, 4328 0x0000, 4329 NPC_IP_HDR_MF|NPC_IP_HDR_FRAGOFF, 4330 }, 4331 { 4332 NPC_S_KPU5_IP, 0xff, 4333 NPC_IPNH_MPLS, 4334 0x00ff, 4335 NPC_IP_VER_4, 4336 NPC_IP_VER_MASK, 4337 0x0000, 4338 NPC_IP_HDR_MF|NPC_IP_HDR_FRAGOFF, 4339 }, 4340 { 4341 NPC_S_KPU5_IP, 0xff, 4342 0x0000, 4343 0x0000, 4344 NPC_IP_VER_4, 4345 NPC_IP_VER_MASK, 4346 0x0000, 4347 NPC_IP_HDR_MF|NPC_IP_HDR_FRAGOFF, 4348 }, 4349 { 4350 NPC_S_KPU5_IP, 0xff, 4351 0x0000, 4352 0x0000, 4353 NPC_IP_VER_4, 4354 NPC_IP_VER_MASK, 4355 0x0000, 4356 0x0000, 4357 }, 4358 { 4359 NPC_S_KPU5_IP, 0xff, 4360 0x0000, 4361 0x0000, 4362 0x0000, 4363 0x0000, 4364 0x0000, 4365 0x0000, 4366 }, 4367 { 4368 NPC_S_KPU5_ARP, 0xff, 4369 0x0000, 4370 0x0000, 4371 0x0000, 4372 0x0000, 4373 0x0000, 4374 0x0000, 4375 }, 4376 { 4377 NPC_S_KPU5_RARP, 0xff, 4378 0x0000, 4379 0x0000, 4380 0x0000, 4381 0x0000, 4382 0x0000, 4383 0x0000, 4384 }, 4385 { 4386 NPC_S_KPU5_PTP, 0xff, 4387 0x0000, 4388 0x0000, 4389 0x0000, 4390 0x0000, 4391 0x0000, 4392 0x0000, 4393 }, 4394 { 4395 NPC_S_KPU5_FCOE, 0xff, 4396 0x0000, 4397 0x0000, 4398 0x0000, 4399 0x0000, 4400 0x0000, 4401 0x0000, 4402 }, 4403 { 4404 NPC_S_KPU5_IP6, 0xff, 4405 0x0000, 4406 NPC_IP6_HOP_MASK, 4407 0x0000, 4408 0x0000, 4409 0x0000, 4410 0x0000, 4411 }, 4412 { 4413 NPC_S_KPU5_IP6, 0xff, 4414 NPC_IPNH_TCP << 8, 4415 0xff00, 4416 NPC_IP_VER_6, 4417 NPC_IP_VER_MASK, 4418 0x0000, 4419 0x0000, 4420 }, 4421 { 4422 NPC_S_KPU5_IP6, 0xff, 4423 NPC_IPNH_UDP << 8, 4424 0xff00, 4425 NPC_IP_VER_6, 4426 NPC_IP_VER_MASK, 4427 0x0000, 4428 0x0000, 4429 }, 4430 { 4431 NPC_S_KPU5_IP6, 0xff, 4432 NPC_IPNH_SCTP << 8, 4433 0xff00, 4434 NPC_IP_VER_6, 4435 NPC_IP_VER_MASK, 4436 0x0000, 4437 0x0000, 4438 }, 4439 { 4440 NPC_S_KPU5_IP6, 0xff, 4441 NPC_IPNH_ICMP << 8, 4442 0xff00, 4443 NPC_IP_VER_6, 4444 NPC_IP_VER_MASK, 4445 0x0000, 4446 0x0000, 4447 }, 4448 { 4449 NPC_S_KPU5_IP6, 0xff, 4450 NPC_IPNH_ICMP6 << 8, 4451 0xff00, 4452 NPC_IP_VER_6, 4453 NPC_IP_VER_MASK, 4454 0x0000, 4455 0x0000, 4456 }, 4457 { 4458 NPC_S_KPU5_IP6, 0xff, 4459 NPC_IPNH_GRE << 8, 4460 0xff00, 4461 NPC_IP_VER_6, 4462 NPC_IP_VER_MASK, 4463 0x0000, 4464 0x0000, 4465 }, 4466 { 4467 NPC_S_KPU5_IP6, 0xff, 4468 NPC_IPNH_IP6 << 8, 4469 0xff00, 4470 NPC_IP_VER_6, 4471 NPC_IP_VER_MASK, 4472 0x0000, 4473 0x0000, 4474 }, 4475 { 4476 NPC_S_KPU5_IP6, 0xff, 4477 NPC_IPNH_MPLS << 8, 4478 0xff00, 4479 NPC_IP_VER_6, 4480 NPC_IP_VER_MASK, 4481 0x0000, 4482 0x0000, 4483 }, 4484 { 4485 NPC_S_KPU5_IP6, 0xff, 4486 NPC_IPNH_HOP << 8, 4487 0xff00, 4488 NPC_IP_VER_6, 4489 NPC_IP_VER_MASK, 4490 0x0000, 4491 0x0000, 4492 }, 4493 { 4494 NPC_S_KPU5_IP6, 0xff, 4495 NPC_IPNH_DEST << 8, 4496 0xff00, 4497 NPC_IP_VER_6, 4498 NPC_IP_VER_MASK, 4499 0x0000, 4500 0x0000, 4501 }, 4502 { 4503 NPC_S_KPU5_IP6, 0xff, 4504 NPC_IPNH_ROUT << 8, 4505 0xff00, 4506 NPC_IP_VER_6, 4507 NPC_IP_VER_MASK, 4508 0x0000, 4509 0x0000, 4510 }, 4511 { 4512 NPC_S_KPU5_IP6, 0xff, 4513 NPC_IPNH_FRAG << 8, 4514 0xff00, 4515 NPC_IP_VER_6, 4516 NPC_IP_VER_MASK, 4517 0x0000, 4518 0x0000, 4519 }, 4520 { 4521 NPC_S_KPU5_IP6, 0xff, 4522 NPC_IPNH_ESP << 8, 4523 0xff00, 4524 NPC_IP_VER_6, 4525 NPC_IP_VER_MASK, 4526 0x0000, 4527 0x0000, 4528 }, 4529 { 4530 NPC_S_KPU5_IP6, 0xff, 4531 NPC_IPNH_AH << 8, 4532 0xff00, 4533 NPC_IP_VER_6, 4534 NPC_IP_VER_MASK, 4535 0x0000, 4536 0x0000, 4537 }, 4538 { 4539 NPC_S_KPU5_IP6, 0xff, 4540 NPC_IPNH_MOBILITY << 8, 4541 0xff00, 4542 NPC_IP_VER_6, 4543 NPC_IP_VER_MASK, 4544 0x0000, 4545 0x0000, 4546 }, 4547 { 4548 NPC_S_KPU5_IP6, 0xff, 4549 NPC_IPNH_HOSTID << 8, 4550 0xff00, 4551 NPC_IP_VER_6, 4552 NPC_IP_VER_MASK, 4553 0x0000, 4554 0x0000, 4555 }, 4556 { 4557 NPC_S_KPU5_IP6, 0xff, 4558 NPC_IPNH_SHIM6 << 8, 4559 0xff00, 4560 NPC_IP_VER_6, 4561 NPC_IP_VER_MASK, 4562 0x0000, 4563 0x0000, 4564 }, 4565 { 4566 NPC_S_KPU5_IP6, 0xff, 4567 0x0000, 4568 0x0000, 4569 NPC_IP_VER_6, 4570 NPC_IP_VER_MASK, 4571 0x0000, 4572 0x0000, 4573 }, 4574 { 4575 NPC_S_KPU5_IP6, 0xff, 4576 0x0000, 4577 0x0000, 4578 0x0000, 4579 0x0000, 4580 0x0000, 4581 0x0000, 4582 }, 4583 { 4584 NPC_S_KPU5_MPLS, 0xff, 4585 NPC_MPLS_S, 4586 NPC_MPLS_S, 4587 NPC_IP_VER_4, 4588 NPC_IP_VER_MASK, 4589 0x0000, 4590 0x0000, 4591 }, 4592 { 4593 NPC_S_KPU5_MPLS, 0xff, 4594 NPC_MPLS_S, 4595 NPC_MPLS_S, 4596 NPC_IP_VER_6, 4597 NPC_IP_VER_MASK, 4598 0x0000, 4599 0x0000, 4600 }, 4601 { 4602 NPC_S_KPU5_MPLS, 0xff, 4603 NPC_MPLS_S, 4604 NPC_MPLS_S, 4605 0x0000, 4606 0xffff, 4607 0x0000, 4608 0x0000, 4609 }, 4610 { 4611 NPC_S_KPU5_MPLS, 0xff, 4612 NPC_MPLS_S, 4613 NPC_MPLS_S, 4614 0x0000, 4615 0x0000, 4616 0x0000, 4617 0x0000, 4618 }, 4619 { 4620 NPC_S_KPU5_MPLS, 0xff, 4621 0x0000, 4622 NPC_MPLS_S, 4623 0x0000, 4624 0x0000, 4625 0x0000, 4626 0x0000, 4627 }, 4628 { 4629 NPC_S_KPU5_MPLS_PL, 0xff, 4630 NPC_IP_VER_4, 4631 NPC_IP_VER_MASK, 4632 0x0000, 4633 0x0000, 4634 0x0000, 4635 0x0000, 4636 }, 4637 { 4638 NPC_S_KPU5_MPLS_PL, 0xff, 4639 NPC_IP_VER_6, 4640 NPC_IP_VER_MASK, 4641 0x0000, 4642 0x0000, 4643 0x0000, 4644 0x0000, 4645 }, 4646 { 4647 NPC_S_KPU5_MPLS_PL, 0xff, 4648 0x0000, 4649 0xffff, 4650 0x0000, 4651 0x0000, 4652 0x0000, 4653 0x0000, 4654 }, 4655 { 4656 NPC_S_KPU5_MPLS_PL, 0xff, 4657 0x0000, 4658 0x0000, 4659 0x0000, 4660 0x0000, 4661 0x0000, 4662 0x0000, 4663 }, 4664 { 4665 NPC_S_NA, 0X00, 4666 0x0000, 4667 0x0000, 4668 0x0000, 4669 0x0000, 4670 0x0000, 4671 0x0000, 4672 }, 4673 }; 4674 4675 static const struct npc_kpu_profile_cam kpu6_cam_entries[] = { 4676 { 4677 NPC_S_KPU6_IP6_EXT, 0xff, 4678 0x0000, 4679 0x0000, 4680 0x0000, 4681 0x0000, 4682 0x0000, 4683 0x0000, 4684 }, 4685 { 4686 NPC_S_KPU6_IP6_FRAG, 0xff, 4687 NPC_IPNH_TCP << 8, 4688 0xff00, 4689 0x0000, 4690 NPC_IP6_FRAG_FRAGOFF, 4691 0x0000, 4692 0x0000, 4693 }, 4694 { 4695 NPC_S_KPU6_IP6_FRAG, 0xff, 4696 NPC_IPNH_UDP << 8, 4697 0xff00, 4698 0x0000, 4699 NPC_IP6_FRAG_FRAGOFF, 4700 0x0000, 4701 0x0000, 4702 }, 4703 { 4704 NPC_S_KPU6_IP6_FRAG, 0xff, 4705 NPC_IPNH_SCTP << 8, 4706 0xff00, 4707 0x0000, 4708 NPC_IP6_FRAG_FRAGOFF, 4709 0x0000, 4710 0x0000, 4711 }, 4712 { 4713 NPC_S_KPU6_IP6_FRAG, 0xff, 4714 NPC_IPNH_ICMP << 8, 4715 0xff00, 4716 0x0000, 4717 NPC_IP6_FRAG_FRAGOFF, 4718 0x0000, 4719 0x0000, 4720 }, 4721 { 4722 NPC_S_KPU6_IP6_FRAG, 0xff, 4723 NPC_IPNH_ICMP6 << 8, 4724 0xff00, 4725 0x0000, 4726 NPC_IP6_FRAG_FRAGOFF, 4727 0x0000, 4728 0x0000, 4729 }, 4730 { 4731 NPC_S_KPU6_IP6_FRAG, 0xff, 4732 NPC_IPNH_ESP << 8, 4733 0xff00, 4734 0x0000, 4735 NPC_IP6_FRAG_FRAGOFF, 4736 0x0000, 4737 0x0000, 4738 }, 4739 { 4740 NPC_S_KPU6_IP6_FRAG, 0xff, 4741 NPC_IPNH_AH << 8, 4742 0xff00, 4743 0x0000, 4744 NPC_IP6_FRAG_FRAGOFF, 4745 0x0000, 4746 0x0000, 4747 }, 4748 { 4749 NPC_S_KPU6_IP6_FRAG, 0xff, 4750 NPC_IPNH_GRE << 8, 4751 0xff00, 4752 0x0000, 4753 NPC_IP6_FRAG_FRAGOFF, 4754 0x0000, 4755 0x0000, 4756 }, 4757 { 4758 NPC_S_KPU6_IP6_FRAG, 0xff, 4759 NPC_IPNH_IP6 << 8, 4760 0xff00, 4761 0x0000, 4762 NPC_IP6_FRAG_FRAGOFF, 4763 0x0000, 4764 0x0000, 4765 }, 4766 { 4767 NPC_S_KPU6_IP6_FRAG, 0xff, 4768 NPC_IPNH_MPLS << 8, 4769 0xff00, 4770 0x0000, 4771 NPC_IP6_FRAG_FRAGOFF, 4772 0x0000, 4773 0x0000, 4774 }, 4775 { 4776 NPC_S_KPU6_IP6_FRAG, 0xff, 4777 0x0000, 4778 0x0000, 4779 0x0000, 4780 0x0000, 4781 0x0000, 4782 0x0000, 4783 }, 4784 { 4785 NPC_S_KPU6_IP6_HOP_DEST, 0xff, 4786 NPC_IPNH_TCP << 8, 4787 0xff00, 4788 0x0000, 4789 0x0000, 4790 0x0000, 4791 0x0000, 4792 }, 4793 { 4794 NPC_S_KPU6_IP6_HOP_DEST, 0xff, 4795 NPC_IPNH_UDP << 8, 4796 0xff00, 4797 0x0000, 4798 0x0000, 4799 0x0000, 4800 0x0000, 4801 }, 4802 { 4803 NPC_S_KPU6_IP6_HOP_DEST, 0xff, 4804 NPC_IPNH_SCTP << 8, 4805 0xff00, 4806 0x0000, 4807 0x0000, 4808 0x0000, 4809 0x0000, 4810 }, 4811 { 4812 NPC_S_KPU6_IP6_HOP_DEST, 0xff, 4813 NPC_IPNH_ICMP << 8, 4814 0xff00, 4815 0x0000, 4816 0x0000, 4817 0x0000, 4818 0x0000, 4819 }, 4820 { 4821 NPC_S_KPU6_IP6_HOP_DEST, 0xff, 4822 NPC_IPNH_ICMP6 << 8, 4823 0xff00, 4824 0x0000, 4825 0x0000, 4826 0x0000, 4827 0x0000, 4828 }, 4829 { 4830 NPC_S_KPU6_IP6_HOP_DEST, 0xff, 4831 NPC_IPNH_ESP << 8, 4832 0xff00, 4833 0x0000, 4834 0x0000, 4835 0x0000, 4836 0x0000, 4837 }, 4838 { 4839 NPC_S_KPU6_IP6_HOP_DEST, 0xff, 4840 NPC_IPNH_AH << 8, 4841 0xff00, 4842 0x0000, 4843 0x0000, 4844 0x0000, 4845 0x0000, 4846 }, 4847 { 4848 NPC_S_KPU6_IP6_HOP_DEST, 0xff, 4849 NPC_IPNH_GRE << 8, 4850 0xff00, 4851 0x0000, 4852 0x0000, 4853 0x0000, 4854 0x0000, 4855 }, 4856 { 4857 NPC_S_KPU6_IP6_HOP_DEST, 0xff, 4858 NPC_IPNH_IP6 << 8, 4859 0xff00, 4860 0x0000, 4861 0x0000, 4862 0x0000, 4863 0x0000, 4864 }, 4865 { 4866 NPC_S_KPU6_IP6_HOP_DEST, 0xff, 4867 NPC_IPNH_MPLS << 8, 4868 0xff00, 4869 0x0000, 4870 0x0000, 4871 0x0000, 4872 0x0000, 4873 }, 4874 { 4875 NPC_S_KPU6_IP6_HOP_DEST, 0xff, 4876 NPC_IPNH_ROUT << 8, 4877 0xff00, 4878 0x0000, 4879 0x0000, 4880 0x0000, 4881 0x0000, 4882 }, 4883 { 4884 NPC_S_KPU6_IP6_HOP_DEST, 0xff, 4885 NPC_IPNH_FRAG << 8, 4886 0xff00, 4887 0x0000, 4888 0x0000, 4889 0x0000, 4890 0x0000, 4891 }, 4892 { 4893 NPC_S_KPU6_IP6_HOP_DEST, 0xff, 4894 0x0000, 4895 0x0000, 4896 0x0000, 4897 0x0000, 4898 0x0000, 4899 0x0000, 4900 }, 4901 { 4902 NPC_S_KPU6_IP6_ROUT, 0xff, 4903 NPC_IPNH_TCP << 8, 4904 0xff00, 4905 0x0000, 4906 0x0000, 4907 0x0000, 4908 0x0000, 4909 }, 4910 { 4911 NPC_S_KPU6_IP6_ROUT, 0xff, 4912 NPC_IPNH_UDP << 8, 4913 0xff00, 4914 0x0000, 4915 0x0000, 4916 0x0000, 4917 0x0000, 4918 }, 4919 { 4920 NPC_S_KPU6_IP6_ROUT, 0xff, 4921 NPC_IPNH_SCTP << 8, 4922 0xff00, 4923 0x0000, 4924 0x0000, 4925 0x0000, 4926 0x0000, 4927 }, 4928 { 4929 NPC_S_KPU6_IP6_ROUT, 0xff, 4930 NPC_IPNH_ICMP << 8, 4931 0xff00, 4932 0x0000, 4933 0x0000, 4934 0x0000, 4935 0x0000, 4936 }, 4937 { 4938 NPC_S_KPU6_IP6_ROUT, 0xff, 4939 NPC_IPNH_ICMP6 << 8, 4940 0xff00, 4941 0x0000, 4942 0x0000, 4943 0x0000, 4944 0x0000, 4945 }, 4946 { 4947 NPC_S_KPU6_IP6_ROUT, 0xff, 4948 NPC_IPNH_ESP << 8, 4949 0xff00, 4950 0x0000, 4951 0x0000, 4952 0x0000, 4953 0x0000, 4954 }, 4955 { 4956 NPC_S_KPU6_IP6_ROUT, 0xff, 4957 NPC_IPNH_AH << 8, 4958 0xff00, 4959 0x0000, 4960 0x0000, 4961 0x0000, 4962 0x0000, 4963 }, 4964 { 4965 NPC_S_KPU6_IP6_ROUT, 0xff, 4966 NPC_IPNH_GRE << 8, 4967 0xff00, 4968 0x0000, 4969 0x0000, 4970 0x0000, 4971 0x0000, 4972 }, 4973 { 4974 NPC_S_KPU6_IP6_ROUT, 0xff, 4975 NPC_IPNH_IP6 << 8, 4976 0xff00, 4977 0x0000, 4978 0x0000, 4979 0x0000, 4980 0x0000, 4981 }, 4982 { 4983 NPC_S_KPU6_IP6_ROUT, 0xff, 4984 NPC_IPNH_MPLS << 8, 4985 0xff00, 4986 0x0000, 4987 0x0000, 4988 0x0000, 4989 0x0000, 4990 }, 4991 { 4992 NPC_S_KPU6_IP6_ROUT, 0xff, 4993 NPC_IPNH_FRAG << 8, 4994 0xff00, 4995 0x0000, 4996 0x0000, 4997 0x0000, 4998 0x0000, 4999 }, 5000 { 5001 NPC_S_KPU6_IP6_ROUT, 0xff, 5002 0x0000, 5003 0x0000, 5004 0x0000, 5005 0x0000, 5006 0x0000, 5007 0x0000, 5008 }, 5009 { 5010 NPC_S_NA, 0X00, 5011 0x0000, 5012 0x0000, 5013 0x0000, 5014 0x0000, 5015 0x0000, 5016 0x0000, 5017 }, 5018 }; 5019 5020 static const struct npc_kpu_profile_cam kpu7_cam_entries[] = { 5021 { 5022 NPC_S_KPU7_IP6_EXT, 0xff, 5023 0x0000, 5024 0x0000, 5025 0x0000, 5026 0x0000, 5027 0x0000, 5028 0x0000, 5029 }, 5030 { 5031 NPC_S_KPU7_IP6_ROUT, 0xff, 5032 NPC_IPNH_TCP << 8, 5033 0xff00, 5034 0x0000, 5035 0x0000, 5036 0x0000, 5037 0x0000, 5038 }, 5039 { 5040 NPC_S_KPU7_IP6_ROUT, 0xff, 5041 NPC_IPNH_UDP << 8, 5042 0xff00, 5043 0x0000, 5044 0x0000, 5045 0x0000, 5046 0x0000, 5047 }, 5048 { 5049 NPC_S_KPU7_IP6_ROUT, 0xff, 5050 NPC_IPNH_SCTP << 8, 5051 0xff00, 5052 0x0000, 5053 0x0000, 5054 0x0000, 5055 0x0000, 5056 }, 5057 { 5058 NPC_S_KPU7_IP6_ROUT, 0xff, 5059 NPC_IPNH_ICMP << 8, 5060 0xff00, 5061 0x0000, 5062 0x0000, 5063 0x0000, 5064 0x0000, 5065 }, 5066 { 5067 NPC_S_KPU7_IP6_ROUT, 0xff, 5068 NPC_IPNH_ICMP6 << 8, 5069 0xff00, 5070 0x0000, 5071 0x0000, 5072 0x0000, 5073 0x0000, 5074 }, 5075 { 5076 NPC_S_KPU7_IP6_ROUT, 0xff, 5077 NPC_IPNH_ESP << 8, 5078 0xff00, 5079 0x0000, 5080 0x0000, 5081 0x0000, 5082 0x0000, 5083 }, 5084 { 5085 NPC_S_KPU7_IP6_ROUT, 0xff, 5086 NPC_IPNH_AH << 8, 5087 0xff00, 5088 0x0000, 5089 0x0000, 5090 0x0000, 5091 0x0000, 5092 }, 5093 { 5094 NPC_S_KPU7_IP6_ROUT, 0xff, 5095 NPC_IPNH_GRE << 8, 5096 0xff00, 5097 0x0000, 5098 0x0000, 5099 0x0000, 5100 0x0000, 5101 }, 5102 { 5103 NPC_S_KPU7_IP6_ROUT, 0xff, 5104 NPC_IPNH_IP6 << 8, 5105 0xff00, 5106 0x0000, 5107 0x0000, 5108 0x0000, 5109 0x0000, 5110 }, 5111 { 5112 NPC_S_KPU7_IP6_ROUT, 0xff, 5113 NPC_IPNH_MPLS << 8, 5114 0xff00, 5115 0x0000, 5116 0x0000, 5117 0x0000, 5118 0x0000, 5119 }, 5120 { 5121 NPC_S_KPU7_IP6_ROUT, 0xff, 5122 0x0000, 5123 0x0000, 5124 0x0000, 5125 0x0000, 5126 0x0000, 5127 0x0000, 5128 }, 5129 { 5130 NPC_S_KPU7_IP6_FRAG, 0xff, 5131 NPC_IPNH_TCP << 8, 5132 0xff00, 5133 0x0000, 5134 NPC_IP6_FRAG_FRAGOFF, 5135 0x0000, 5136 0x0000, 5137 }, 5138 { 5139 NPC_S_KPU7_IP6_FRAG, 0xff, 5140 NPC_IPNH_UDP << 8, 5141 0xff00, 5142 0x0000, 5143 NPC_IP6_FRAG_FRAGOFF, 5144 0x0000, 5145 0x0000, 5146 }, 5147 { 5148 NPC_S_KPU7_IP6_FRAG, 0xff, 5149 NPC_IPNH_SCTP << 8, 5150 0xff00, 5151 0x0000, 5152 NPC_IP6_FRAG_FRAGOFF, 5153 0x0000, 5154 0x0000, 5155 }, 5156 { 5157 NPC_S_KPU7_IP6_FRAG, 0xff, 5158 NPC_IPNH_ICMP << 8, 5159 0xff00, 5160 0x0000, 5161 NPC_IP6_FRAG_FRAGOFF, 5162 0x0000, 5163 0x0000, 5164 }, 5165 { 5166 NPC_S_KPU7_IP6_FRAG, 0xff, 5167 NPC_IPNH_ICMP6 << 8, 5168 0xff00, 5169 0x0000, 5170 NPC_IP6_FRAG_FRAGOFF, 5171 0x0000, 5172 0x0000, 5173 }, 5174 { 5175 NPC_S_KPU7_IP6_FRAG, 0xff, 5176 NPC_IPNH_ESP << 8, 5177 0xff00, 5178 0x0000, 5179 NPC_IP6_FRAG_FRAGOFF, 5180 0x0000, 5181 0x0000, 5182 }, 5183 { 5184 NPC_S_KPU7_IP6_FRAG, 0xff, 5185 NPC_IPNH_AH << 8, 5186 0xff00, 5187 0x0000, 5188 NPC_IP6_FRAG_FRAGOFF, 5189 0x0000, 5190 0x0000, 5191 }, 5192 { 5193 NPC_S_KPU7_IP6_FRAG, 0xff, 5194 NPC_IPNH_GRE << 8, 5195 0xff00, 5196 0x0000, 5197 NPC_IP6_FRAG_FRAGOFF, 5198 0x0000, 5199 0x0000, 5200 }, 5201 { 5202 NPC_S_KPU7_IP6_FRAG, 0xff, 5203 NPC_IPNH_IP6 << 8, 5204 0xff00, 5205 0x0000, 5206 NPC_IP6_FRAG_FRAGOFF, 5207 0x0000, 5208 0x0000, 5209 }, 5210 { 5211 NPC_S_KPU7_IP6_FRAG, 0xff, 5212 NPC_IPNH_MPLS << 8, 5213 0xff00, 5214 0x0000, 5215 NPC_IP6_FRAG_FRAGOFF, 5216 0x0000, 5217 0x0000, 5218 }, 5219 { 5220 NPC_S_KPU7_IP6_FRAG, 0xff, 5221 0x0000, 5222 0x0000, 5223 0x0000, 5224 0x0000, 5225 0x0000, 5226 0x0000, 5227 }, 5228 { 5229 NPC_S_NA, 0X00, 5230 0x0000, 5231 0x0000, 5232 0x0000, 5233 0x0000, 5234 0x0000, 5235 0x0000, 5236 }, 5237 }; 5238 5239 static const struct npc_kpu_profile_cam kpu8_cam_entries[] = { 5240 { 5241 NPC_S_KPU8_TCP, 0xff, 5242 0x0000, 5243 0x0000, 5244 NPC_TCP_FLAGS_FIN, 5245 NPC_TCP_FLAGS_MASK, 5246 0x0000, 5247 0x0000, 5248 }, 5249 { 5250 NPC_S_KPU8_TCP, 0xff, 5251 0x0000, 5252 0x0000, 5253 0x0000, 5254 NPC_TCP_FLAGS_MASK, 5255 0x0000, 5256 0x0000, 5257 }, 5258 { 5259 NPC_S_KPU8_TCP, 0xff, 5260 0x0000, 5261 0x0000, 5262 NPC_TCP_FLAGS_RST|NPC_TCP_FLAGS_FIN, 5263 NPC_TCP_FLAGS_RST|NPC_TCP_FLAGS_FIN, 5264 0x0000, 5265 0x0000, 5266 }, 5267 { 5268 NPC_S_KPU8_TCP, 0xff, 5269 0x0000, 5270 0x0000, 5271 NPC_TCP_FLAGS_URG|NPC_TCP_FLAGS_SYN, 5272 NPC_TCP_FLAGS_URG|NPC_TCP_FLAGS_SYN, 5273 0x0000, 5274 0x0000, 5275 }, 5276 { 5277 NPC_S_KPU8_TCP, 0xff, 5278 0x0000, 5279 0x0000, 5280 NPC_TCP_FLAGS_RST|NPC_TCP_FLAGS_SYN, 5281 NPC_TCP_FLAGS_RST|NPC_TCP_FLAGS_SYN, 5282 0x0000, 5283 0x0000, 5284 }, 5285 { 5286 NPC_S_KPU8_TCP, 0xff, 5287 0x0000, 5288 0x0000, 5289 NPC_TCP_FLAGS_SYN|NPC_TCP_FLAGS_FIN, 5290 NPC_TCP_FLAGS_SYN|NPC_TCP_FLAGS_FIN, 5291 0x0000, 5292 0x0000, 5293 }, 5294 { 5295 NPC_S_KPU8_TCP, 0xff, 5296 NPC_TCP_PORT_HTTP, 5297 0xffff, 5298 NPC_TCP_DATA_OFFSET_5, 5299 NPC_TCP_DATA_OFFSET_MASK, 5300 0x0000, 5301 0x0000, 5302 }, 5303 { 5304 NPC_S_KPU8_TCP, 0xff, 5305 NPC_TCP_PORT_HTTPS, 5306 0xffff, 5307 NPC_TCP_DATA_OFFSET_5, 5308 NPC_TCP_DATA_OFFSET_MASK, 5309 0x0000, 5310 0x0000, 5311 }, 5312 { 5313 NPC_S_KPU8_TCP, 0xff, 5314 NPC_TCP_PORT_PPTP, 5315 0xffff, 5316 NPC_TCP_DATA_OFFSET_5, 5317 NPC_TCP_DATA_OFFSET_MASK, 5318 0x0000, 5319 0x0000, 5320 }, 5321 { 5322 NPC_S_KPU8_TCP, 0xff, 5323 0x0000, 5324 0x0000, 5325 NPC_TCP_DATA_OFFSET_5, 5326 NPC_TCP_DATA_OFFSET_MASK, 5327 0x0000, 5328 0x0000, 5329 }, 5330 { 5331 NPC_S_KPU8_TCP, 0xff, 5332 NPC_TCP_PORT_HTTP, 5333 0xffff, 5334 0x0000, 5335 0x0000, 5336 0x0000, 5337 0x0000, 5338 }, 5339 { 5340 NPC_S_KPU8_TCP, 0xff, 5341 NPC_TCP_PORT_HTTPS, 5342 0xffff, 5343 0x0000, 5344 0x0000, 5345 0x0000, 5346 0x0000, 5347 }, 5348 { 5349 NPC_S_KPU8_TCP, 0xff, 5350 NPC_TCP_PORT_PPTP, 5351 0xffff, 5352 0x0000, 5353 0x0000, 5354 0x0000, 5355 0x0000, 5356 }, 5357 { 5358 NPC_S_KPU8_TCP, 0xff, 5359 0x0000, 5360 0x0000, 5361 0x0000, 5362 0x0000, 5363 0x0000, 5364 0x0000, 5365 }, 5366 { 5367 NPC_S_KPU8_UDP, 0xff, 5368 NPC_UDP_PORT_VXLAN, 5369 0xffff, 5370 0x0000, 5371 0x0000, 5372 0x0000, 5373 0x0000, 5374 }, 5375 { 5376 NPC_S_KPU8_UDP, 0xff, 5377 NPC_UDP_PORT_VXLANGPE, 5378 0xffff, 5379 0x0000, 5380 0x0000, 5381 0x0000, 5382 0x0000, 5383 }, 5384 { 5385 NPC_S_KPU8_UDP, 0xff, 5386 NPC_UDP_PORT_GENEVE, 5387 0xffff, 5388 0x0000, 5389 0x0000, 5390 0x0000, 5391 0x0000, 5392 }, 5393 { 5394 NPC_S_KPU8_UDP, 0xff, 5395 NPC_UDP_PORT_GTPC, 5396 0xffff, 5397 0x0000, 5398 0x0000, 5399 0x0000, 5400 0x0000, 5401 }, 5402 { 5403 NPC_S_KPU8_UDP, 0xff, 5404 NPC_UDP_PORT_GTPU, 5405 0xffff, 5406 0x0000, 5407 0x0000, 5408 0x0000, 5409 0x0000, 5410 }, 5411 { 5412 NPC_S_KPU8_UDP, 0xff, 5413 NPC_UDP_PORT_PTP_E, 5414 0xffff, 5415 0x0000, 5416 0x0000, 5417 0x0000, 5418 0x0000, 5419 }, 5420 { 5421 NPC_S_KPU8_UDP, 0xff, 5422 NPC_UDP_PORT_PTP_G, 5423 0xffff, 5424 0x0000, 5425 0x0000, 5426 0x0000, 5427 0x0000, 5428 }, 5429 { 5430 NPC_S_KPU8_UDP, 0xff, 5431 NPC_UDP_PORT_MPLS, 5432 0xffff, 5433 0x0000, 5434 0x0000, 5435 0x0000, 5436 0x0000, 5437 }, 5438 { 5439 NPC_S_KPU8_UDP, 0xff, 5440 NPC_UDP_PORT_ESP, 5441 0xffff, 5442 0x0000, 5443 0x0000, 5444 0x0000, 5445 0x0000, 5446 }, 5447 { 5448 NPC_S_KPU8_UDP, 0xff, 5449 0x0000, 5450 0x0000, 5451 NPC_UDP_PORT_ESP, 5452 0xffff, 5453 0x0000, 5454 0x0000, 5455 }, 5456 { 5457 NPC_S_KPU8_UDP, 0xff, 5458 0x0000, 5459 0x0000, 5460 0x0000, 5461 0x0000, 5462 0x0000, 5463 0x0000, 5464 }, 5465 { 5466 NPC_S_KPU8_SCTP, 0xff, 5467 0x0000, 5468 0x0000, 5469 0x0000, 5470 0x0000, 5471 0x0000, 5472 0x0000, 5473 }, 5474 { 5475 NPC_S_KPU8_ICMP, 0xff, 5476 0x0000, 5477 0x0000, 5478 0x0000, 5479 0x0000, 5480 0x0000, 5481 0x0000, 5482 }, 5483 { 5484 NPC_S_KPU8_IGMP, 0xff, 5485 0x0000, 5486 0x0000, 5487 0x0000, 5488 0x0000, 5489 0x0000, 5490 0x0000, 5491 }, 5492 { 5493 NPC_S_KPU8_ICMP6, 0xff, 5494 0x0000, 5495 0x0000, 5496 0x0000, 5497 0x0000, 5498 0x0000, 5499 0x0000, 5500 }, 5501 { 5502 NPC_S_KPU8_AH, 0xff, 5503 0x0000, 5504 0x0000, 5505 0x0000, 5506 0x0000, 5507 0x0000, 5508 0x0000, 5509 }, 5510 { 5511 NPC_S_KPU8_GRE, 0xff, 5512 NPC_ETYPE_TRANS_ETH_BR, 5513 0xffff, 5514 NPC_GRE_F_KEY, 5515 0xffff, 5516 0x0000, 5517 0x0000, 5518 }, 5519 { 5520 NPC_S_KPU8_GRE, 0xff, 5521 NPC_ETYPE_TRANS_ETH_BR, 5522 0xffff, 5523 0x0000, 5524 0x0000, 5525 0x0000, 5526 0x0000, 5527 }, 5528 { 5529 NPC_S_KPU8_GRE, 0xff, 5530 NPC_ETYPE_MPLSU, 5531 0xffff, 5532 0x0000, 5533 0xffff, 5534 0x0000, 5535 0x0000, 5536 }, 5537 { 5538 NPC_S_KPU8_GRE, 0xff, 5539 NPC_ETYPE_MPLSU, 5540 0xffff, 5541 NPC_GRE_F_CSUM, 5542 0xffff, 5543 0x0000, 5544 0x0000, 5545 }, 5546 { 5547 NPC_S_KPU8_GRE, 0xff, 5548 NPC_ETYPE_MPLSU, 5549 0xffff, 5550 NPC_GRE_F_KEY, 5551 0xffff, 5552 0x0000, 5553 0x0000, 5554 }, 5555 { 5556 NPC_S_KPU8_GRE, 0xff, 5557 NPC_ETYPE_MPLSU, 5558 0xffff, 5559 NPC_GRE_F_SEQ, 5560 0xffff, 5561 0x0000, 5562 0x0000, 5563 }, 5564 { 5565 NPC_S_KPU8_GRE, 0xff, 5566 NPC_ETYPE_MPLSU, 5567 0xffff, 5568 NPC_GRE_F_CSUM|NPC_GRE_F_KEY, 5569 0xffff, 5570 0x0000, 5571 0x0000, 5572 }, 5573 { 5574 NPC_S_KPU8_GRE, 0xff, 5575 NPC_ETYPE_MPLSU, 5576 0xffff, 5577 NPC_GRE_F_CSUM|NPC_GRE_F_SEQ, 5578 0xffff, 5579 0x0000, 5580 0x0000, 5581 }, 5582 { 5583 NPC_S_KPU8_GRE, 0xff, 5584 NPC_ETYPE_MPLSU, 5585 0xffff, 5586 NPC_GRE_F_KEY|NPC_GRE_F_SEQ, 5587 0xffff, 5588 0x0000, 5589 0x0000, 5590 }, 5591 { 5592 NPC_S_KPU8_GRE, 0xff, 5593 NPC_ETYPE_MPLSU, 5594 0xffff, 5595 NPC_GRE_F_CSUM|NPC_GRE_F_KEY|NPC_GRE_F_SEQ, 5596 0xffff, 5597 0x0000, 5598 0x0000, 5599 }, 5600 { 5601 NPC_S_KPU8_GRE, 0xff, 5602 NPC_ETYPE_MPLSM, 5603 0xffff, 5604 0x0000, 5605 0xffff, 5606 0x0000, 5607 0x0000, 5608 }, 5609 { 5610 NPC_S_KPU8_GRE, 0xff, 5611 NPC_ETYPE_MPLSM, 5612 0xffff, 5613 NPC_GRE_F_CSUM, 5614 0xffff, 5615 0x0000, 5616 0x0000, 5617 }, 5618 { 5619 NPC_S_KPU8_GRE, 0xff, 5620 NPC_ETYPE_MPLSM, 5621 0xffff, 5622 NPC_GRE_F_KEY, 5623 0xffff, 5624 0x0000, 5625 0x0000, 5626 }, 5627 { 5628 NPC_S_KPU8_GRE, 0xff, 5629 NPC_ETYPE_MPLSM, 5630 0xffff, 5631 NPC_GRE_F_SEQ, 5632 0xffff, 5633 0x0000, 5634 0x0000, 5635 }, 5636 { 5637 NPC_S_KPU8_GRE, 0xff, 5638 NPC_ETYPE_MPLSM, 5639 0xffff, 5640 NPC_GRE_F_CSUM|NPC_GRE_F_KEY, 5641 0xffff, 5642 0x0000, 5643 0x0000, 5644 }, 5645 { 5646 NPC_S_KPU8_GRE, 0xff, 5647 NPC_ETYPE_MPLSM, 5648 0xffff, 5649 NPC_GRE_F_CSUM|NPC_GRE_F_SEQ, 5650 0xffff, 5651 0x0000, 5652 0x0000, 5653 }, 5654 { 5655 NPC_S_KPU8_GRE, 0xff, 5656 NPC_ETYPE_MPLSM, 5657 0xffff, 5658 NPC_GRE_F_KEY|NPC_GRE_F_SEQ, 5659 0xffff, 5660 0x0000, 5661 0x0000, 5662 }, 5663 { 5664 NPC_S_KPU8_GRE, 0xff, 5665 NPC_ETYPE_MPLSM, 5666 0xffff, 5667 NPC_GRE_F_CSUM|NPC_GRE_F_KEY|NPC_GRE_F_SEQ, 5668 0xffff, 5669 0x0000, 5670 0x0000, 5671 }, 5672 { 5673 NPC_S_KPU8_GRE, 0xff, 5674 NPC_ETYPE_NSH, 5675 0xffff, 5676 0x0000, 5677 0xffff, 5678 0x0000, 5679 0x0000, 5680 }, 5681 { 5682 NPC_S_KPU8_GRE, 0xff, 5683 NPC_ETYPE_NSH, 5684 0xffff, 5685 NPC_GRE_F_CSUM, 5686 0xffff, 5687 0x0000, 5688 0x0000, 5689 }, 5690 { 5691 NPC_S_KPU8_GRE, 0xff, 5692 NPC_ETYPE_NSH, 5693 0xffff, 5694 NPC_GRE_F_KEY, 5695 0xffff, 5696 0x0000, 5697 0x0000, 5698 }, 5699 { 5700 NPC_S_KPU8_GRE, 0xff, 5701 NPC_ETYPE_NSH, 5702 0xffff, 5703 NPC_GRE_F_SEQ, 5704 0xffff, 5705 0x0000, 5706 0x0000, 5707 }, 5708 { 5709 NPC_S_KPU8_GRE, 0xff, 5710 NPC_ETYPE_NSH, 5711 0xffff, 5712 NPC_GRE_F_CSUM|NPC_GRE_F_KEY, 5713 0xffff, 5714 0x0000, 5715 0x0000, 5716 }, 5717 { 5718 NPC_S_KPU8_GRE, 0xff, 5719 NPC_ETYPE_NSH, 5720 0xffff, 5721 NPC_GRE_F_CSUM|NPC_GRE_F_SEQ, 5722 0xffff, 5723 0x0000, 5724 0x0000, 5725 }, 5726 { 5727 NPC_S_KPU8_GRE, 0xff, 5728 NPC_ETYPE_NSH, 5729 0xffff, 5730 NPC_GRE_F_KEY|NPC_GRE_F_SEQ, 5731 0xffff, 5732 0x0000, 5733 0x0000, 5734 }, 5735 { 5736 NPC_S_KPU8_GRE, 0xff, 5737 NPC_ETYPE_NSH, 5738 0xffff, 5739 NPC_GRE_F_CSUM|NPC_GRE_F_KEY|NPC_GRE_F_SEQ, 5740 0xffff, 5741 0x0000, 5742 0x0000, 5743 }, 5744 { 5745 NPC_S_KPU8_GRE, 0xff, 5746 NPC_ETYPE_IP, 5747 0xffff, 5748 0x0000, 5749 0xffff, 5750 0x0000, 5751 0x0000, 5752 }, 5753 { 5754 NPC_S_KPU8_GRE, 0xff, 5755 NPC_ETYPE_IP, 5756 0xffff, 5757 NPC_GRE_F_CSUM, 5758 0xffff, 5759 0x0000, 5760 0x0000, 5761 }, 5762 { 5763 NPC_S_KPU8_GRE, 0xff, 5764 NPC_ETYPE_IP, 5765 0xffff, 5766 NPC_GRE_F_KEY, 5767 0xffff, 5768 0x0000, 5769 0x0000, 5770 }, 5771 { 5772 NPC_S_KPU8_GRE, 0xff, 5773 NPC_ETYPE_IP, 5774 0xffff, 5775 NPC_GRE_F_SEQ, 5776 0xffff, 5777 0x0000, 5778 0x0000, 5779 }, 5780 { 5781 NPC_S_KPU8_GRE, 0xff, 5782 NPC_ETYPE_IP, 5783 0xffff, 5784 NPC_GRE_F_CSUM|NPC_GRE_F_KEY, 5785 0xffff, 5786 0x0000, 5787 0x0000, 5788 }, 5789 { 5790 NPC_S_KPU8_GRE, 0xff, 5791 NPC_ETYPE_IP, 5792 0xffff, 5793 NPC_GRE_F_CSUM|NPC_GRE_F_SEQ, 5794 0xffff, 5795 0x0000, 5796 0x0000, 5797 }, 5798 { 5799 NPC_S_KPU8_GRE, 0xff, 5800 NPC_ETYPE_IP, 5801 0xffff, 5802 NPC_GRE_F_KEY|NPC_GRE_F_SEQ, 5803 0xffff, 5804 0x0000, 5805 0x0000, 5806 }, 5807 { 5808 NPC_S_KPU8_GRE, 0xff, 5809 NPC_ETYPE_IP, 5810 0xffff, 5811 NPC_GRE_F_CSUM|NPC_GRE_F_KEY|NPC_GRE_F_SEQ, 5812 0xffff, 5813 0x0000, 5814 0x0000, 5815 }, 5816 { 5817 NPC_S_KPU8_GRE, 0xff, 5818 NPC_ETYPE_IP6, 5819 0xffff, 5820 0x0000, 5821 0xffff, 5822 0x0000, 5823 0x0000, 5824 }, 5825 { 5826 NPC_S_KPU8_GRE, 0xff, 5827 NPC_ETYPE_IP6, 5828 0xffff, 5829 NPC_GRE_F_CSUM, 5830 0xffff, 5831 0x0000, 5832 0x0000, 5833 }, 5834 { 5835 NPC_S_KPU8_GRE, 0xff, 5836 NPC_ETYPE_IP6, 5837 0xffff, 5838 NPC_GRE_F_KEY, 5839 0xffff, 5840 0x0000, 5841 0x0000, 5842 }, 5843 { 5844 NPC_S_KPU8_GRE, 0xff, 5845 NPC_ETYPE_IP6, 5846 0xffff, 5847 NPC_GRE_F_SEQ, 5848 0xffff, 5849 0x0000, 5850 0x0000, 5851 }, 5852 { 5853 NPC_S_KPU8_GRE, 0xff, 5854 NPC_ETYPE_IP6, 5855 0xffff, 5856 NPC_GRE_F_CSUM|NPC_GRE_F_KEY, 5857 0xffff, 5858 0x0000, 5859 0x0000, 5860 }, 5861 { 5862 NPC_S_KPU8_GRE, 0xff, 5863 NPC_ETYPE_IP6, 5864 0xffff, 5865 NPC_GRE_F_CSUM|NPC_GRE_F_SEQ, 5866 0xffff, 5867 0x0000, 5868 0x0000, 5869 }, 5870 { 5871 NPC_S_KPU8_GRE, 0xff, 5872 NPC_ETYPE_IP6, 5873 0xffff, 5874 NPC_GRE_F_KEY|NPC_GRE_F_SEQ, 5875 0xffff, 5876 0x0000, 5877 0x0000, 5878 }, 5879 { 5880 NPC_S_KPU8_GRE, 0xff, 5881 NPC_ETYPE_IP6, 5882 0xffff, 5883 NPC_GRE_F_CSUM|NPC_GRE_F_KEY|NPC_GRE_F_SEQ, 5884 0xffff, 5885 0x0000, 5886 0x0000, 5887 }, 5888 { 5889 NPC_S_KPU8_GRE, 0xff, 5890 0x0000, 5891 0xffff, 5892 NPC_GRE_F_ROUTE, 5893 0x4fff, 5894 0x0000, 5895 0x0000, 5896 }, 5897 { 5898 NPC_S_KPU8_GRE, 0xff, 5899 0x0000, 5900 0xffff, 5901 0x0000, 5902 0x4fff, 5903 0x0000, 5904 0x0000, 5905 }, 5906 { 5907 NPC_S_KPU8_GRE, 0xff, 5908 0x0000, 5909 0xffff, 5910 0x0000, 5911 0x0003, 5912 0x0000, 5913 0x0000, 5914 }, 5915 { 5916 NPC_S_KPU8_GRE, 0xff, 5917 NPC_ETYPE_PPP, 5918 0xffff, 5919 NPC_GRE_F_KEY|NPC_GRE_VER_1, 5920 0xffff, 5921 0x0000, 5922 0x0000, 5923 }, 5924 { 5925 NPC_S_KPU8_GRE, 0xff, 5926 NPC_ETYPE_PPP, 5927 0xffff, 5928 NPC_GRE_F_KEY|NPC_GRE_F_SEQ|NPC_GRE_VER_1, 5929 0xffff, 5930 0x0000, 5931 0x0000, 5932 }, 5933 { 5934 NPC_S_KPU8_GRE, 0xff, 5935 NPC_ETYPE_PPP, 5936 0xffff, 5937 NPC_GRE_F_KEY|NPC_GRE_F_ACK|NPC_GRE_VER_1, 5938 0xffff, 5939 0x0000, 5940 0x0000, 5941 }, 5942 { 5943 NPC_S_KPU8_GRE, 0xff, 5944 NPC_ETYPE_PPP, 5945 0xffff, 5946 NPC_GRE_F_KEY|NPC_GRE_F_SEQ|NPC_GRE_F_ACK|NPC_GRE_VER_1, 5947 0xffff, 5948 0x0000, 5949 0x0000, 5950 }, 5951 { 5952 NPC_S_KPU8_GRE, 0xff, 5953 0x0000, 5954 0xffff, 5955 0x2001, 5956 0xef7f, 5957 0x0000, 5958 0x0000, 5959 }, 5960 { 5961 NPC_S_KPU8_GRE, 0xff, 5962 0x0000, 5963 0xffff, 5964 0x0001, 5965 0x0003, 5966 0x0000, 5967 0x0000, 5968 }, 5969 { 5970 NPC_S_NA, 0X00, 5971 0x0000, 5972 0x0000, 5973 0x0000, 5974 0x0000, 5975 0x0000, 5976 0x0000, 5977 }, 5978 }; 5979 5980 static const struct npc_kpu_profile_cam kpu9_cam_entries[] = { 5981 { 5982 NPC_S_KPU9_TU_MPLS_IN_GRE, 0xff, 5983 NPC_MPLS_S, 5984 NPC_MPLS_S, 5985 0x0000, 5986 0x0000, 5987 0x0000, 5988 0x0000, 5989 }, 5990 { 5991 NPC_S_KPU9_TU_MPLS_IN_GRE, 0xff, 5992 0x0000, 5993 NPC_MPLS_S, 5994 NPC_MPLS_S, 5995 NPC_MPLS_S, 5996 0x0000, 5997 0x0000, 5998 }, 5999 { 6000 NPC_S_KPU9_TU_MPLS_IN_GRE, 0xff, 6001 0x0000, 6002 NPC_MPLS_S, 6003 0x0000, 6004 NPC_MPLS_S, 6005 NPC_MPLS_S, 6006 NPC_MPLS_S, 6007 }, 6008 { 6009 NPC_S_KPU9_TU_MPLS_IN_GRE, 0xff, 6010 0x0000, 6011 NPC_MPLS_S, 6012 0x0000, 6013 NPC_MPLS_S, 6014 0x0000, 6015 NPC_MPLS_S, 6016 }, 6017 { 6018 NPC_S_KPU9_TU_MPLS_IN_NSH, 0xff, 6019 NPC_MPLS_S, 6020 NPC_MPLS_S, 6021 0x0000, 6022 0x0000, 6023 0x0000, 6024 0x0000, 6025 }, 6026 { 6027 NPC_S_KPU9_TU_MPLS_IN_NSH, 0xff, 6028 0x0000, 6029 NPC_MPLS_S, 6030 NPC_MPLS_S, 6031 NPC_MPLS_S, 6032 0x0000, 6033 0x0000, 6034 }, 6035 { 6036 NPC_S_KPU9_TU_MPLS_IN_NSH, 0xff, 6037 0x0000, 6038 NPC_MPLS_S, 6039 0x0000, 6040 NPC_MPLS_S, 6041 NPC_MPLS_S, 6042 NPC_MPLS_S, 6043 }, 6044 { 6045 NPC_S_KPU9_TU_MPLS_IN_NSH, 0xff, 6046 0x0000, 6047 NPC_MPLS_S, 6048 0x0000, 6049 NPC_MPLS_S, 6050 0x0000, 6051 NPC_MPLS_S, 6052 }, 6053 { 6054 NPC_S_KPU9_TU_MPLS_IN_IP, 0xff, 6055 NPC_MPLS_S, 6056 NPC_MPLS_S, 6057 0x0000, 6058 0x0000, 6059 0x0000, 6060 0x0000, 6061 }, 6062 { 6063 NPC_S_KPU9_TU_MPLS_IN_IP, 0xff, 6064 0x0000, 6065 NPC_MPLS_S, 6066 NPC_MPLS_S, 6067 NPC_MPLS_S, 6068 0x0000, 6069 0x0000, 6070 }, 6071 { 6072 NPC_S_KPU9_TU_MPLS_IN_IP, 0xff, 6073 0x0000, 6074 NPC_MPLS_S, 6075 0x0000, 6076 NPC_MPLS_S, 6077 NPC_MPLS_S, 6078 NPC_MPLS_S, 6079 }, 6080 { 6081 NPC_S_KPU9_TU_MPLS_IN_IP, 0xff, 6082 0x0000, 6083 NPC_MPLS_S, 6084 0x0000, 6085 NPC_MPLS_S, 6086 0x0000, 6087 NPC_MPLS_S, 6088 }, 6089 { 6090 NPC_S_KPU9_TU_NSH_IN_GRE, 0xff, 6091 NPC_NSH_NP_IP, 6092 NPC_NSH_NP_MASK, 6093 0x0000, 6094 0x0000, 6095 0x0000, 6096 0x0000, 6097 }, 6098 { 6099 NPC_S_KPU9_TU_NSH_IN_GRE, 0xff, 6100 NPC_NSH_NP_IP6, 6101 NPC_NSH_NP_MASK, 6102 0x0000, 6103 0x0000, 6104 0x0000, 6105 0x0000, 6106 }, 6107 { 6108 NPC_S_KPU9_TU_NSH_IN_GRE, 0xff, 6109 NPC_NSH_NP_ETH, 6110 NPC_NSH_NP_MASK, 6111 0x0000, 6112 0x0000, 6113 0x0000, 6114 0x0000, 6115 }, 6116 { 6117 NPC_S_KPU9_TU_NSH_IN_GRE, 0xff, 6118 0x0000, 6119 0x0000, 6120 0x0000, 6121 0x0000, 6122 0x0000, 6123 0x0000, 6124 }, 6125 { 6126 NPC_S_KPU9_VXLAN, 0xff, 6127 0x0000, 6128 0x0000, 6129 NPC_VXLAN_I, 6130 NPC_VXLAN_I, 6131 0x0000, 6132 0xffff, 6133 }, 6134 { 6135 NPC_S_KPU9_VXLAN, 0xff, 6136 0x0000, 6137 0x0000, 6138 0x0000, 6139 0xffff, 6140 0x0000, 6141 0xffff, 6142 }, 6143 { 6144 NPC_S_KPU9_VXLAN, 0xff, 6145 0x0000, 6146 0x0000, 6147 0x0000, 6148 0x0000, 6149 0x0000, 6150 0x0000, 6151 }, 6152 { 6153 NPC_S_KPU9_VXLANGPE, 0xff, 6154 0x0000, 6155 0x0000, 6156 NPC_VXLANGPE_P | NPC_VXLANGPE_I, 6157 NPC_VXLANGPE_P | NPC_VXLANGPE_I, 6158 NPC_VXLANGPE_NP_IP, 6159 NPC_VXLANGPE_NP_MASK, 6160 }, 6161 { 6162 NPC_S_KPU9_VXLANGPE, 0xff, 6163 0x0000, 6164 0x0000, 6165 NPC_VXLANGPE_P | NPC_VXLANGPE_I, 6166 NPC_VXLANGPE_P | NPC_VXLANGPE_I, 6167 NPC_VXLANGPE_NP_IP6, 6168 NPC_VXLANGPE_NP_MASK, 6169 }, 6170 { 6171 NPC_S_KPU9_VXLANGPE, 0xff, 6172 0x0000, 6173 0x0000, 6174 NPC_VXLANGPE_P | NPC_VXLANGPE_I, 6175 NPC_VXLANGPE_P | NPC_VXLANGPE_I, 6176 NPC_VXLANGPE_NP_ETH, 6177 NPC_VXLANGPE_NP_MASK, 6178 }, 6179 { 6180 NPC_S_KPU9_VXLANGPE, 0xff, 6181 0x0000, 6182 0x0000, 6183 NPC_VXLANGPE_P | NPC_VXLANGPE_I, 6184 NPC_VXLANGPE_P | NPC_VXLANGPE_I, 6185 NPC_VXLANGPE_NP_NSH, 6186 NPC_VXLANGPE_NP_MASK, 6187 }, 6188 { 6189 NPC_S_KPU9_VXLANGPE, 0xff, 6190 0x0000, 6191 0x0000, 6192 NPC_VXLANGPE_P | NPC_VXLANGPE_I, 6193 NPC_VXLANGPE_P | NPC_VXLANGPE_I, 6194 NPC_VXLANGPE_NP_MPLS, 6195 NPC_VXLANGPE_NP_MASK, 6196 }, 6197 { 6198 NPC_S_KPU9_VXLANGPE, 0xff, 6199 0x0000, 6200 0x0000, 6201 NPC_VXLANGPE_P, 6202 NPC_VXLANGPE_P | NPC_VXLANGPE_I, 6203 NPC_VXLANGPE_NP_IP, 6204 NPC_VXLANGPE_NP_MASK, 6205 }, 6206 { 6207 NPC_S_KPU9_VXLANGPE, 0xff, 6208 0x0000, 6209 0x0000, 6210 NPC_VXLANGPE_P, 6211 NPC_VXLANGPE_P | NPC_VXLANGPE_I, 6212 NPC_VXLANGPE_NP_IP6, 6213 NPC_VXLANGPE_NP_MASK, 6214 }, 6215 { 6216 NPC_S_KPU9_VXLANGPE, 0xff, 6217 0x0000, 6218 0x0000, 6219 NPC_VXLANGPE_P, 6220 NPC_VXLANGPE_P | NPC_VXLANGPE_I, 6221 NPC_VXLANGPE_NP_ETH, 6222 NPC_VXLANGPE_NP_MASK, 6223 }, 6224 { 6225 NPC_S_KPU9_VXLANGPE, 0xff, 6226 0x0000, 6227 0x0000, 6228 NPC_VXLANGPE_P, 6229 NPC_VXLANGPE_P | NPC_VXLANGPE_I, 6230 NPC_VXLANGPE_NP_NSH, 6231 NPC_VXLANGPE_NP_MASK, 6232 }, 6233 { 6234 NPC_S_KPU9_VXLANGPE, 0xff, 6235 0x0000, 6236 0x0000, 6237 NPC_VXLANGPE_P, 6238 NPC_VXLANGPE_P | NPC_VXLANGPE_I, 6239 NPC_VXLANGPE_NP_MPLS, 6240 NPC_VXLANGPE_NP_MASK, 6241 }, 6242 { 6243 NPC_S_KPU9_VXLANGPE, 0xff, 6244 0x0000, 6245 0x0000, 6246 NPC_VXLANGPE_P, 6247 NPC_VXLANGPE_P, 6248 0x0000, 6249 0x0000, 6250 }, 6251 { 6252 NPC_S_KPU9_VXLANGPE, 0xff, 6253 0x0000, 6254 0x0000, 6255 0x0000, 6256 NPC_VXLANGPE_P, 6257 0x0000, 6258 0x0000, 6259 }, 6260 { 6261 NPC_S_KPU9_GENEVE, 0xff, 6262 0x0000, 6263 0x0000, 6264 0x0000, 6265 NPC_GENEVE_F_OAM | NPC_GENEVE_F_CRI_OPT, 6266 NPC_ETYPE_TRANS_ETH_BR, 6267 0xffff, 6268 }, 6269 { 6270 NPC_S_KPU9_GENEVE, 0xff, 6271 0x0000, 6272 0x0000, 6273 NPC_GENEVE_F_OAM, 6274 NPC_GENEVE_F_OAM | NPC_GENEVE_F_CRI_OPT, 6275 NPC_ETYPE_TRANS_ETH_BR, 6276 0xffff, 6277 }, 6278 { 6279 NPC_S_KPU9_GENEVE, 0xff, 6280 0x0000, 6281 0x0000, 6282 NPC_GENEVE_F_CRI_OPT, 6283 NPC_GENEVE_F_OAM | NPC_GENEVE_F_CRI_OPT, 6284 NPC_ETYPE_TRANS_ETH_BR, 6285 0xffff, 6286 }, 6287 { 6288 NPC_S_KPU9_GENEVE, 0xff, 6289 0x0000, 6290 0x0000, 6291 NPC_GENEVE_F_OAM | NPC_GENEVE_F_CRI_OPT, 6292 NPC_GENEVE_F_OAM | NPC_GENEVE_F_CRI_OPT, 6293 NPC_ETYPE_TRANS_ETH_BR, 6294 0xffff, 6295 }, 6296 { 6297 NPC_S_KPU9_GENEVE, 0xff, 6298 0x0000, 6299 0x0000, 6300 0x0000, 6301 NPC_GENEVE_F_OAM | NPC_GENEVE_F_CRI_OPT, 6302 NPC_ETYPE_IP, 6303 0xffff, 6304 }, 6305 { 6306 NPC_S_KPU9_GENEVE, 0xff, 6307 0x0000, 6308 0x0000, 6309 NPC_GENEVE_F_OAM, 6310 NPC_GENEVE_F_OAM | NPC_GENEVE_F_CRI_OPT, 6311 NPC_ETYPE_IP, 6312 0xffff, 6313 }, 6314 { 6315 NPC_S_KPU9_GENEVE, 0xff, 6316 0x0000, 6317 0x0000, 6318 NPC_GENEVE_F_CRI_OPT, 6319 NPC_GENEVE_F_OAM | NPC_GENEVE_F_CRI_OPT, 6320 NPC_ETYPE_IP, 6321 0xffff, 6322 }, 6323 { 6324 NPC_S_KPU9_GENEVE, 0xff, 6325 0x0000, 6326 0x0000, 6327 NPC_GENEVE_F_OAM | NPC_GENEVE_F_CRI_OPT, 6328 NPC_GENEVE_F_OAM | NPC_GENEVE_F_CRI_OPT, 6329 NPC_ETYPE_IP, 6330 0xffff, 6331 }, 6332 { 6333 NPC_S_KPU9_GENEVE, 0xff, 6334 0x0000, 6335 0x0000, 6336 0x0000, 6337 NPC_GENEVE_F_OAM | NPC_GENEVE_F_CRI_OPT, 6338 NPC_ETYPE_IP6, 6339 0xffff, 6340 }, 6341 { 6342 NPC_S_KPU9_GENEVE, 0xff, 6343 0x0000, 6344 0x0000, 6345 NPC_GENEVE_F_OAM, 6346 NPC_GENEVE_F_OAM | NPC_GENEVE_F_CRI_OPT, 6347 NPC_ETYPE_IP6, 6348 0xffff, 6349 }, 6350 { 6351 NPC_S_KPU9_GENEVE, 0xff, 6352 0x0000, 6353 0x0000, 6354 NPC_GENEVE_F_CRI_OPT, 6355 NPC_GENEVE_F_OAM | NPC_GENEVE_F_CRI_OPT, 6356 NPC_ETYPE_IP6, 6357 0xffff, 6358 }, 6359 { 6360 NPC_S_KPU9_GENEVE, 0xff, 6361 0x0000, 6362 0x0000, 6363 NPC_GENEVE_F_OAM | NPC_GENEVE_F_CRI_OPT, 6364 NPC_GENEVE_F_OAM | NPC_GENEVE_F_CRI_OPT, 6365 NPC_ETYPE_IP6, 6366 0xffff, 6367 }, 6368 { 6369 NPC_S_KPU9_GTPC, 0xff, 6370 0x0000, 6371 0x0000, 6372 0x0000, 6373 0x0000, 6374 0x0000, 6375 0x0000, 6376 }, 6377 { 6378 NPC_S_KPU9_GTPU, 0xff, 6379 0x0000, 6380 0x0000, 6381 NPC_GTP_PT_GTP | NPC_GTP_VER1 | NPC_GTP_MT_G_PDU, 6382 NPC_GTP_PT_MASK | NPC_GTP_VER_MASK | NPC_GTP_MT_MASK, 6383 0x0000, 6384 0x0000, 6385 }, 6386 { 6387 NPC_S_KPU9_GTPU, 0xff, 6388 0x0000, 6389 0x0000, 6390 0x0000, 6391 0x0000, 6392 0x0000, 6393 0x0000, 6394 }, 6395 { 6396 NPC_S_KPU9_TU_MPLS_IN_UDP, 0xff, 6397 NPC_MPLS_S, 6398 NPC_MPLS_S, 6399 0x0000, 6400 0x0000, 6401 0x0000, 6402 0x0000, 6403 }, 6404 { 6405 NPC_S_KPU9_TU_MPLS_IN_UDP, 0xff, 6406 0x0000, 6407 NPC_MPLS_S, 6408 NPC_MPLS_S, 6409 NPC_MPLS_S, 6410 0x0000, 6411 0x0000, 6412 }, 6413 { 6414 NPC_S_KPU9_TU_MPLS_IN_UDP, 0xff, 6415 0x0000, 6416 NPC_MPLS_S, 6417 0x0000, 6418 NPC_MPLS_S, 6419 NPC_MPLS_S, 6420 NPC_MPLS_S, 6421 }, 6422 { 6423 NPC_S_KPU9_TU_MPLS_IN_UDP, 0xff, 6424 0x0000, 6425 NPC_MPLS_S, 6426 0x0000, 6427 NPC_MPLS_S, 6428 0x0000, 6429 NPC_MPLS_S, 6430 }, 6431 { 6432 NPC_S_KPU9_ESP, 0xff, 6433 0x0000, 6434 0x0000, 6435 0x0000, 6436 0x0000, 6437 0x0000, 6438 0x0000, 6439 }, 6440 { 6441 NPC_S_NA, 0X00, 6442 0x0000, 6443 0x0000, 6444 0x0000, 6445 0x0000, 6446 0x0000, 6447 0x0000, 6448 }, 6449 }; 6450 6451 static const struct npc_kpu_profile_cam kpu10_cam_entries[] = { 6452 { 6453 NPC_S_KPU10_TU_MPLS, 0xff, 6454 NPC_MPLS_S, 6455 NPC_MPLS_S, 6456 NPC_IP_VER_4, 6457 NPC_IP_VER_MASK, 6458 0x0000, 6459 0x0000, 6460 }, 6461 { 6462 NPC_S_KPU10_TU_MPLS, 0xff, 6463 NPC_MPLS_S, 6464 NPC_MPLS_S, 6465 NPC_IP_VER_6, 6466 NPC_IP_VER_MASK, 6467 0x0000, 6468 0x0000, 6469 }, 6470 { 6471 NPC_S_KPU10_TU_MPLS, 0xff, 6472 NPC_MPLS_S, 6473 NPC_MPLS_S, 6474 0x0000, 6475 0xffff, 6476 0x0000, 6477 0x0000, 6478 }, 6479 { 6480 NPC_S_KPU10_TU_MPLS, 0xff, 6481 NPC_MPLS_S, 6482 NPC_MPLS_S, 6483 0x0000, 6484 0x0000, 6485 0x0000, 6486 0x0000, 6487 }, 6488 { 6489 NPC_S_KPU10_TU_MPLS, 0xff, 6490 0x0000, 6491 NPC_MPLS_S, 6492 0x0000, 6493 0x0000, 6494 0x0000, 6495 0x0000, 6496 }, 6497 { 6498 NPC_S_KPU10_TU_MPLS_PL, 0xff, 6499 NPC_IP_VER_4, 6500 NPC_IP_VER_MASK, 6501 0x0000, 6502 0x0000, 6503 0x0000, 6504 0x0000, 6505 }, 6506 { 6507 NPC_S_KPU10_TU_MPLS_PL, 0xff, 6508 NPC_IP_VER_6, 6509 NPC_IP_VER_MASK, 6510 0x0000, 6511 0x0000, 6512 0x0000, 6513 0x0000, 6514 }, 6515 { 6516 NPC_S_KPU10_TU_MPLS_PL, 0xff, 6517 0x0000, 6518 0xffff, 6519 0x0000, 6520 0x0000, 6521 0x0000, 6522 0x0000, 6523 }, 6524 { 6525 NPC_S_KPU10_TU_MPLS_PL, 0xff, 6526 0x0000, 6527 0x0000, 6528 0x0000, 6529 0x0000, 6530 0x0000, 6531 0x0000, 6532 }, 6533 { 6534 NPC_S_KPU10_TU_MPLS_IN_VXLANGPE, 0xff, 6535 NPC_MPLS_S, 6536 NPC_MPLS_S, 6537 0x0000, 6538 0x0000, 6539 0x0000, 6540 0x0000, 6541 }, 6542 { 6543 NPC_S_KPU10_TU_MPLS_IN_VXLANGPE, 0xff, 6544 0x0000, 6545 NPC_MPLS_S, 6546 NPC_MPLS_S, 6547 NPC_MPLS_S, 6548 0x0000, 6549 0x0000, 6550 }, 6551 { 6552 NPC_S_KPU10_TU_MPLS_IN_VXLANGPE, 0xff, 6553 0x0000, 6554 NPC_MPLS_S, 6555 0x0000, 6556 NPC_MPLS_S, 6557 NPC_MPLS_S, 6558 NPC_MPLS_S, 6559 }, 6560 { 6561 NPC_S_KPU10_TU_MPLS_IN_VXLANGPE, 0xff, 6562 0x0000, 6563 NPC_MPLS_S, 6564 0x0000, 6565 NPC_MPLS_S, 6566 0x0000, 6567 NPC_MPLS_S, 6568 }, 6569 { 6570 NPC_S_KPU10_TU_NSH_IN_VXLANGPE, 0xff, 6571 NPC_NSH_NP_IP, 6572 NPC_NSH_NP_MASK, 6573 0x0000, 6574 0x0000, 6575 0x0000, 6576 0x0000, 6577 }, 6578 { 6579 NPC_S_KPU10_TU_NSH_IN_VXLANGPE, 0xff, 6580 NPC_NSH_NP_IP6, 6581 NPC_NSH_NP_MASK, 6582 0x0000, 6583 0x0000, 6584 0x0000, 6585 0x0000, 6586 }, 6587 { 6588 NPC_S_KPU10_TU_NSH_IN_VXLANGPE, 0xff, 6589 NPC_NSH_NP_ETH, 6590 NPC_NSH_NP_MASK, 6591 0x0000, 6592 0x0000, 6593 0x0000, 6594 0x0000, 6595 }, 6596 { 6597 NPC_S_KPU10_TU_NSH_IN_VXLANGPE, 0xff, 6598 0x0000, 6599 0x0000, 6600 0x0000, 6601 0x0000, 6602 0x0000, 6603 0x0000, 6604 }, 6605 { 6606 NPC_S_NA, 0X00, 6607 0x0000, 6608 0x0000, 6609 0x0000, 6610 0x0000, 6611 0x0000, 6612 0x0000, 6613 }, 6614 }; 6615 6616 static const struct npc_kpu_profile_cam kpu11_cam_entries[] = { 6617 { 6618 NPC_S_KPU11_TU_ETHER, 0xff, 6619 NPC_ETYPE_IP, 6620 0xffff, 6621 0x0000, 6622 0x0000, 6623 0x0000, 6624 0x0000, 6625 }, 6626 { 6627 NPC_S_KPU11_TU_ETHER, 0xff, 6628 NPC_ETYPE_IP6, 6629 0xffff, 6630 0x0000, 6631 0x0000, 6632 0x0000, 6633 0x0000, 6634 }, 6635 { 6636 NPC_S_KPU11_TU_ETHER, 0xff, 6637 NPC_ETYPE_ARP, 6638 0xffff, 6639 0x0000, 6640 0x0000, 6641 0x0000, 6642 0x0000, 6643 }, 6644 { 6645 NPC_S_KPU11_TU_ETHER, 0xff, 6646 NPC_ETYPE_CTAG, 6647 0xffff, 6648 NPC_ETYPE_IP, 6649 0xffff, 6650 0x0000, 6651 0x0000, 6652 }, 6653 { 6654 NPC_S_KPU11_TU_ETHER, 0xff, 6655 NPC_ETYPE_CTAG, 6656 0xffff, 6657 NPC_ETYPE_IP6, 6658 0xffff, 6659 0x0000, 6660 0x0000, 6661 }, 6662 { 6663 NPC_S_KPU11_TU_ETHER, 0xff, 6664 NPC_ETYPE_CTAG, 6665 0xffff, 6666 NPC_ETYPE_ARP, 6667 0xffff, 6668 0x0000, 6669 0x0000, 6670 }, 6671 { 6672 NPC_S_KPU11_TU_ETHER, 0xff, 6673 NPC_ETYPE_CTAG, 6674 0xffff, 6675 0x0000, 6676 0x0000, 6677 0x0000, 6678 0x0000, 6679 }, 6680 { 6681 NPC_S_KPU11_TU_ETHER, 0xff, 6682 NPC_ETYPE_SBTAG, 6683 0xffff, 6684 NPC_ETYPE_CTAG, 6685 0xffff, 6686 NPC_ETYPE_IP, 6687 0xffff, 6688 }, 6689 { 6690 NPC_S_KPU11_TU_ETHER, 0xff, 6691 NPC_ETYPE_SBTAG, 6692 0xffff, 6693 NPC_ETYPE_CTAG, 6694 0xffff, 6695 NPC_ETYPE_IP6, 6696 0xffff, 6697 }, 6698 { 6699 NPC_S_KPU11_TU_ETHER, 0xff, 6700 NPC_ETYPE_SBTAG, 6701 0xffff, 6702 NPC_ETYPE_CTAG, 6703 0xffff, 6704 NPC_ETYPE_ARP, 6705 0xffff, 6706 }, 6707 { 6708 NPC_S_KPU11_TU_ETHER, 0xff, 6709 NPC_ETYPE_SBTAG, 6710 0xffff, 6711 NPC_ETYPE_CTAG, 6712 0xffff, 6713 0x0000, 6714 0x0000, 6715 }, 6716 { 6717 NPC_S_KPU11_TU_ETHER, 0xff, 6718 NPC_ETYPE_SBTAG, 6719 0xffff, 6720 NPC_ETYPE_IP, 6721 0xffff, 6722 0x0000, 6723 0x0000, 6724 }, 6725 { 6726 NPC_S_KPU11_TU_ETHER, 0xff, 6727 NPC_ETYPE_SBTAG, 6728 0xffff, 6729 NPC_ETYPE_IP6, 6730 0xffff, 6731 0x0000, 6732 0x0000, 6733 }, 6734 { 6735 NPC_S_KPU11_TU_ETHER, 0xff, 6736 NPC_ETYPE_SBTAG, 6737 0xffff, 6738 NPC_ETYPE_ARP, 6739 0xffff, 6740 0x0000, 6741 0x0000, 6742 }, 6743 { 6744 NPC_S_KPU11_TU_ETHER, 0xff, 6745 NPC_ETYPE_SBTAG, 6746 0xffff, 6747 0x0000, 6748 0x0000, 6749 0x0000, 6750 0x0000, 6751 }, 6752 { 6753 NPC_S_KPU11_TU_ETHER, 0xff, 6754 NPC_ETYPE_QINQ, 6755 0xffff, 6756 NPC_ETYPE_CTAG, 6757 0xffff, 6758 NPC_ETYPE_IP, 6759 0xffff, 6760 }, 6761 { 6762 NPC_S_KPU11_TU_ETHER, 0xff, 6763 NPC_ETYPE_QINQ, 6764 0xffff, 6765 NPC_ETYPE_CTAG, 6766 0xffff, 6767 NPC_ETYPE_IP6, 6768 0xffff, 6769 }, 6770 { 6771 NPC_S_KPU11_TU_ETHER, 0xff, 6772 NPC_ETYPE_QINQ, 6773 0xffff, 6774 NPC_ETYPE_CTAG, 6775 0xffff, 6776 NPC_ETYPE_ARP, 6777 0xffff, 6778 }, 6779 { 6780 NPC_S_KPU11_TU_ETHER, 0xff, 6781 NPC_ETYPE_QINQ, 6782 0xffff, 6783 NPC_ETYPE_CTAG, 6784 0xffff, 6785 0x0000, 6786 0x0000, 6787 }, 6788 { 6789 NPC_S_KPU11_TU_ETHER, 0xff, 6790 NPC_ETYPE_QINQ, 6791 0xffff, 6792 NPC_ETYPE_IP, 6793 0xffff, 6794 0x0000, 6795 0x0000, 6796 }, 6797 { 6798 NPC_S_KPU11_TU_ETHER, 0xff, 6799 NPC_ETYPE_QINQ, 6800 0xffff, 6801 NPC_ETYPE_IP6, 6802 0xffff, 6803 0x0000, 6804 0x0000, 6805 }, 6806 { 6807 NPC_S_KPU11_TU_ETHER, 0xff, 6808 NPC_ETYPE_QINQ, 6809 0xffff, 6810 NPC_ETYPE_ARP, 6811 0xffff, 6812 0x0000, 6813 0x0000, 6814 }, 6815 { 6816 NPC_S_KPU11_TU_ETHER, 0xff, 6817 NPC_ETYPE_QINQ, 6818 0xffff, 6819 0x0000, 6820 0x0000, 6821 0x0000, 6822 0x0000, 6823 }, 6824 { 6825 NPC_S_KPU11_TU_ETHER, 0xff, 6826 0x0000, 6827 0x0000, 6828 0x0000, 6829 0x0000, 6830 0x0000, 6831 0x0000, 6832 }, 6833 { 6834 NPC_S_KPU11_TU_PPP, 0xff, 6835 0x0000, 6836 0x0000, 6837 0x0000, 6838 0x0000, 6839 0x0000, 6840 0x0000, 6841 }, 6842 { 6843 NPC_S_KPU11_TU_MPLS, 0xff, 6844 NPC_MPLS_S, 6845 NPC_MPLS_S, 6846 NPC_IP_VER_4, 6847 NPC_IP_VER_MASK, 6848 0x0000, 6849 0x0000, 6850 }, 6851 { 6852 NPC_S_KPU11_TU_MPLS, 0xff, 6853 NPC_MPLS_S, 6854 NPC_MPLS_S, 6855 NPC_IP_VER_6, 6856 NPC_IP_VER_MASK, 6857 0x0000, 6858 0x0000, 6859 }, 6860 { 6861 NPC_S_KPU11_TU_MPLS, 0xff, 6862 NPC_MPLS_S, 6863 NPC_MPLS_S, 6864 0x0000, 6865 0x0000, 6866 0x0000, 6867 0x0000, 6868 }, 6869 { 6870 NPC_S_KPU11_TU_MPLS, 0xff, 6871 0x0000, 6872 NPC_MPLS_S, 6873 0x0000, 6874 0x0000, 6875 0x0000, 6876 0x0000, 6877 }, 6878 { 6879 NPC_S_KPU11_TU_MPLS_PL, 0xff, 6880 NPC_IP_VER_4, 6881 NPC_IP_VER_MASK, 6882 0x0000, 6883 0x0000, 6884 0x0000, 6885 0x0000, 6886 }, 6887 { 6888 NPC_S_KPU11_TU_MPLS_PL, 0xff, 6889 NPC_IP_VER_6, 6890 NPC_IP_VER_MASK, 6891 0x0000, 6892 0x0000, 6893 0x0000, 6894 0x0000, 6895 }, 6896 { 6897 NPC_S_KPU11_TU_MPLS_PL, 0xff, 6898 0x0000, 6899 0x0000, 6900 0x0000, 6901 0x0000, 6902 0x0000, 6903 0x0000, 6904 }, 6905 { 6906 NPC_S_KPU11_TU_ETHER_IN_NSH, 0xff, 6907 0x0000, 6908 0x0000, 6909 0x0000, 6910 0x0000, 6911 0x0000, 6912 0x0000, 6913 }, 6914 { 6915 NPC_S_NA, 0X00, 6916 0x0000, 6917 0x0000, 6918 0x0000, 6919 0x0000, 6920 0x0000, 6921 0x0000, 6922 }, 6923 }; 6924 6925 static const struct npc_kpu_profile_cam kpu12_cam_entries[] = { 6926 { 6927 NPC_S_KPU12_TU_IP, 0xff, 6928 NPC_IPNH_TCP, 6929 0x00ff, 6930 NPC_IP_VER_4|NPC_IP_HDR_LEN_5, 6931 NPC_IP_VER_MASK|NPC_IP_HDR_LEN_MASK, 6932 0x0000, 6933 0x0000, 6934 }, 6935 { 6936 NPC_S_KPU12_TU_IP, 0xff, 6937 NPC_IPNH_UDP, 6938 0x00ff, 6939 NPC_IP_VER_4|NPC_IP_HDR_LEN_5, 6940 NPC_IP_VER_MASK|NPC_IP_HDR_LEN_MASK, 6941 0x0000, 6942 0x0000, 6943 }, 6944 { 6945 NPC_S_KPU12_TU_IP, 0xff, 6946 NPC_IPNH_SCTP, 6947 0x00ff, 6948 NPC_IP_VER_4|NPC_IP_HDR_LEN_5, 6949 NPC_IP_VER_MASK|NPC_IP_HDR_LEN_MASK, 6950 0x0000, 6951 0x0000, 6952 }, 6953 { 6954 NPC_S_KPU12_TU_IP, 0xff, 6955 NPC_IPNH_ICMP, 6956 0x00ff, 6957 NPC_IP_VER_4|NPC_IP_HDR_LEN_5, 6958 NPC_IP_VER_MASK|NPC_IP_HDR_LEN_MASK, 6959 0x0000, 6960 0x0000, 6961 }, 6962 { 6963 NPC_S_KPU12_TU_IP, 0xff, 6964 NPC_IPNH_IGMP, 6965 0x00ff, 6966 NPC_IP_VER_4|NPC_IP_HDR_LEN_5, 6967 NPC_IP_VER_MASK|NPC_IP_HDR_LEN_MASK, 6968 0x0000, 6969 0x0000, 6970 }, 6971 { 6972 NPC_S_KPU12_TU_IP, 0xff, 6973 NPC_IPNH_ESP, 6974 0x00ff, 6975 NPC_IP_VER_4|NPC_IP_HDR_LEN_5, 6976 NPC_IP_VER_MASK|NPC_IP_HDR_LEN_MASK, 6977 0x0000, 6978 0x0000, 6979 }, 6980 { 6981 NPC_S_KPU12_TU_IP, 0xff, 6982 NPC_IPNH_AH, 6983 0x00ff, 6984 NPC_IP_VER_4|NPC_IP_HDR_LEN_5, 6985 NPC_IP_VER_MASK|NPC_IP_HDR_LEN_MASK, 6986 0x0000, 6987 0x0000, 6988 }, 6989 { 6990 NPC_S_KPU12_TU_IP, 0xff, 6991 0x0000, 6992 0x0000, 6993 NPC_IP_VER_4|NPC_IP_HDR_LEN_5, 6994 NPC_IP_VER_MASK|NPC_IP_HDR_LEN_MASK, 6995 0x0000, 6996 0x0000, 6997 }, 6998 { 6999 NPC_S_KPU12_TU_IP, 0xff, 7000 NPC_IPNH_TCP, 7001 0x00ff, 7002 NPC_IP_VER_4, 7003 NPC_IP_VER_MASK, 7004 0x0000, 7005 0x0000, 7006 }, 7007 { 7008 NPC_S_KPU12_TU_IP, 0xff, 7009 NPC_IPNH_UDP, 7010 0x00ff, 7011 NPC_IP_VER_4, 7012 NPC_IP_VER_MASK, 7013 0x0000, 7014 0x0000, 7015 }, 7016 { 7017 NPC_S_KPU12_TU_IP, 0xff, 7018 NPC_IPNH_SCTP, 7019 0x00ff, 7020 NPC_IP_VER_4, 7021 NPC_IP_VER_MASK, 7022 0x0000, 7023 0x0000, 7024 }, 7025 { 7026 NPC_S_KPU12_TU_IP, 0xff, 7027 NPC_IPNH_ICMP, 7028 0x00ff, 7029 NPC_IP_VER_4, 7030 NPC_IP_VER_MASK, 7031 0x0000, 7032 0x0000, 7033 }, 7034 { 7035 NPC_S_KPU12_TU_IP, 0xff, 7036 NPC_IPNH_IGMP, 7037 0x00ff, 7038 NPC_IP_VER_4, 7039 NPC_IP_VER_MASK, 7040 0x0000, 7041 0x0000, 7042 }, 7043 { 7044 NPC_S_KPU12_TU_IP, 0xff, 7045 NPC_IPNH_ESP, 7046 0x00ff, 7047 NPC_IP_VER_4, 7048 NPC_IP_VER_MASK, 7049 0x0000, 7050 0x0000, 7051 }, 7052 { 7053 NPC_S_KPU12_TU_IP, 0xff, 7054 NPC_IPNH_AH, 7055 0x00ff, 7056 NPC_IP_VER_4, 7057 NPC_IP_VER_MASK, 7058 0x0000, 7059 0x0000, 7060 }, 7061 { 7062 NPC_S_KPU12_TU_IP, 0xff, 7063 0x0000, 7064 0x0000, 7065 NPC_IP_VER_4, 7066 NPC_IP_VER_MASK, 7067 0x0000, 7068 0x0000, 7069 }, 7070 { 7071 NPC_S_KPU12_TU_IP, 0xff, 7072 0x0000, 7073 0x0000, 7074 0x0000, 7075 0x0000, 7076 0x0000, 7077 0x0000, 7078 }, 7079 { 7080 NPC_S_KPU12_TU_ARP, 0xff, 7081 0x0000, 7082 0x0000, 7083 0x0000, 7084 0x0000, 7085 0x0000, 7086 0x0000, 7087 }, 7088 { 7089 NPC_S_KPU12_TU_IP6, 0xff, 7090 NPC_IPNH_TCP << 8, 7091 0xff00, 7092 NPC_IP_VER_6, 7093 NPC_IP_VER_MASK, 7094 0x0000, 7095 0x0000, 7096 }, 7097 { 7098 NPC_S_KPU12_TU_IP6, 0xff, 7099 NPC_IPNH_UDP << 8, 7100 0xff00, 7101 NPC_IP_VER_6, 7102 NPC_IP_VER_MASK, 7103 0x0000, 7104 0x0000, 7105 }, 7106 { 7107 NPC_S_KPU12_TU_IP6, 0xff, 7108 NPC_IPNH_SCTP << 8, 7109 0xff00, 7110 NPC_IP_VER_6, 7111 NPC_IP_VER_MASK, 7112 0x0000, 7113 0x0000, 7114 }, 7115 { 7116 NPC_S_KPU12_TU_IP6, 0xff, 7117 NPC_IPNH_ICMP << 8, 7118 0xff00, 7119 NPC_IP_VER_6, 7120 NPC_IP_VER_MASK, 7121 0x0000, 7122 0x0000, 7123 }, 7124 { 7125 NPC_S_KPU12_TU_IP6, 0xff, 7126 NPC_IPNH_ICMP6 << 8, 7127 0xff00, 7128 NPC_IP_VER_6, 7129 NPC_IP_VER_MASK, 7130 0x0000, 7131 0x0000, 7132 }, 7133 { 7134 NPC_S_KPU12_TU_IP6, 0xff, 7135 NPC_IPNH_ESP << 8, 7136 0xff00, 7137 NPC_IP_VER_6, 7138 NPC_IP_VER_MASK, 7139 0x0000, 7140 0x0000, 7141 }, 7142 { 7143 NPC_S_KPU12_TU_IP6, 0xff, 7144 NPC_IPNH_AH << 8, 7145 0xff00, 7146 NPC_IP_VER_6, 7147 NPC_IP_VER_MASK, 7148 0x0000, 7149 0x0000, 7150 }, 7151 { 7152 NPC_S_KPU12_TU_IP6, 0xff, 7153 0x0000, 7154 0x0000, 7155 NPC_IP_VER_6, 7156 NPC_IP_VER_MASK, 7157 0x0000, 7158 0x0000, 7159 }, 7160 { 7161 NPC_S_KPU12_TU_IP6, 0xff, 7162 0x0000, 7163 0x0000, 7164 0x0000, 7165 0x0000, 7166 0x0000, 7167 0x0000, 7168 }, 7169 { 7170 NPC_S_NA, 0X00, 7171 0x0000, 7172 0x0000, 7173 0x0000, 7174 0x0000, 7175 0x0000, 7176 0x0000, 7177 }, 7178 }; 7179 7180 static const struct npc_kpu_profile_cam kpu13_cam_entries[] = { 7181 { 7182 NPC_S_KPU13_TU_IP6_EXT, 0xff, 7183 0x0000, 7184 0x0000, 7185 0x0000, 7186 0x0000, 7187 0x0000, 7188 0x0000, 7189 }, 7190 }; 7191 7192 static const struct npc_kpu_profile_cam kpu14_cam_entries[] = { 7193 { 7194 NPC_S_KPU14_TU_IP6_EXT, 0xff, 7195 0x0000, 7196 0x0000, 7197 0x0000, 7198 0x0000, 7199 0x0000, 7200 0x0000, 7201 }, 7202 }; 7203 7204 static const struct npc_kpu_profile_cam kpu15_cam_entries[] = { 7205 { 7206 NPC_S_KPU15_TU_TCP, 0xff, 7207 0x0000, 7208 0x0000, 7209 NPC_TCP_FLAGS_FIN, 7210 NPC_TCP_FLAGS_MASK, 7211 0x0000, 7212 0x0000, 7213 }, 7214 { 7215 NPC_S_KPU15_TU_TCP, 0xff, 7216 0x0000, 7217 0x0000, 7218 0x0000, 7219 NPC_TCP_FLAGS_MASK, 7220 0x0000, 7221 0x0000, 7222 }, 7223 { 7224 NPC_S_KPU15_TU_TCP, 0xff, 7225 0x0000, 7226 0x0000, 7227 NPC_TCP_FLAGS_RST|NPC_TCP_FLAGS_FIN, 7228 NPC_TCP_FLAGS_RST|NPC_TCP_FLAGS_FIN, 7229 0x0000, 7230 0x0000, 7231 }, 7232 { 7233 NPC_S_KPU15_TU_TCP, 0xff, 7234 0x0000, 7235 0x0000, 7236 NPC_TCP_FLAGS_URG|NPC_TCP_FLAGS_SYN, 7237 NPC_TCP_FLAGS_URG|NPC_TCP_FLAGS_SYN, 7238 0x0000, 7239 0x0000, 7240 }, 7241 { 7242 NPC_S_KPU15_TU_TCP, 0xff, 7243 0x0000, 7244 0x0000, 7245 NPC_TCP_FLAGS_RST|NPC_TCP_FLAGS_SYN, 7246 NPC_TCP_FLAGS_RST|NPC_TCP_FLAGS_SYN, 7247 0x0000, 7248 0x0000, 7249 }, 7250 { 7251 NPC_S_KPU15_TU_TCP, 0xff, 7252 0x0000, 7253 0x0000, 7254 NPC_TCP_FLAGS_SYN|NPC_TCP_FLAGS_FIN, 7255 NPC_TCP_FLAGS_SYN|NPC_TCP_FLAGS_FIN, 7256 0x0000, 7257 0x0000, 7258 }, 7259 { 7260 NPC_S_KPU15_TU_TCP, 0xff, 7261 NPC_TCP_PORT_HTTP, 7262 0xffff, 7263 NPC_TCP_DATA_OFFSET_5, 7264 NPC_TCP_DATA_OFFSET_MASK, 7265 0x0000, 7266 0x0000, 7267 }, 7268 { 7269 NPC_S_KPU15_TU_TCP, 0xff, 7270 NPC_TCP_PORT_HTTPS, 7271 0xffff, 7272 NPC_TCP_DATA_OFFSET_5, 7273 NPC_TCP_DATA_OFFSET_MASK, 7274 0x0000, 7275 0x0000, 7276 }, 7277 { 7278 NPC_S_KPU15_TU_TCP, 0xff, 7279 NPC_TCP_PORT_PPTP, 7280 0xffff, 7281 NPC_TCP_DATA_OFFSET_5, 7282 NPC_TCP_DATA_OFFSET_MASK, 7283 0x0000, 7284 0x0000, 7285 }, 7286 { 7287 NPC_S_KPU15_TU_TCP, 0xff, 7288 0x0000, 7289 0x0000, 7290 NPC_TCP_DATA_OFFSET_5, 7291 NPC_TCP_DATA_OFFSET_MASK, 7292 0x0000, 7293 0x0000, 7294 }, 7295 { 7296 NPC_S_KPU15_TU_TCP, 0xff, 7297 NPC_TCP_PORT_HTTP, 7298 0xffff, 7299 0x0000, 7300 0x0000, 7301 0x0000, 7302 0x0000, 7303 }, 7304 { 7305 NPC_S_KPU15_TU_TCP, 0xff, 7306 NPC_TCP_PORT_HTTPS, 7307 0xffff, 7308 0x0000, 7309 0x0000, 7310 0x0000, 7311 0x0000, 7312 }, 7313 { 7314 NPC_S_KPU15_TU_TCP, 0xff, 7315 NPC_TCP_PORT_PPTP, 7316 0xffff, 7317 0x0000, 7318 0x0000, 7319 0x0000, 7320 0x0000, 7321 }, 7322 { 7323 NPC_S_KPU15_TU_TCP, 0xff, 7324 0x0000, 7325 0x0000, 7326 0x0000, 7327 0x0000, 7328 0x0000, 7329 0x0000, 7330 }, 7331 { 7332 NPC_S_KPU15_TU_UDP, 0xff, 7333 0x0000, 7334 0x0000, 7335 0x0000, 7336 0x0000, 7337 0x0000, 7338 0x0000, 7339 }, 7340 { 7341 NPC_S_KPU15_TU_SCTP, 0xff, 7342 0x0000, 7343 0x0000, 7344 0x0000, 7345 0x0000, 7346 0x0000, 7347 0x0000, 7348 }, 7349 { 7350 NPC_S_KPU15_TU_ICMP, 0xff, 7351 0x0000, 7352 0x0000, 7353 0x0000, 7354 0x0000, 7355 0x0000, 7356 0x0000, 7357 }, 7358 { 7359 NPC_S_KPU15_TU_IGMP, 0xff, 7360 0x0000, 7361 0x0000, 7362 0x0000, 7363 0x0000, 7364 0x0000, 7365 0x0000, 7366 }, 7367 { 7368 NPC_S_KPU15_TU_ICMP6, 0xff, 7369 0x0000, 7370 0x0000, 7371 0x0000, 7372 0x0000, 7373 0x0000, 7374 0x0000, 7375 }, 7376 { 7377 NPC_S_KPU15_TU_ESP, 0xff, 7378 0x0000, 7379 0x0000, 7380 0x0000, 7381 0x0000, 7382 0x0000, 7383 0x0000, 7384 }, 7385 { 7386 NPC_S_KPU15_TU_AH, 0xff, 7387 0x0000, 7388 0x0000, 7389 0x0000, 7390 0x0000, 7391 0x0000, 7392 0x0000, 7393 }, 7394 { 7395 NPC_S_NA, 0X00, 7396 0x0000, 7397 0x0000, 7398 0x0000, 7399 0x0000, 7400 0x0000, 7401 0x0000, 7402 }, 7403 }; 7404 7405 static const struct npc_kpu_profile_cam kpu16_cam_entries[] = { 7406 { 7407 NPC_S_KPU16_TCP_DATA, 0xff, 7408 0x0000, 7409 0x0000, 7410 0x0000, 7411 0x0000, 7412 0x0000, 7413 0x0000, 7414 }, 7415 { 7416 NPC_S_KPU16_HTTP_DATA, 0xff, 7417 0x0000, 7418 0x0000, 7419 0x0000, 7420 0x0000, 7421 0x0000, 7422 0x0000, 7423 }, 7424 { 7425 NPC_S_KPU16_HTTPS_DATA, 0xff, 7426 0x0000, 7427 0x0000, 7428 0x0000, 7429 0x0000, 7430 0x0000, 7431 0x0000, 7432 }, 7433 { 7434 NPC_S_KPU16_PPTP_DATA, 0xff, 7435 0x0000, 7436 0x0000, 7437 0x0000, 7438 0x0000, 7439 0x0000, 7440 0x0000, 7441 }, 7442 { 7443 NPC_S_KPU16_UDP_DATA, 0xff, 7444 0x0000, 7445 0x0000, 7446 0x0000, 7447 0x0000, 7448 0x0000, 7449 0x0000, 7450 }, 7451 { 7452 NPC_S_KPU16_UDP_PTP, 0xff, 7453 0x0000, 7454 0x0000, 7455 0x0000, 7456 0x0000, 7457 0x0000, 7458 0x0000, 7459 }, 7460 }; 7461 7462 static const struct npc_kpu_profile_action kpu1_action_entries[] = { 7463 { 7464 NPC_ERRLEV_RE, NPC_EC_NOERR, 7465 8, 0, 6, 3, 0, 7466 NPC_S_KPU5_IP, 14, 1, 7467 NPC_LID_LA, NPC_LT_LA_ETHER, 7468 0, 7469 0, 0, 0, 0, 7470 }, 7471 { 7472 NPC_ERRLEV_RE, NPC_EC_NOERR, 7473 6, 0, 0, 3, 0, 7474 NPC_S_KPU5_IP6, 14, 1, 7475 NPC_LID_LA, NPC_LT_LA_ETHER, 7476 0, 7477 0, 0, 0, 0, 7478 }, 7479 { 7480 NPC_ERRLEV_RE, NPC_EC_NOERR, 7481 0, 0, 0, 3, 0, 7482 NPC_S_KPU5_ARP, 14, 1, 7483 NPC_LID_LA, NPC_LT_LA_ETHER, 7484 0, 7485 0, 0, 0, 0, 7486 }, 7487 { 7488 NPC_ERRLEV_RE, NPC_EC_NOERR, 7489 0, 0, 0, 3, 0, 7490 NPC_S_KPU5_RARP, 14, 1, 7491 NPC_LID_LA, NPC_LT_LA_ETHER, 7492 0, 7493 0, 0, 0, 0, 7494 }, 7495 { 7496 NPC_ERRLEV_RE, NPC_EC_NOERR, 7497 0, 0, 0, 3, 0, 7498 NPC_S_KPU5_PTP, 14, 1, 7499 NPC_LID_LA, NPC_LT_LA_ETHER, 7500 0, 7501 0, 0, 0, 0, 7502 }, 7503 { 7504 NPC_ERRLEV_RE, NPC_EC_NOERR, 7505 0, 0, 0, 3, 0, 7506 NPC_S_KPU5_FCOE, 14, 1, 7507 NPC_LID_LA, NPC_LT_LA_ETHER, 7508 0, 7509 0, 0, 0, 0, 7510 }, 7511 { 7512 NPC_ERRLEV_RE, NPC_EC_NOERR, 7513 8, 12, 0, 0, 0, 7514 NPC_S_KPU2_CTAG2, 12, 1, 7515 NPC_LID_LA, NPC_LT_LA_ETHER, 7516 NPC_F_LA_U_HAS_TAG | NPC_F_LA_L_WITH_VLAN, 7517 0, 0, 0, 0, 7518 }, 7519 { 7520 NPC_ERRLEV_RE, NPC_EC_NOERR, 7521 4, 8, 0, 0, 0, 7522 NPC_S_KPU2_CTAG, 12, 1, 7523 NPC_LID_LA, NPC_LT_LA_ETHER, 7524 NPC_F_LA_U_HAS_TAG | NPC_F_LA_L_WITH_VLAN, 7525 0, 0, 0, 0, 7526 }, 7527 { 7528 NPC_ERRLEV_RE, NPC_EC_NOERR, 7529 4, 8, 22, 0, 0, 7530 NPC_S_KPU2_SBTAG, 12, 1, 7531 NPC_LID_LA, NPC_LT_LA_ETHER, 7532 NPC_F_LA_U_HAS_TAG | NPC_F_LA_L_WITH_VLAN, 7533 0, 0, 0, 0, 7534 }, 7535 { 7536 NPC_ERRLEV_RE, NPC_EC_NOERR, 7537 4, 8, 0, 0, 0, 7538 NPC_S_KPU2_QINQ, 12, 1, 7539 NPC_LID_LA, NPC_LT_LA_ETHER, 7540 NPC_F_LA_U_HAS_TAG | NPC_F_LA_L_WITH_VLAN, 7541 0, 0, 0, 0, 7542 }, 7543 { 7544 NPC_ERRLEV_RE, NPC_EC_NOERR, 7545 8, 12, 26, 0, 0, 7546 NPC_S_KPU2_ETAG, 12, 1, 7547 NPC_LID_LA, NPC_LT_LA_ETHER, 7548 NPC_F_LA_U_HAS_TAG | NPC_F_LA_L_WITH_ETAG, 7549 0, 0, 0, 0, 7550 }, 7551 { 7552 NPC_ERRLEV_RE, NPC_EC_NOERR, 7553 18, 22, 26, 0, 0, 7554 NPC_S_KPU2_ITAG, 12, 1, 7555 NPC_LID_LA, NPC_LT_LA_ETHER, 7556 NPC_F_LA_U_HAS_TAG | NPC_F_LA_L_WITH_ITAG, 7557 0, 0, 0, 0, 7558 }, 7559 { 7560 NPC_ERRLEV_RE, NPC_EC_NOERR, 7561 2, 6, 10, 2, 0, 7562 NPC_S_KPU4_MPLS, 14, 1, 7563 NPC_LID_LA, NPC_LT_LA_ETHER, 7564 NPC_F_LA_L_WITH_MPLS, 7565 0, 0, 0, 0, 7566 }, 7567 { 7568 NPC_ERRLEV_RE, NPC_EC_NOERR, 7569 2, 6, 10, 2, 0, 7570 NPC_S_KPU4_MPLS, 14, 1, 7571 NPC_LID_LA, NPC_LT_LA_ETHER, 7572 NPC_F_LA_L_WITH_MPLS, 7573 0, 0, 0, 0, 7574 }, 7575 { 7576 NPC_ERRLEV_RE, NPC_EC_NOERR, 7577 2, 0, 0, 2, 0, 7578 NPC_S_KPU4_NSH, 14, 1, 7579 NPC_LID_LA, NPC_LT_LA_ETHER, 7580 NPC_F_LA_L_WITH_NSH, 7581 0, 0, 0, 0, 7582 }, 7583 { 7584 NPC_ERRLEV_RE, NPC_EC_NOERR, 7585 8, 12, 0, 1, 0, 7586 NPC_S_KPU3_DSA, 12, 1, 7587 NPC_LID_LA, NPC_LT_LA_ETHER, 7588 0, 7589 0, 0, 0, 0, 7590 }, 7591 { 7592 NPC_ERRLEV_RE, NPC_EC_NOERR, 7593 0, 0, 0, 0, 1, 7594 NPC_S_NA, 0, 1, 7595 NPC_LID_LA, NPC_LT_LA_8023, 7596 0, 7597 0, 0, 0, 0, 7598 }, 7599 { 7600 NPC_ERRLEV_RE, NPC_EC_NOERR, 7601 0, 0, 0, 0, 1, 7602 NPC_S_NA, 0, 1, 7603 NPC_LID_LA, NPC_LT_LA_8023, 7604 0, 7605 0, 0, 0, 0, 7606 }, 7607 { 7608 NPC_ERRLEV_RE, NPC_EC_NOERR, 7609 0, 0, 0, 0, 1, 7610 NPC_S_NA, 0, 1, 7611 NPC_LID_LA, NPC_LT_LA_ETHER, 7612 NPC_F_LA_L_UNK_ETYPE, 7613 0, 0, 0, 0, 7614 }, 7615 { 7616 NPC_ERRLEV_RE, NPC_EC_NOERR, 7617 8, 0, 6, 3, 0, 7618 NPC_S_KPU5_IP, 22, 1, 7619 NPC_LID_LA, NPC_LT_LA_IH_NIX_ETHER, 7620 NPC_F_LA_U_HAS_IH_NIX, 7621 0, 0, 0, 0, 7622 }, 7623 { 7624 NPC_ERRLEV_RE, NPC_EC_NOERR, 7625 6, 0, 0, 3, 0, 7626 NPC_S_KPU5_IP6, 22, 1, 7627 NPC_LID_LA, NPC_LT_LA_IH_NIX_ETHER, 7628 NPC_F_LA_U_HAS_IH_NIX, 7629 0, 0, 0, 0, 7630 }, 7631 { 7632 NPC_ERRLEV_RE, NPC_EC_NOERR, 7633 0, 0, 0, 3, 0, 7634 NPC_S_KPU5_ARP, 22, 1, 7635 NPC_LID_LA, NPC_LT_LA_IH_NIX_ETHER, 7636 NPC_F_LA_U_HAS_IH_NIX, 7637 0, 0, 0, 0, 7638 }, 7639 { 7640 NPC_ERRLEV_RE, NPC_EC_NOERR, 7641 0, 0, 0, 3, 0, 7642 NPC_S_KPU5_RARP, 22, 1, 7643 NPC_LID_LA, NPC_LT_LA_IH_NIX_ETHER, 7644 NPC_F_LA_U_HAS_IH_NIX, 7645 0, 0, 0, 0, 7646 }, 7647 { 7648 NPC_ERRLEV_RE, NPC_EC_NOERR, 7649 0, 0, 0, 3, 0, 7650 NPC_S_KPU5_PTP, 22, 1, 7651 NPC_LID_LA, NPC_LT_LA_IH_NIX_ETHER, 7652 NPC_F_LA_U_HAS_IH_NIX, 7653 0, 0, 0, 0, 7654 }, 7655 { 7656 NPC_ERRLEV_RE, NPC_EC_NOERR, 7657 0, 0, 0, 3, 0, 7658 NPC_S_KPU5_FCOE, 22, 1, 7659 NPC_LID_LA, NPC_LT_LA_IH_NIX_ETHER, 7660 NPC_F_LA_U_HAS_IH_NIX, 7661 0, 0, 0, 0, 7662 }, 7663 { 7664 NPC_ERRLEV_RE, NPC_EC_NOERR, 7665 8, 12, 0, 0, 0, 7666 NPC_S_KPU2_CTAG2, 20, 1, 7667 NPC_LID_LA, NPC_LT_LA_IH_NIX_ETHER, 7668 NPC_F_LA_U_HAS_IH_NIX | NPC_F_LA_U_HAS_TAG 7669 | NPC_F_LA_L_WITH_VLAN, 7670 0, 0, 0, 0, 7671 }, 7672 { 7673 NPC_ERRLEV_RE, NPC_EC_NOERR, 7674 4, 8, 0, 0, 0, 7675 NPC_S_KPU2_CTAG, 20, 1, 7676 NPC_LID_LA, NPC_LT_LA_IH_NIX_ETHER, 7677 NPC_F_LA_U_HAS_IH_NIX | NPC_F_LA_U_HAS_TAG 7678 | NPC_F_LA_L_WITH_VLAN, 7679 0, 0, 0, 0, 7680 }, 7681 { 7682 NPC_ERRLEV_RE, NPC_EC_NOERR, 7683 4, 8, 22, 0, 0, 7684 NPC_S_KPU2_SBTAG, 20, 1, 7685 NPC_LID_LA, NPC_LT_LA_IH_NIX_ETHER, 7686 NPC_F_LA_U_HAS_IH_NIX | NPC_F_LA_U_HAS_TAG 7687 | NPC_F_LA_L_WITH_VLAN, 7688 0, 0, 0, 0, 7689 }, 7690 { 7691 NPC_ERRLEV_RE, NPC_EC_NOERR, 7692 4, 8, 0, 0, 0, 7693 NPC_S_KPU2_QINQ, 20, 1, 7694 NPC_LID_LA, NPC_LT_LA_IH_NIX_ETHER, 7695 NPC_F_LA_U_HAS_IH_NIX | NPC_F_LA_U_HAS_TAG 7696 | NPC_F_LA_L_WITH_VLAN, 7697 0, 0, 0, 0, 7698 }, 7699 { 7700 NPC_ERRLEV_RE, NPC_EC_NOERR, 7701 8, 12, 26, 0, 0, 7702 NPC_S_KPU2_ETAG, 20, 1, 7703 NPC_LID_LA, NPC_LT_LA_IH_NIX_ETHER, 7704 NPC_F_LA_U_HAS_IH_NIX | NPC_F_LA_U_HAS_TAG 7705 | NPC_F_LA_L_WITH_ETAG, 7706 0, 0, 0, 0, 7707 }, 7708 { 7709 NPC_ERRLEV_RE, NPC_EC_NOERR, 7710 18, 22, 26, 0, 0, 7711 NPC_S_KPU2_ITAG, 20, 1, 7712 NPC_LID_LA, NPC_LT_LA_IH_NIX_ETHER, 7713 NPC_F_LA_U_HAS_IH_NIX | NPC_F_LA_U_HAS_TAG 7714 | NPC_F_LA_L_WITH_ITAG, 7715 0, 0, 0, 0, 7716 }, 7717 { 7718 NPC_ERRLEV_RE, NPC_EC_NOERR, 7719 2, 6, 10, 2, 0, 7720 NPC_S_KPU4_MPLS, 22, 1, 7721 NPC_LID_LA, NPC_LT_LA_IH_NIX_ETHER, 7722 NPC_F_LA_U_HAS_IH_NIX | NPC_F_LA_L_WITH_MPLS, 7723 0, 0, 0, 0, 7724 }, 7725 { 7726 NPC_ERRLEV_RE, NPC_EC_NOERR, 7727 2, 6, 10, 2, 0, 7728 NPC_S_KPU4_MPLS, 22, 1, 7729 NPC_LID_LA, NPC_LT_LA_IH_NIX_ETHER, 7730 NPC_F_LA_U_HAS_IH_NIX | NPC_F_LA_L_WITH_MPLS, 7731 0, 0, 0, 0, 7732 }, 7733 { 7734 NPC_ERRLEV_RE, NPC_EC_NOERR, 7735 2, 0, 0, 2, 0, 7736 NPC_S_KPU4_NSH, 22, 1, 7737 NPC_LID_LA, NPC_LT_LA_IH_NIX_ETHER, 7738 NPC_F_LA_U_HAS_IH_NIX | NPC_F_LA_L_WITH_NSH, 7739 0, 0, 0, 0, 7740 }, 7741 { 7742 NPC_ERRLEV_RE, NPC_EC_NOERR, 7743 0, 0, 0, 0, 1, 7744 NPC_S_NA, 0, 1, 7745 NPC_LID_LA, NPC_LT_LA_IH_NIX_ETHER, 7746 NPC_F_LA_U_HAS_IH_NIX | NPC_F_LA_L_UNK_ETYPE, 7747 0, 0, 0, 0, 7748 }, 7749 { 7750 NPC_ERRLEV_RE, NPC_EC_NOERR, 7751 12, 14, 16, 0, 0, 7752 NPC_S_KPU2_PREHEADER, 8, 1, 7753 NPC_LID_LA, NPC_LT_LA_IH_8_ETHER, 7754 0, 7755 1, 0xff, 0, 0, 7756 }, 7757 { 7758 NPC_ERRLEV_RE, NPC_EC_NOERR, 7759 12, 14, 16, 0, 0, 7760 NPC_S_KPU2_PREHEADER, 4, 1, 7761 NPC_LID_LA, NPC_LT_LA_IH_4_ETHER, 7762 0, 7763 1, 0xff, 0, 0, 7764 }, 7765 { 7766 NPC_ERRLEV_RE, NPC_EC_NOERR, 7767 12, 14, 16, 0, 0, 7768 NPC_S_KPU2_PREHEADER, 2, 1, 7769 NPC_LID_LA, NPC_LT_LA_IH_2_ETHER, 7770 0, 7771 1, 0xff, 0, 0, 7772 }, 7773 { 7774 NPC_ERRLEV_LA, NPC_EC_IH_LENGTH, 7775 0, 0, 0, 0, 1, 7776 NPC_S_NA, 0, 1, 7777 NPC_LID_LA, NPC_LT_LA_ETHER, 7778 NPC_F_LA_L_UNK_ETYPE, 7779 0, 0, 0, 0, 7780 }, 7781 { 7782 NPC_ERRLEV_RE, NPC_EC_NOERR, 7783 4, 8, 16, 0, 0, 7784 NPC_S_KPU2_EXDSA, 12, 1, 7785 NPC_LID_LA, NPC_LT_LA_ETHER, 7786 0, 7787 0, 0, 0, 0, 7788 }, 7789 { 7790 NPC_ERRLEV_RE, NPC_EC_NOERR, 7791 4, 8, 16, 2, 0, 7792 NPC_S_KPU4_FDSA, 12, 1, 7793 NPC_LID_LA, NPC_LT_LA_ETHER, 7794 0, 7795 0, 0, 0, 0, 7796 }, 7797 { 7798 NPC_ERRLEV_LA, NPC_EC_EDSA_UNK, 7799 0, 0, 0, 0, 1, 7800 NPC_S_NA, 0, 1, 7801 NPC_LID_LA, NPC_LT_LA_ETHER, 7802 0, 7803 0, 0, 0, 0, 7804 }, 7805 { 7806 NPC_ERRLEV_RE, NPC_EC_NOERR, 7807 8, 0, 6, 3, 0, 7808 NPC_S_KPU5_IP, 30, 1, 7809 NPC_LID_LA, NPC_LT_LA_HIGIG2_ETHER, 7810 NPC_F_LA_U_HAS_HIGIG2, 7811 0, 0, 0, 0, 7812 }, 7813 { 7814 NPC_ERRLEV_RE, NPC_EC_NOERR, 7815 6, 0, 0, 3, 0, 7816 NPC_S_KPU5_IP6, 30, 1, 7817 NPC_LID_LA, NPC_LT_LA_HIGIG2_ETHER, 7818 NPC_F_LA_U_HAS_HIGIG2, 7819 0, 0, 0, 0, 7820 }, 7821 { 7822 NPC_ERRLEV_RE, NPC_EC_NOERR, 7823 0, 0, 0, 3, 0, 7824 NPC_S_KPU5_ARP, 30, 1, 7825 NPC_LID_LA, NPC_LT_LA_HIGIG2_ETHER, 7826 NPC_F_LA_U_HAS_HIGIG2, 7827 0, 0, 0, 0, 7828 }, 7829 { 7830 NPC_ERRLEV_RE, NPC_EC_NOERR, 7831 0, 0, 0, 3, 0, 7832 NPC_S_KPU5_RARP, 30, 1, 7833 NPC_LID_LA, NPC_LT_LA_HIGIG2_ETHER, 7834 NPC_F_LA_U_HAS_HIGIG2, 7835 0, 0, 0, 0, 7836 }, 7837 { 7838 NPC_ERRLEV_RE, NPC_EC_NOERR, 7839 0, 0, 0, 3, 0, 7840 NPC_S_KPU5_PTP, 30, 1, 7841 NPC_LID_LA, NPC_LT_LA_HIGIG2_ETHER, 7842 NPC_F_LA_U_HAS_HIGIG2, 7843 0, 0, 0, 0, 7844 }, 7845 { 7846 NPC_ERRLEV_RE, NPC_EC_NOERR, 7847 0, 0, 0, 3, 0, 7848 NPC_S_KPU5_FCOE, 30, 1, 7849 NPC_LID_LA, NPC_LT_LA_HIGIG2_ETHER, 7850 NPC_F_LA_U_HAS_HIGIG2, 7851 0, 0, 0, 0, 7852 }, 7853 { 7854 NPC_ERRLEV_RE, NPC_EC_NOERR, 7855 8, 12, 0, 0, 0, 7856 NPC_S_KPU2_CTAG2, 28, 1, 7857 NPC_LID_LA, NPC_LT_LA_HIGIG2_ETHER, 7858 NPC_F_LA_U_HAS_HIGIG2 | NPC_F_LA_U_HAS_TAG 7859 | NPC_F_LA_L_WITH_VLAN, 7860 0, 0, 0, 0, 7861 }, 7862 { 7863 NPC_ERRLEV_RE, NPC_EC_NOERR, 7864 4, 8, 0, 0, 0, 7865 NPC_S_KPU2_CTAG, 28, 1, 7866 NPC_LID_LA, NPC_LT_LA_HIGIG2_ETHER, 7867 NPC_F_LA_U_HAS_HIGIG2 | NPC_F_LA_U_HAS_TAG 7868 | NPC_F_LA_L_WITH_VLAN, 7869 0, 0, 0, 0, 7870 }, 7871 { 7872 NPC_ERRLEV_RE, NPC_EC_NOERR, 7873 4, 8, 22, 0, 0, 7874 NPC_S_KPU2_SBTAG, 28, 1, 7875 NPC_LID_LA, NPC_LT_LA_HIGIG2_ETHER, 7876 NPC_F_LA_U_HAS_HIGIG2 | NPC_F_LA_U_HAS_TAG 7877 | NPC_F_LA_L_WITH_VLAN, 7878 0, 0, 0, 0, 7879 }, 7880 { 7881 NPC_ERRLEV_RE, NPC_EC_NOERR, 7882 4, 8, 0, 0, 0, 7883 NPC_S_KPU2_QINQ, 28, 1, 7884 NPC_LID_LA, NPC_LT_LA_HIGIG2_ETHER, 7885 NPC_F_LA_U_HAS_HIGIG2 | NPC_F_LA_U_HAS_TAG 7886 | NPC_F_LA_L_WITH_VLAN, 7887 0, 0, 0, 0, 7888 }, 7889 { 7890 NPC_ERRLEV_RE, NPC_EC_NOERR, 7891 8, 12, 26, 0, 0, 7892 NPC_S_KPU2_ETAG, 28, 1, 7893 NPC_LID_LA, NPC_LT_LA_HIGIG2_ETHER, 7894 NPC_F_LA_U_HAS_HIGIG2 | NPC_F_LA_U_HAS_TAG 7895 | NPC_F_LA_L_WITH_ETAG, 7896 0, 0, 0, 0, 7897 }, 7898 { 7899 NPC_ERRLEV_RE, NPC_EC_NOERR, 7900 18, 22, 26, 0, 0, 7901 NPC_S_KPU2_ITAG, 28, 1, 7902 NPC_LID_LA, NPC_LT_LA_HIGIG2_ETHER, 7903 NPC_F_LA_U_HAS_HIGIG2 | NPC_F_LA_U_HAS_TAG 7904 | NPC_F_LA_L_WITH_ITAG, 7905 0, 0, 0, 0, 7906 }, 7907 { 7908 NPC_ERRLEV_RE, NPC_EC_NOERR, 7909 2, 6, 10, 2, 0, 7910 NPC_S_KPU4_MPLS, 30, 1, 7911 NPC_LID_LA, NPC_LT_LA_HIGIG2_ETHER, 7912 NPC_F_LA_U_HAS_HIGIG2 | NPC_F_LA_L_WITH_MPLS, 7913 0, 0, 0, 0, 7914 }, 7915 { 7916 NPC_ERRLEV_RE, NPC_EC_NOERR, 7917 2, 6, 10, 2, 0, 7918 NPC_S_KPU4_MPLS, 30, 1, 7919 NPC_LID_LA, NPC_LT_LA_HIGIG2_ETHER, 7920 NPC_F_LA_U_HAS_HIGIG2 | NPC_F_LA_L_WITH_MPLS, 7921 0, 0, 0, 0, 7922 }, 7923 { 7924 NPC_ERRLEV_RE, NPC_EC_NOERR, 7925 2, 0, 0, 2, 0, 7926 NPC_S_KPU4_NSH, 30, 1, 7927 NPC_LID_LA, NPC_LT_LA_HIGIG2_ETHER, 7928 NPC_F_LA_U_HAS_HIGIG2 | NPC_F_LA_L_WITH_NSH, 7929 0, 0, 0, 0, 7930 }, 7931 { 7932 NPC_ERRLEV_RE, NPC_EC_NOERR, 7933 0, 0, 0, 0, 1, 7934 NPC_S_NA, 0, 1, 7935 NPC_LID_LA, NPC_LT_LA_HIGIG2_ETHER, 7936 NPC_F_LA_U_HAS_HIGIG2 | NPC_F_LA_L_UNK_ETYPE, 7937 0, 0, 0, 0, 7938 }, 7939 { 7940 NPC_ERRLEV_RE, NPC_EC_NOERR, 7941 8, 0, 6, 3, 0, 7942 NPC_S_KPU5_IP, 38, 1, 7943 NPC_LID_LA, NPC_LT_LA_IH_NIX_HIGIG2_ETHER, 7944 NPC_F_LA_U_HAS_IH_NIX | NPC_F_LA_U_HAS_HIGIG2, 7945 0, 0, 0, 0, 7946 }, 7947 { 7948 NPC_ERRLEV_RE, NPC_EC_NOERR, 7949 6, 0, 0, 3, 0, 7950 NPC_S_KPU5_IP6, 38, 1, 7951 NPC_LID_LA, NPC_LT_LA_IH_NIX_HIGIG2_ETHER, 7952 NPC_F_LA_U_HAS_IH_NIX | NPC_F_LA_U_HAS_HIGIG2, 7953 0, 0, 0, 0, 7954 }, 7955 { 7956 NPC_ERRLEV_RE, NPC_EC_NOERR, 7957 0, 0, 0, 3, 0, 7958 NPC_S_KPU5_ARP, 38, 1, 7959 NPC_LID_LA, NPC_LT_LA_IH_NIX_HIGIG2_ETHER, 7960 NPC_F_LA_U_HAS_IH_NIX | NPC_F_LA_U_HAS_HIGIG2, 7961 0, 0, 0, 0, 7962 }, 7963 { 7964 NPC_ERRLEV_RE, NPC_EC_NOERR, 7965 0, 0, 0, 3, 0, 7966 NPC_S_KPU5_RARP, 38, 1, 7967 NPC_LID_LA, NPC_LT_LA_IH_NIX_HIGIG2_ETHER, 7968 NPC_F_LA_U_HAS_IH_NIX | NPC_F_LA_U_HAS_HIGIG2, 7969 0, 0, 0, 0, 7970 }, 7971 { 7972 NPC_ERRLEV_RE, NPC_EC_NOERR, 7973 0, 0, 0, 3, 0, 7974 NPC_S_KPU5_PTP, 38, 1, 7975 NPC_LID_LA, NPC_LT_LA_IH_NIX_HIGIG2_ETHER, 7976 NPC_F_LA_U_HAS_IH_NIX | NPC_F_LA_U_HAS_HIGIG2, 7977 0, 0, 0, 0, 7978 }, 7979 { 7980 NPC_ERRLEV_RE, NPC_EC_NOERR, 7981 0, 0, 0, 3, 0, 7982 NPC_S_KPU5_FCOE, 38, 1, 7983 NPC_LID_LA, NPC_LT_LA_IH_NIX_HIGIG2_ETHER, 7984 NPC_F_LA_U_HAS_IH_NIX | NPC_F_LA_U_HAS_HIGIG2, 7985 0, 0, 0, 0, 7986 }, 7987 { 7988 NPC_ERRLEV_RE, NPC_EC_NOERR, 7989 8, 12, 0, 0, 0, 7990 NPC_S_KPU2_CTAG2, 36, 1, 7991 NPC_LID_LA, NPC_LT_LA_IH_NIX_HIGIG2_ETHER, 7992 NPC_F_LA_U_HAS_IH_NIX | NPC_F_LA_U_HAS_HIGIG2 7993 | NPC_F_LA_U_HAS_TAG | NPC_F_LA_L_WITH_VLAN, 7994 0, 0, 0, 0, 7995 }, 7996 { 7997 NPC_ERRLEV_RE, NPC_EC_NOERR, 7998 4, 8, 0, 0, 0, 7999 NPC_S_KPU2_CTAG, 36, 1, 8000 NPC_LID_LA, NPC_LT_LA_IH_NIX_HIGIG2_ETHER, 8001 NPC_F_LA_U_HAS_IH_NIX | NPC_F_LA_U_HAS_HIGIG2 8002 | NPC_F_LA_U_HAS_TAG | NPC_F_LA_L_WITH_VLAN, 8003 0, 0, 0, 0, 8004 }, 8005 { 8006 NPC_ERRLEV_RE, NPC_EC_NOERR, 8007 4, 8, 22, 0, 0, 8008 NPC_S_KPU2_SBTAG, 36, 1, 8009 NPC_LID_LA, NPC_LT_LA_IH_NIX_HIGIG2_ETHER, 8010 NPC_F_LA_U_HAS_IH_NIX | NPC_F_LA_U_HAS_HIGIG2 8011 | NPC_F_LA_U_HAS_TAG | NPC_F_LA_L_WITH_VLAN, 8012 0, 0, 0, 0, 8013 }, 8014 { 8015 NPC_ERRLEV_RE, NPC_EC_NOERR, 8016 4, 8, 0, 0, 0, 8017 NPC_S_KPU2_QINQ, 36, 1, 8018 NPC_LID_LA, NPC_LT_LA_IH_NIX_HIGIG2_ETHER, 8019 NPC_F_LA_U_HAS_IH_NIX | NPC_F_LA_U_HAS_HIGIG2 8020 | NPC_F_LA_U_HAS_TAG | NPC_F_LA_L_WITH_VLAN, 8021 0, 0, 0, 0, 8022 }, 8023 { 8024 NPC_ERRLEV_RE, NPC_EC_NOERR, 8025 8, 12, 26, 0, 0, 8026 NPC_S_KPU2_ETAG, 36, 1, 8027 NPC_LID_LA, NPC_LT_LA_IH_NIX_HIGIG2_ETHER, 8028 NPC_F_LA_U_HAS_IH_NIX | NPC_F_LA_U_HAS_HIGIG2 8029 | NPC_F_LA_U_HAS_TAG | NPC_F_LA_L_WITH_ETAG, 8030 0, 0, 0, 0, 8031 }, 8032 { 8033 NPC_ERRLEV_RE, NPC_EC_NOERR, 8034 18, 22, 26, 0, 0, 8035 NPC_S_KPU2_ITAG, 36, 1, 8036 NPC_LID_LA, NPC_LT_LA_IH_NIX_HIGIG2_ETHER, 8037 NPC_F_LA_U_HAS_IH_NIX | NPC_F_LA_U_HAS_HIGIG2 8038 | NPC_F_LA_U_HAS_TAG | NPC_F_LA_L_WITH_ITAG, 8039 0, 0, 0, 0, 8040 }, 8041 { 8042 NPC_ERRLEV_RE, NPC_EC_NOERR, 8043 2, 6, 10, 2, 0, 8044 NPC_S_KPU4_MPLS, 38, 1, 8045 NPC_LID_LA, NPC_LT_LA_IH_NIX_HIGIG2_ETHER, 8046 NPC_F_LA_U_HAS_IH_NIX | NPC_F_LA_U_HAS_HIGIG2 8047 | NPC_F_LA_L_WITH_MPLS, 8048 0, 0, 0, 0, 8049 }, 8050 { 8051 NPC_ERRLEV_RE, NPC_EC_NOERR, 8052 2, 6, 10, 2, 0, 8053 NPC_S_KPU4_MPLS, 38, 1, 8054 NPC_LID_LA, NPC_LT_LA_IH_NIX_HIGIG2_ETHER, 8055 NPC_F_LA_U_HAS_IH_NIX | NPC_F_LA_U_HAS_HIGIG2 8056 | NPC_F_LA_L_WITH_MPLS, 8057 0, 0, 0, 0, 8058 }, 8059 { 8060 NPC_ERRLEV_RE, NPC_EC_NOERR, 8061 2, 0, 0, 2, 0, 8062 NPC_S_KPU4_NSH, 38, 1, 8063 NPC_LID_LA, NPC_LT_LA_IH_NIX_HIGIG2_ETHER, 8064 NPC_F_LA_U_HAS_IH_NIX | NPC_F_LA_U_HAS_HIGIG2 8065 | NPC_F_LA_L_WITH_NSH, 8066 0, 0, 0, 0, 8067 }, 8068 { 8069 NPC_ERRLEV_RE, NPC_EC_NOERR, 8070 0, 0, 0, 0, 1, 8071 NPC_S_NA, 0, 1, 8072 NPC_LID_LA, NPC_LT_LA_IH_NIX_HIGIG2_ETHER, 8073 NPC_F_LA_U_HAS_IH_NIX | NPC_F_LA_U_HAS_HIGIG2 8074 | NPC_F_LA_L_UNK_ETYPE, 8075 0, 0, 0, 0, 8076 }, 8077 { 8078 NPC_ERRLEV_LA, NPC_EC_L2_K1, 8079 0, 0, 0, 0, 1, 8080 NPC_S_NA, 0, 0, 8081 NPC_LID_LA, NPC_LT_NA, 8082 0, 8083 0, 0, 0, 0, 8084 }, 8085 }; 8086 8087 static const struct npc_kpu_profile_action kpu2_action_entries[] = { 8088 { 8089 NPC_ERRLEV_RE, NPC_EC_NOERR, 8090 8, 0, 6, 2, 0, 8091 NPC_S_KPU5_IP, 6, 1, 8092 NPC_LID_LB, NPC_LT_LB_CTAG, 8093 0, 8094 0, 0, 0, 0, 8095 }, 8096 { 8097 NPC_ERRLEV_RE, NPC_EC_NOERR, 8098 6, 0, 0, 2, 0, 8099 NPC_S_KPU5_IP6, 6, 1, 8100 NPC_LID_LB, NPC_LT_LB_CTAG, 8101 0, 8102 0, 0, 0, 0, 8103 }, 8104 { 8105 NPC_ERRLEV_RE, NPC_EC_NOERR, 8106 0, 0, 0, 2, 0, 8107 NPC_S_KPU5_ARP, 6, 1, 8108 NPC_LID_LB, NPC_LT_LB_CTAG, 8109 0, 8110 0, 0, 0, 0, 8111 }, 8112 { 8113 NPC_ERRLEV_RE, NPC_EC_NOERR, 8114 0, 0, 0, 2, 0, 8115 NPC_S_KPU5_RARP, 6, 1, 8116 NPC_LID_LB, NPC_LT_LB_CTAG, 8117 0, 8118 0, 0, 0, 0, 8119 }, 8120 { 8121 NPC_ERRLEV_RE, NPC_EC_NOERR, 8122 0, 0, 0, 2, 0, 8123 NPC_S_KPU5_PTP, 6, 1, 8124 NPC_LID_LB, NPC_LT_LB_CTAG, 8125 0, 8126 0, 0, 0, 0, 8127 }, 8128 { 8129 NPC_ERRLEV_RE, NPC_EC_NOERR, 8130 0, 0, 0, 2, 0, 8131 NPC_S_KPU5_FCOE, 6, 1, 8132 NPC_LID_LB, NPC_LT_LB_CTAG, 8133 0, 8134 0, 0, 0, 0, 8135 }, 8136 { 8137 NPC_ERRLEV_RE, NPC_EC_NOERR, 8138 2, 6, 10, 1, 0, 8139 NPC_S_KPU4_MPLS, 6, 1, 8140 NPC_LID_LB, NPC_LT_LB_CTAG, 8141 0, 8142 0, 0, 0, 0, 8143 }, 8144 { 8145 NPC_ERRLEV_RE, NPC_EC_NOERR, 8146 2, 6, 10, 1, 0, 8147 NPC_S_KPU4_MPLS, 6, 1, 8148 NPC_LID_LB, NPC_LT_LB_CTAG, 8149 0, 8150 0, 0, 0, 0, 8151 }, 8152 { 8153 NPC_ERRLEV_RE, NPC_EC_NOERR, 8154 2, 0, 0, 1, 0, 8155 NPC_S_KPU4_NSH, 6, 1, 8156 NPC_LID_LB, NPC_LT_LB_CTAG, 8157 0, 8158 0, 0, 0, 0, 8159 }, 8160 { 8161 NPC_ERRLEV_RE, NPC_EC_NOERR, 8162 0, 0, 0, 0, 1, 8163 NPC_S_NA, 0, 1, 8164 NPC_LID_LB, NPC_LT_LB_CTAG, 8165 NPC_F_LB_U_UNK_ETYPE, 8166 0, 0, 0, 0, 8167 }, 8168 { 8169 NPC_ERRLEV_RE, NPC_EC_NOERR, 8170 8, 0, 6, 2, 0, 8171 NPC_S_KPU5_IP, 10, 1, 8172 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8173 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_CTAG, 8174 0, 0, 0, 0, 8175 }, 8176 { 8177 NPC_ERRLEV_RE, NPC_EC_NOERR, 8178 6, 0, 0, 2, 0, 8179 NPC_S_KPU5_IP6, 10, 1, 8180 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8181 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_CTAG, 8182 0, 0, 0, 0, 8183 }, 8184 { 8185 NPC_ERRLEV_RE, NPC_EC_NOERR, 8186 0, 0, 0, 2, 0, 8187 NPC_S_KPU5_ARP, 10, 1, 8188 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8189 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_CTAG, 8190 0, 0, 0, 0, 8191 }, 8192 { 8193 NPC_ERRLEV_RE, NPC_EC_NOERR, 8194 0, 0, 0, 2, 0, 8195 NPC_S_KPU5_RARP, 10, 1, 8196 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8197 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_CTAG, 8198 0, 0, 0, 0, 8199 }, 8200 { 8201 NPC_ERRLEV_RE, NPC_EC_NOERR, 8202 0, 0, 0, 2, 0, 8203 NPC_S_KPU5_PTP, 10, 1, 8204 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8205 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_CTAG, 8206 0, 0, 0, 0, 8207 }, 8208 { 8209 NPC_ERRLEV_RE, NPC_EC_NOERR, 8210 0, 0, 0, 2, 0, 8211 NPC_S_KPU5_FCOE, 10, 1, 8212 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8213 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_CTAG, 8214 0, 0, 0, 0, 8215 }, 8216 { 8217 NPC_ERRLEV_RE, NPC_EC_NOERR, 8218 2, 6, 10, 1, 0, 8219 NPC_S_KPU4_MPLS, 10, 1, 8220 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8221 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_CTAG, 8222 0, 0, 0, 0, 8223 }, 8224 { 8225 NPC_ERRLEV_RE, NPC_EC_NOERR, 8226 2, 6, 10, 1, 0, 8227 NPC_S_KPU4_MPLS, 10, 1, 8228 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8229 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_CTAG, 8230 0, 0, 0, 0, 8231 }, 8232 { 8233 NPC_ERRLEV_RE, NPC_EC_NOERR, 8234 2, 0, 0, 1, 0, 8235 NPC_S_KPU4_NSH, 10, 1, 8236 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8237 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_CTAG, 8238 0, 0, 0, 0, 8239 }, 8240 { 8241 NPC_ERRLEV_RE, NPC_EC_NOERR, 8242 0, 0, 0, 0, 1, 8243 NPC_S_NA, 0, 1, 8244 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8245 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_CTAG_UNK, 8246 0, 0, 0, 0, 8247 }, 8248 { 8249 NPC_ERRLEV_RE, NPC_EC_NOERR, 8250 2, 6, 0, 0, 0, 8251 NPC_S_KPU3_CTAG, 10, 1, 8252 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8253 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_STAG_CTAG, 8254 0, 0, 0, 0, 8255 }, 8256 { 8257 NPC_ERRLEV_RE, NPC_EC_NOERR, 8258 2, 6, 0, 0, 0, 8259 NPC_S_KPU3_STAG, 10, 1, 8260 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8261 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_STAG_STAG, 8262 0, 0, 0, 0, 8263 }, 8264 { 8265 NPC_ERRLEV_RE, NPC_EC_NOERR, 8266 8, 0, 6, 2, 0, 8267 NPC_S_KPU5_IP, 24, 1, 8268 NPC_LID_LB, NPC_LT_LB_BTAG, 8269 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_ITAG, 8270 0, 0, 0, 0, 8271 }, 8272 { 8273 NPC_ERRLEV_RE, NPC_EC_NOERR, 8274 6, 0, 0, 2, 0, 8275 NPC_S_KPU5_IP6, 24, 1, 8276 NPC_LID_LB, NPC_LT_LB_BTAG, 8277 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_ITAG, 8278 0, 0, 0, 0, 8279 }, 8280 { 8281 NPC_ERRLEV_RE, NPC_EC_NOERR, 8282 0, 0, 0, 2, 0, 8283 NPC_S_KPU5_ARP, 24, 1, 8284 NPC_LID_LB, NPC_LT_LB_BTAG, 8285 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_ITAG, 8286 0, 0, 0, 0, 8287 }, 8288 { 8289 NPC_ERRLEV_RE, NPC_EC_NOERR, 8290 0, 0, 0, 2, 0, 8291 NPC_S_KPU5_RARP, 24, 1, 8292 NPC_LID_LB, NPC_LT_LB_BTAG, 8293 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_ITAG, 8294 0, 0, 0, 0, 8295 }, 8296 { 8297 NPC_ERRLEV_RE, NPC_EC_NOERR, 8298 0, 0, 0, 2, 0, 8299 NPC_S_KPU5_PTP, 24, 1, 8300 NPC_LID_LB, NPC_LT_LB_BTAG, 8301 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_ITAG, 8302 0, 0, 0, 0, 8303 }, 8304 { 8305 NPC_ERRLEV_RE, NPC_EC_NOERR, 8306 0, 0, 0, 2, 0, 8307 NPC_S_KPU5_FCOE, 24, 1, 8308 NPC_LID_LB, NPC_LT_LB_BTAG, 8309 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_ITAG, 8310 0, 0, 0, 0, 8311 }, 8312 { 8313 NPC_ERRLEV_RE, NPC_EC_NOERR, 8314 2, 6, 10, 1, 0, 8315 NPC_S_KPU4_MPLS, 24, 1, 8316 NPC_LID_LB, NPC_LT_LB_BTAG, 8317 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_ITAG, 8318 0, 0, 0, 0, 8319 }, 8320 { 8321 NPC_ERRLEV_RE, NPC_EC_NOERR, 8322 2, 6, 10, 1, 0, 8323 NPC_S_KPU4_MPLS, 24, 1, 8324 NPC_LID_LB, NPC_LT_LB_BTAG, 8325 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_ITAG, 8326 0, 0, 0, 0, 8327 }, 8328 { 8329 NPC_ERRLEV_RE, NPC_EC_NOERR, 8330 2, 0, 0, 1, 0, 8331 NPC_S_KPU4_NSH, 24, 1, 8332 NPC_LID_LB, NPC_LT_LB_BTAG, 8333 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_ITAG, 8334 0, 0, 0, 0, 8335 }, 8336 { 8337 NPC_ERRLEV_RE, NPC_EC_NOERR, 8338 2, 0, 0, 0, 0, 8339 NPC_S_KPU3_STAG, 24, 1, 8340 NPC_LID_LB, NPC_LT_LB_BTAG, 8341 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_ITAG_STAG, 8342 0, 0, 0, 0, 8343 }, 8344 { 8345 NPC_ERRLEV_RE, NPC_EC_NOERR, 8346 2, 0, 0, 0, 0, 8347 NPC_S_KPU3_CTAG, 24, 1, 8348 NPC_LID_LB, NPC_LT_LB_BTAG, 8349 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_ITAG_CTAG, 8350 0, 0, 0, 0, 8351 }, 8352 { 8353 NPC_ERRLEV_RE, NPC_EC_NOERR, 8354 0, 0, 0, 0, 1, 8355 NPC_S_NA, 0, 1, 8356 NPC_LID_LB, NPC_LT_LB_BTAG, 8357 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_ITAG_UNK, 8358 0, 0, 0, 0, 8359 }, 8360 { 8361 NPC_ERRLEV_RE, NPC_EC_NOERR, 8362 0, 0, 0, 0, 1, 8363 NPC_S_NA, 0, 1, 8364 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8365 NPC_F_LB_U_UNK_ETYPE, 8366 0, 0, 0, 0, 8367 }, 8368 { 8369 NPC_ERRLEV_RE, NPC_EC_NOERR, 8370 8, 0, 6, 2, 0, 8371 NPC_S_KPU5_IP, 10, 1, 8372 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8373 NPC_F_LB_U_MORE_TAG | NPC_F_LB_L_WITH_CTAG, 8374 0, 0, 0, 0, 8375 }, 8376 { 8377 NPC_ERRLEV_RE, NPC_EC_NOERR, 8378 6, 0, 0, 2, 0, 8379 NPC_S_KPU5_IP6, 10, 1, 8380 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8381 NPC_F_LB_U_MORE_TAG | NPC_F_LB_L_WITH_CTAG, 8382 0, 0, 0, 0, 8383 }, 8384 { 8385 NPC_ERRLEV_RE, NPC_EC_NOERR, 8386 0, 0, 0, 2, 0, 8387 NPC_S_KPU5_ARP, 10, 1, 8388 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8389 NPC_F_LB_U_MORE_TAG | NPC_F_LB_L_WITH_CTAG, 8390 0, 0, 0, 0, 8391 }, 8392 { 8393 NPC_ERRLEV_RE, NPC_EC_NOERR, 8394 0, 0, 0, 2, 0, 8395 NPC_S_KPU5_RARP, 10, 1, 8396 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8397 NPC_F_LB_U_MORE_TAG | NPC_F_LB_L_WITH_CTAG, 8398 0, 0, 0, 0, 8399 }, 8400 { 8401 NPC_ERRLEV_RE, NPC_EC_NOERR, 8402 0, 0, 0, 2, 0, 8403 NPC_S_KPU5_PTP, 10, 1, 8404 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8405 NPC_F_LB_U_MORE_TAG | NPC_F_LB_L_WITH_CTAG, 8406 0, 0, 0, 0, 8407 }, 8408 { 8409 NPC_ERRLEV_RE, NPC_EC_NOERR, 8410 0, 0, 0, 2, 0, 8411 NPC_S_KPU5_FCOE, 10, 1, 8412 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8413 NPC_F_LB_U_MORE_TAG | NPC_F_LB_L_WITH_CTAG, 8414 0, 0, 0, 0, 8415 }, 8416 { 8417 NPC_ERRLEV_RE, NPC_EC_NOERR, 8418 2, 6, 10, 1, 0, 8419 NPC_S_KPU4_MPLS, 10, 1, 8420 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8421 NPC_F_LB_U_MORE_TAG | NPC_F_LB_L_WITH_CTAG, 8422 0, 0, 0, 0, 8423 }, 8424 { 8425 NPC_ERRLEV_RE, NPC_EC_NOERR, 8426 2, 6, 10, 1, 0, 8427 NPC_S_KPU4_MPLS, 10, 1, 8428 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8429 NPC_F_LB_U_MORE_TAG | NPC_F_LB_L_WITH_CTAG, 8430 0, 0, 0, 0, 8431 }, 8432 { 8433 NPC_ERRLEV_RE, NPC_EC_NOERR, 8434 2, 0, 0, 1, 0, 8435 NPC_S_KPU4_NSH, 10, 1, 8436 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8437 NPC_F_LB_U_MORE_TAG | NPC_F_LB_L_WITH_CTAG, 8438 0, 0, 0, 0, 8439 }, 8440 { 8441 NPC_ERRLEV_RE, NPC_EC_NOERR, 8442 0, 0, 0, 0, 1, 8443 NPC_S_NA, 0, 1, 8444 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8445 NPC_F_LB_U_MORE_TAG | NPC_F_LB_L_WITH_CTAG_UNK, 8446 0, 0, 0, 0, 8447 }, 8448 { 8449 NPC_ERRLEV_RE, NPC_EC_NOERR, 8450 2, 6, 0, 0, 0, 8451 NPC_S_KPU3_CTAG, 10, 1, 8452 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8453 NPC_F_LB_U_MORE_TAG | NPC_F_LB_L_WITH_QINQ_CTAG, 8454 0, 0, 0, 0, 8455 }, 8456 { 8457 NPC_ERRLEV_RE, NPC_EC_NOERR, 8458 2, 6, 0, 0, 0, 8459 NPC_S_KPU3_QINQ, 10, 1, 8460 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8461 NPC_F_LB_U_MORE_TAG | NPC_F_LB_L_WITH_QINQ_QINQ, 8462 0, 0, 0, 0, 8463 }, 8464 { 8465 NPC_ERRLEV_RE, NPC_EC_NOERR, 8466 0, 0, 0, 0, 1, 8467 NPC_S_NA, 0, 1, 8468 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8469 NPC_F_LB_U_UNK_ETYPE, 8470 0, 0, 0, 0, 8471 }, 8472 { 8473 NPC_ERRLEV_RE, NPC_EC_NOERR, 8474 8, 0, 6, 2, 0, 8475 NPC_S_KPU5_IP, 10, 1, 8476 NPC_LID_LB, NPC_LT_LB_ETAG, 8477 0, 8478 0, 0, 0, 0, 8479 }, 8480 { 8481 NPC_ERRLEV_RE, NPC_EC_NOERR, 8482 6, 0, 0, 2, 0, 8483 NPC_S_KPU5_IP6, 10, 1, 8484 NPC_LID_LB, NPC_LT_LB_ETAG, 8485 0, 8486 0, 0, 0, 0, 8487 }, 8488 { 8489 NPC_ERRLEV_RE, NPC_EC_NOERR, 8490 0, 0, 0, 2, 0, 8491 NPC_S_KPU5_ARP, 10, 1, 8492 NPC_LID_LB, NPC_LT_LB_ETAG, 8493 0, 8494 0, 0, 0, 0, 8495 }, 8496 { 8497 NPC_ERRLEV_RE, NPC_EC_NOERR, 8498 0, 0, 0, 2, 0, 8499 NPC_S_KPU5_RARP, 10, 1, 8500 NPC_LID_LB, NPC_LT_LB_ETAG, 8501 0, 8502 0, 0, 0, 0, 8503 }, 8504 { 8505 NPC_ERRLEV_RE, NPC_EC_NOERR, 8506 0, 0, 0, 2, 0, 8507 NPC_S_KPU5_PTP, 10, 1, 8508 NPC_LID_LB, NPC_LT_LB_ETAG, 8509 0, 8510 0, 0, 0, 0, 8511 }, 8512 { 8513 NPC_ERRLEV_RE, NPC_EC_NOERR, 8514 0, 0, 0, 2, 0, 8515 NPC_S_KPU5_FCOE, 10, 1, 8516 NPC_LID_LB, NPC_LT_LB_ETAG, 8517 0, 8518 0, 0, 0, 0, 8519 }, 8520 { 8521 NPC_ERRLEV_RE, NPC_EC_NOERR, 8522 2, 6, 10, 1, 0, 8523 NPC_S_KPU4_MPLS, 10, 1, 8524 NPC_LID_LB, NPC_LT_LB_ETAG, 8525 1, 8526 0, 0, 0, 0, 8527 }, 8528 { 8529 NPC_ERRLEV_RE, NPC_EC_NOERR, 8530 2, 6, 10, 1, 0, 8531 NPC_S_KPU4_MPLS, 10, 1, 8532 NPC_LID_LB, NPC_LT_LB_ETAG, 8533 2, 8534 0, 0, 0, 0, 8535 }, 8536 { 8537 NPC_ERRLEV_RE, NPC_EC_NOERR, 8538 2, 6, 10, 1, 0, 8539 NPC_S_KPU4_NSH, 10, 1, 8540 NPC_LID_LB, NPC_LT_LB_ETAG, 8541 2, 8542 0, 0, 0, 0, 8543 }, 8544 { 8545 NPC_ERRLEV_RE, NPC_EC_NOERR, 8546 2, 0, 0, 0, 0, 8547 NPC_S_KPU3_CTAG, 10, 1, 8548 NPC_LID_LB, NPC_LT_LB_ETAG, 8549 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_CTAG, 8550 0, 0, 0, 0, 8551 }, 8552 { 8553 NPC_ERRLEV_RE, NPC_EC_NOERR, 8554 16, 20, 24, 0, 0, 8555 NPC_S_KPU3_ITAG, 14, 1, 8556 NPC_LID_LB, NPC_LT_LB_ETAG, 8557 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_BTAG_ITAG, 8558 0, 0, 0, 0, 8559 }, 8560 { 8561 NPC_ERRLEV_RE, NPC_EC_NOERR, 8562 2, 6, 0, 0, 0, 8563 NPC_S_KPU3_STAG, 10, 1, 8564 NPC_LID_LB, NPC_LT_LB_ETAG, 8565 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_STAG, 8566 0, 0, 0, 0, 8567 }, 8568 { 8569 NPC_ERRLEV_RE, NPC_EC_NOERR, 8570 2, 6, 0, 0, 0, 8571 NPC_S_KPU3_QINQ, 10, 1, 8572 NPC_LID_LB, NPC_LT_LB_ETAG, 8573 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_QINQ, 8574 0, 0, 0, 0, 8575 }, 8576 { 8577 NPC_ERRLEV_RE, NPC_EC_NOERR, 8578 8, 0, 6, 2, 0, 8579 NPC_S_KPU5_IP, 28, 1, 8580 NPC_LID_LB, NPC_LT_LB_ETAG, 8581 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_ITAG, 8582 0, 0, 0, 0, 8583 }, 8584 { 8585 NPC_ERRLEV_RE, NPC_EC_NOERR, 8586 6, 0, 0, 2, 0, 8587 NPC_S_KPU5_IP6, 28, 1, 8588 NPC_LID_LB, NPC_LT_LB_ETAG, 8589 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_ITAG, 8590 0, 0, 0, 0, 8591 }, 8592 { 8593 NPC_ERRLEV_RE, NPC_EC_NOERR, 8594 0, 0, 0, 2, 0, 8595 NPC_S_KPU5_ARP, 28, 1, 8596 NPC_LID_LB, NPC_LT_LB_ETAG, 8597 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_ITAG, 8598 0, 0, 0, 0, 8599 }, 8600 { 8601 NPC_ERRLEV_RE, NPC_EC_NOERR, 8602 2, 0, 0, 0, 0, 8603 NPC_S_KPU3_STAG, 28, 1, 8604 NPC_LID_LB, NPC_LT_LB_ETAG, 8605 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_ITAG_STAG, 8606 0, 0, 0, 0, 8607 }, 8608 { 8609 NPC_ERRLEV_RE, NPC_EC_NOERR, 8610 2, 0, 0, 0, 0, 8611 NPC_S_KPU3_CTAG, 28, 1, 8612 NPC_LID_LB, NPC_LT_LB_ETAG, 8613 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_ITAG_CTAG, 8614 0, 0, 0, 0, 8615 }, 8616 { 8617 NPC_ERRLEV_RE, NPC_EC_NOERR, 8618 0, 0, 0, 0, 1, 8619 NPC_S_NA, 0, 1, 8620 NPC_LID_LB, NPC_LT_LB_ETAG, 8621 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_ITAG_UNK, 8622 0, 0, 0, 0, 8623 }, 8624 { 8625 NPC_ERRLEV_RE, NPC_EC_NOERR, 8626 0, 0, 0, 0, 1, 8627 NPC_S_NA, 0, 1, 8628 NPC_LID_LB, NPC_LT_LB_ETAG, 8629 NPC_F_LB_U_UNK_ETYPE, 8630 0, 0, 0, 0, 8631 }, 8632 { 8633 NPC_ERRLEV_RE, NPC_EC_NOERR, 8634 8, 0, 6, 2, 0, 8635 NPC_S_KPU5_IP, 20, 1, 8636 NPC_LID_LB, NPC_LT_LB_ITAG, 8637 0, 8638 0, 0, 0, 0, 8639 }, 8640 { 8641 NPC_ERRLEV_RE, NPC_EC_NOERR, 8642 6, 0, 0, 2, 0, 8643 NPC_S_KPU5_IP6, 20, 1, 8644 NPC_LID_LB, NPC_LT_LB_ITAG, 8645 0, 8646 0, 0, 0, 0, 8647 }, 8648 { 8649 NPC_ERRLEV_RE, NPC_EC_NOERR, 8650 0, 0, 0, 2, 0, 8651 NPC_S_KPU5_ARP, 20, 1, 8652 NPC_LID_LB, NPC_LT_LB_ITAG, 8653 0, 8654 0, 0, 0, 0, 8655 }, 8656 { 8657 NPC_ERRLEV_RE, NPC_EC_NOERR, 8658 0, 0, 0, 2, 0, 8659 NPC_S_KPU5_RARP, 20, 1, 8660 NPC_LID_LB, NPC_LT_LB_ITAG, 8661 0, 8662 0, 0, 0, 0, 8663 }, 8664 { 8665 NPC_ERRLEV_RE, NPC_EC_NOERR, 8666 8, 0, 6, 2, 0, 8667 NPC_S_KPU5_IP, 28, 1, 8668 NPC_LID_LB, NPC_LT_LB_ITAG, 8669 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_STAG_CTAG, 8670 0, 0, 0, 0, 8671 }, 8672 { 8673 NPC_ERRLEV_RE, NPC_EC_NOERR, 8674 6, 0, 0, 2, 0, 8675 NPC_S_KPU5_IP6, 28, 1, 8676 NPC_LID_LB, NPC_LT_LB_ITAG, 8677 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_STAG_CTAG, 8678 0, 0, 0, 0, 8679 }, 8680 { 8681 NPC_ERRLEV_RE, NPC_EC_NOERR, 8682 0, 0, 0, 2, 0, 8683 NPC_S_KPU5_ARP, 28, 1, 8684 NPC_LID_LB, NPC_LT_LB_ITAG, 8685 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_STAG_CTAG, 8686 0, 0, 0, 0, 8687 }, 8688 { 8689 NPC_ERRLEV_LB, NPC_EC_L2_K3_ETYPE_UNK, 8690 0, 0, 0, 0, 1, 8691 NPC_S_NA, 0, 0, 8692 NPC_LID_LB, NPC_LT_NA, 8693 0, 8694 0, 0, 0, 0, 8695 }, 8696 { 8697 NPC_ERRLEV_RE, NPC_EC_NOERR, 8698 8, 0, 6, 2, 0, 8699 NPC_S_KPU5_IP, 24, 1, 8700 NPC_LID_LB, NPC_LT_LB_ITAG, 8701 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_STAG, 8702 0, 0, 0, 0, 8703 }, 8704 { 8705 NPC_ERRLEV_RE, NPC_EC_NOERR, 8706 6, 0, 0, 2, 0, 8707 NPC_S_KPU5_IP6, 24, 1, 8708 NPC_LID_LB, NPC_LT_LB_ITAG, 8709 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_STAG, 8710 0, 0, 0, 0, 8711 }, 8712 { 8713 NPC_ERRLEV_RE, NPC_EC_NOERR, 8714 0, 0, 0, 2, 0, 8715 NPC_S_KPU5_ARP, 24, 1, 8716 NPC_LID_LB, NPC_LT_LB_ITAG, 8717 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_STAG, 8718 0, 0, 0, 0, 8719 }, 8720 { 8721 NPC_ERRLEV_LB, NPC_EC_L2_K3_ETYPE_UNK, 8722 0, 0, 0, 0, 1, 8723 NPC_S_NA, 0, 0, 8724 NPC_LID_LB, NPC_LT_NA, 8725 0, 8726 0, 0, 0, 0, 8727 }, 8728 { 8729 NPC_ERRLEV_RE, NPC_EC_NOERR, 8730 8, 0, 6, 2, 0, 8731 NPC_S_KPU5_IP, 24, 1, 8732 NPC_LID_LB, NPC_LT_LB_ITAG, 8733 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_CTAG, 8734 0, 0, 0, 0, 8735 }, 8736 { 8737 NPC_ERRLEV_RE, NPC_EC_NOERR, 8738 6, 0, 0, 2, 0, 8739 NPC_S_KPU5_IP6, 24, 1, 8740 NPC_LID_LB, NPC_LT_LB_ITAG, 8741 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_CTAG, 8742 0, 0, 0, 0, 8743 }, 8744 { 8745 NPC_ERRLEV_RE, NPC_EC_NOERR, 8746 0, 0, 0, 2, 0, 8747 NPC_S_KPU5_ARP, 24, 1, 8748 NPC_LID_LB, NPC_LT_LB_ITAG, 8749 NPC_F_LB_U_MORE_TAG|NPC_F_LB_L_WITH_CTAG, 8750 0, 0, 0, 0, 8751 }, 8752 { 8753 NPC_ERRLEV_LB, NPC_EC_L2_K3_ETYPE_UNK, 8754 0, 0, 0, 0, 1, 8755 NPC_S_NA, 0, 0, 8756 NPC_LID_LB, NPC_LT_NA, 8757 0, 8758 0, 0, 0, 0, 8759 }, 8760 { 8761 NPC_ERRLEV_LB, NPC_EC_L2_K3_ETYPE_UNK, 8762 0, 0, 0, 0, 1, 8763 NPC_S_NA, 0, 0, 8764 NPC_LID_LB, NPC_LT_NA, 8765 0, 8766 0, 0, 0, 0, 8767 }, 8768 { 8769 NPC_ERRLEV_RE, NPC_EC_NOERR, 8770 8, 0, 6, 2, 0, 8771 NPC_S_KPU5_IP, 10, 1, 8772 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8773 0, 8774 0, 0, 0, 0, 8775 }, 8776 { 8777 NPC_ERRLEV_RE, NPC_EC_NOERR, 8778 6, 0, 0, 2, 0, 8779 NPC_S_KPU5_IP6, 10, 1, 8780 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8781 0, 8782 0, 0, 0, 0, 8783 }, 8784 { 8785 NPC_ERRLEV_RE, NPC_EC_NOERR, 8786 0, 0, 0, 2, 0, 8787 NPC_S_KPU5_ARP, 10, 1, 8788 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8789 0, 8790 0, 0, 0, 0, 8791 }, 8792 { 8793 NPC_ERRLEV_RE, NPC_EC_NOERR, 8794 0, 0, 0, 2, 0, 8795 NPC_S_KPU5_RARP, 10, 1, 8796 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8797 0, 8798 0, 0, 0, 0, 8799 }, 8800 { 8801 NPC_ERRLEV_RE, NPC_EC_NOERR, 8802 0, 0, 0, 2, 0, 8803 NPC_S_KPU5_PTP, 10, 1, 8804 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8805 0, 8806 0, 0, 0, 0, 8807 }, 8808 { 8809 NPC_ERRLEV_RE, NPC_EC_NOERR, 8810 0, 0, 0, 2, 0, 8811 NPC_S_KPU5_FCOE, 10, 1, 8812 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8813 0, 8814 0, 0, 0, 0, 8815 }, 8816 { 8817 NPC_ERRLEV_RE, NPC_EC_NOERR, 8818 2, 6, 10, 1, 0, 8819 NPC_S_KPU4_MPLS, 10, 1, 8820 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8821 0, 8822 0, 0, 0, 0, 8823 }, 8824 { 8825 NPC_ERRLEV_RE, NPC_EC_NOERR, 8826 2, 6, 10, 1, 0, 8827 NPC_S_KPU4_MPLS, 10, 1, 8828 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8829 0, 8830 0, 0, 0, 0, 8831 }, 8832 { 8833 NPC_ERRLEV_RE, NPC_EC_NOERR, 8834 2, 0, 0, 1, 0, 8835 NPC_S_KPU4_NSH, 10, 1, 8836 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8837 0, 8838 0, 0, 0, 0, 8839 }, 8840 { 8841 NPC_ERRLEV_RE, NPC_EC_NOERR, 8842 2, 6, 0, 0, 0, 8843 NPC_S_KPU3_QINQ, 10, 1, 8844 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8845 NPC_F_LB_U_MORE_TAG | NPC_F_LB_L_WITH_QINQ_QINQ, 8846 0, 0, 0, 0, 8847 }, 8848 { 8849 NPC_ERRLEV_RE, NPC_EC_NOERR, 8850 0, 0, 0, 0, 1, 8851 NPC_S_NA, 0, 1, 8852 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 8853 NPC_F_LB_U_UNK_ETYPE, 8854 0, 0, 0, 0, 8855 }, 8856 { 8857 NPC_ERRLEV_RE, NPC_EC_NOERR, 8858 8, 0, 6, 2, 0, 8859 NPC_S_KPU5_IP, 14, 0, 8860 NPC_LID_LB, NPC_LT_NA, 8861 0, 8862 0, 0, 0, 0, 8863 }, 8864 { 8865 NPC_ERRLEV_RE, NPC_EC_NOERR, 8866 6, 0, 0, 2, 0, 8867 NPC_S_KPU5_IP6, 14, 0, 8868 NPC_LID_LB, NPC_LT_NA, 8869 0, 8870 0, 0, 0, 0, 8871 }, 8872 { 8873 NPC_ERRLEV_RE, NPC_EC_NOERR, 8874 0, 0, 0, 2, 0, 8875 NPC_S_KPU5_ARP, 14, 0, 8876 NPC_LID_LB, NPC_LT_NA, 8877 0, 8878 0, 0, 0, 0, 8879 }, 8880 { 8881 NPC_ERRLEV_RE, NPC_EC_NOERR, 8882 0, 0, 0, 2, 0, 8883 NPC_S_KPU5_RARP, 14, 0, 8884 NPC_LID_LB, NPC_LT_NA, 8885 0, 8886 0, 0, 0, 0, 8887 }, 8888 { 8889 NPC_ERRLEV_RE, NPC_EC_NOERR, 8890 0, 0, 0, 2, 0, 8891 NPC_S_KPU5_PTP, 14, 0, 8892 NPC_LID_LB, NPC_LT_NA, 8893 0, 8894 0, 0, 0, 0, 8895 }, 8896 { 8897 NPC_ERRLEV_RE, NPC_EC_NOERR, 8898 0, 0, 0, 2, 0, 8899 NPC_S_KPU5_FCOE, 14, 0, 8900 NPC_LID_LB, NPC_LT_NA, 8901 0, 8902 0, 0, 0, 0, 8903 }, 8904 { 8905 NPC_ERRLEV_RE, NPC_EC_NOERR, 8906 2, 6, 0, 0, 0, 8907 NPC_S_KPU3_CTAG_C, 14, 0, 8908 NPC_LID_LB, NPC_LT_NA, 8909 0, 8910 0, 0, 0, 0, 8911 }, 8912 { 8913 NPC_ERRLEV_RE, NPC_EC_NOERR, 8914 2, 6, 20, 0, 0, 8915 NPC_S_KPU3_STAG_C, 14, 0, 8916 NPC_LID_LB, NPC_LT_NA, 8917 0, 8918 0, 0, 0, 0, 8919 }, 8920 { 8921 NPC_ERRLEV_RE, NPC_EC_NOERR, 8922 2, 6, 0, 0, 0, 8923 NPC_S_KPU3_QINQ_C, 14, 0, 8924 NPC_LID_LB, NPC_LT_NA, 8925 0, 8926 0, 0, 0, 0, 8927 }, 8928 { 8929 NPC_ERRLEV_RE, NPC_EC_NOERR, 8930 2, 6, 10, 1, 0, 8931 NPC_S_KPU4_MPLS, 14, 0, 8932 NPC_LID_LB, NPC_LT_NA, 8933 0, 8934 0, 0, 0, 0, 8935 }, 8936 { 8937 NPC_ERRLEV_RE, NPC_EC_NOERR, 8938 2, 6, 10, 1, 0, 8939 NPC_S_KPU4_MPLS, 14, 0, 8940 NPC_LID_LB, NPC_LT_NA, 8941 0, 8942 0, 0, 0, 0, 8943 }, 8944 { 8945 NPC_ERRLEV_RE, NPC_EC_NOERR, 8946 2, 0, 0, 1, 0, 8947 NPC_S_KPU4_NSH, 14, 0, 8948 NPC_LID_LB, NPC_LT_NA, 8949 0, 8950 0, 0, 0, 0, 8951 }, 8952 { 8953 NPC_ERRLEV_RE, NPC_EC_NOERR, 8954 8, 0, 6, 2, 0, 8955 NPC_S_KPU5_IP, 18, 1, 8956 NPC_LID_LB, NPC_LT_LB_EDSA, 8957 NPC_F_LB_L_EDSA, 8958 0, 0, 0, 0, 8959 }, 8960 { 8961 NPC_ERRLEV_RE, NPC_EC_NOERR, 8962 6, 0, 0, 2, 0, 8963 NPC_S_KPU5_IP6, 18, 1, 8964 NPC_LID_LB, NPC_LT_LB_EDSA, 8965 NPC_F_LB_L_EDSA, 8966 0, 0, 0, 0, 8967 }, 8968 { 8969 NPC_ERRLEV_RE, NPC_EC_NOERR, 8970 0, 0, 0, 2, 0, 8971 NPC_S_KPU5_ARP, 18, 1, 8972 NPC_LID_LB, NPC_LT_LB_EDSA, 8973 NPC_F_LB_L_EDSA, 8974 0, 0, 0, 0, 8975 }, 8976 { 8977 NPC_ERRLEV_RE, NPC_EC_NOERR, 8978 8, 0, 6, 2, 0, 8979 NPC_S_KPU5_RARP, 18, 1, 8980 NPC_LID_LB, NPC_LT_LB_EDSA, 8981 NPC_F_LB_L_EDSA, 8982 0, 0, 0, 0, 8983 }, 8984 { 8985 NPC_ERRLEV_RE, NPC_EC_NOERR, 8986 6, 0, 0, 2, 0, 8987 NPC_S_KPU5_PTP, 18, 1, 8988 NPC_LID_LB, NPC_LT_LB_EDSA, 8989 NPC_F_LB_L_EDSA, 8990 0, 0, 0, 0, 8991 }, 8992 { 8993 NPC_ERRLEV_RE, NPC_EC_NOERR, 8994 0, 0, 0, 2, 0, 8995 NPC_S_KPU5_FCOE, 18, 1, 8996 NPC_LID_LB, NPC_LT_LB_EDSA, 8997 NPC_F_LB_L_EDSA, 8998 0, 0, 0, 0, 8999 }, 9000 { 9001 NPC_ERRLEV_RE, NPC_EC_NOERR, 9002 4, 8, 0, 0, 0, 9003 NPC_S_KPU3_CTAG, 16, 1, 9004 NPC_LID_LB, NPC_LT_LB_EDSA_VLAN, 9005 NPC_F_LB_L_EDSA_VLAN, 9006 0, 0, 0, 0, 9007 }, 9008 { 9009 NPC_ERRLEV_RE, NPC_EC_NOERR, 9010 0, 0, 0, 0, 1, 9011 NPC_S_NA, 0, 1, 9012 NPC_LID_LB, NPC_LT_LB_EDSA, 9013 NPC_F_LB_U_UNK_ETYPE | NPC_F_LB_L_EDSA, 9014 0, 0, 0, 0, 9015 }, 9016 { 9017 NPC_ERRLEV_RE, NPC_EC_NOERR, 9018 8, 0, 6, 2, 0, 9019 NPC_S_KPU5_IP, 10, 1, 9020 NPC_LID_LB, NPC_LT_LB_EXDSA, 9021 NPC_F_LB_L_EXDSA, 9022 0, 0, 0, 0, 9023 }, 9024 { 9025 NPC_ERRLEV_RE, NPC_EC_NOERR, 9026 6, 0, 0, 2, 0, 9027 NPC_S_KPU5_IP6, 10, 1, 9028 NPC_LID_LB, NPC_LT_LB_EXDSA, 9029 NPC_F_LB_L_EXDSA, 9030 0, 0, 0, 0, 9031 }, 9032 { 9033 NPC_ERRLEV_RE, NPC_EC_NOERR, 9034 0, 0, 0, 2, 0, 9035 NPC_S_KPU5_ARP, 10, 1, 9036 NPC_LID_LB, NPC_LT_LB_EXDSA, 9037 NPC_F_LB_L_EXDSA, 9038 0, 0, 0, 0, 9039 }, 9040 { 9041 NPC_ERRLEV_RE, NPC_EC_NOERR, 9042 8, 0, 6, 2, 0, 9043 NPC_S_KPU5_RARP, 10, 1, 9044 NPC_LID_LB, NPC_LT_LB_EXDSA, 9045 NPC_F_LB_L_EXDSA, 9046 0, 0, 0, 0, 9047 }, 9048 { 9049 NPC_ERRLEV_RE, NPC_EC_NOERR, 9050 6, 0, 0, 2, 0, 9051 NPC_S_KPU5_PTP, 10, 1, 9052 NPC_LID_LB, NPC_LT_LB_EXDSA, 9053 NPC_F_LB_L_EXDSA, 9054 0, 0, 0, 0, 9055 }, 9056 { 9057 NPC_ERRLEV_RE, NPC_EC_NOERR, 9058 0, 0, 0, 2, 0, 9059 NPC_S_KPU5_FCOE, 10, 1, 9060 NPC_LID_LB, NPC_LT_LB_EXDSA, 9061 NPC_F_LB_L_EXDSA, 9062 0, 0, 0, 0, 9063 }, 9064 { 9065 NPC_ERRLEV_RE, NPC_EC_NOERR, 9066 4, 8, 0, 0, 0, 9067 NPC_S_KPU3_CTAG, 8, 1, 9068 NPC_LID_LB, NPC_LT_LB_EXDSA_VLAN, 9069 NPC_F_LB_L_EXDSA_VLAN, 9070 0, 0, 0, 0, 9071 }, 9072 { 9073 NPC_ERRLEV_RE, NPC_EC_NOERR, 9074 0, 0, 0, 0, 1, 9075 NPC_S_NA, 0, 1, 9076 NPC_LID_LB, NPC_LT_LB_EXDSA, 9077 NPC_F_LB_U_UNK_ETYPE | NPC_F_LB_L_EXDSA, 9078 0, 0, 0, 0, 9079 }, 9080 { 9081 NPC_ERRLEV_LB, NPC_EC_L2_K3, 9082 0, 0, 0, 0, 1, 9083 NPC_S_NA, 0, 0, 9084 NPC_LID_LB, NPC_LT_NA, 9085 0, 9086 0, 0, 0, 0, 9087 }, 9088 }; 9089 9090 static const struct npc_kpu_profile_action kpu3_action_entries[] = { 9091 { 9092 NPC_ERRLEV_RE, NPC_EC_NOERR, 9093 8, 0, 6, 1, 0, 9094 NPC_S_KPU5_IP, 4, 0, 9095 NPC_LID_LB, NPC_LT_NA, 9096 0, 9097 0, 0, 0, 0, 9098 }, 9099 { 9100 NPC_ERRLEV_RE, NPC_EC_NOERR, 9101 6, 0, 0, 1, 0, 9102 NPC_S_KPU5_IP6, 4, 0, 9103 NPC_LID_LB, NPC_LT_NA, 9104 0, 9105 0, 0, 0, 0, 9106 }, 9107 { 9108 NPC_ERRLEV_RE, NPC_EC_NOERR, 9109 0, 0, 0, 1, 0, 9110 NPC_S_KPU5_ARP, 4, 0, 9111 NPC_LID_LB, NPC_LT_NA, 9112 0, 9113 0, 0, 0, 0, 9114 }, 9115 { 9116 NPC_ERRLEV_RE, NPC_EC_NOERR, 9117 0, 0, 0, 1, 0, 9118 NPC_S_KPU5_RARP, 4, 0, 9119 NPC_LID_LB, NPC_LT_NA, 9120 0, 9121 0, 0, 0, 0, 9122 }, 9123 { 9124 NPC_ERRLEV_RE, NPC_EC_NOERR, 9125 0, 0, 0, 1, 0, 9126 NPC_S_KPU5_PTP, 4, 0, 9127 NPC_LID_LB, NPC_LT_NA, 9128 0, 9129 0, 0, 0, 0, 9130 }, 9131 { 9132 NPC_ERRLEV_RE, NPC_EC_NOERR, 9133 0, 0, 0, 1, 0, 9134 NPC_S_KPU5_FCOE, 4, 0, 9135 NPC_LID_LB, NPC_LT_NA, 9136 0, 9137 0, 0, 0, 0, 9138 }, 9139 { 9140 NPC_ERRLEV_RE, NPC_EC_NOERR, 9141 2, 6, 10, 0, 0, 9142 NPC_S_KPU4_MPLS, 4, 0, 9143 NPC_LID_LB, NPC_LT_NA, 9144 0, 9145 0, 0, 0, 0, 9146 }, 9147 { 9148 NPC_ERRLEV_RE, NPC_EC_NOERR, 9149 2, 6, 10, 0, 0, 9150 NPC_S_KPU4_MPLS, 4, 0, 9151 NPC_LID_LB, NPC_LT_NA, 9152 0, 9153 0, 0, 0, 0, 9154 }, 9155 { 9156 NPC_ERRLEV_RE, NPC_EC_NOERR, 9157 2, 0, 0, 0, 0, 9158 NPC_S_KPU4_NSH, 4, 0, 9159 NPC_LID_LB, NPC_LT_NA, 9160 0, 9161 0, 0, 0, 0, 9162 }, 9163 { 9164 NPC_ERRLEV_LB, NPC_EC_L2_K3_ETYPE_UNK, 9165 0, 0, 0, 0, 1, 9166 NPC_S_NA, 0, 0, 9167 NPC_LID_LB, NPC_LT_NA, 9168 0, 9169 0, 0, 0, 0, 9170 }, 9171 { 9172 NPC_ERRLEV_RE, NPC_EC_NOERR, 9173 8, 0, 6, 1, 0, 9174 NPC_S_KPU5_IP, 8, 0, 9175 NPC_LID_LB, NPC_LT_NA, 9176 0, 9177 0, 0, 0, 0, 9178 }, 9179 { 9180 NPC_ERRLEV_RE, NPC_EC_NOERR, 9181 6, 0, 0, 1, 0, 9182 NPC_S_KPU5_IP6, 8, 0, 9183 NPC_LID_LB, NPC_LT_NA, 9184 0, 9185 0, 0, 0, 0, 9186 }, 9187 { 9188 NPC_ERRLEV_RE, NPC_EC_NOERR, 9189 0, 0, 0, 1, 0, 9190 NPC_S_KPU5_ARP, 8, 0, 9191 NPC_LID_LB, NPC_LT_NA, 9192 0, 9193 0, 0, 0, 0, 9194 }, 9195 { 9196 NPC_ERRLEV_RE, NPC_EC_NOERR, 9197 0, 0, 0, 1, 0, 9198 NPC_S_KPU5_RARP, 8, 0, 9199 NPC_LID_LB, NPC_LT_NA, 9200 0, 9201 0, 0, 0, 0, 9202 }, 9203 { 9204 NPC_ERRLEV_RE, NPC_EC_NOERR, 9205 0, 0, 0, 1, 0, 9206 NPC_S_KPU5_PTP, 8, 0, 9207 NPC_LID_LB, NPC_LT_NA, 9208 0, 9209 0, 0, 0, 0, 9210 }, 9211 { 9212 NPC_ERRLEV_RE, NPC_EC_NOERR, 9213 0, 0, 0, 1, 0, 9214 NPC_S_KPU5_FCOE, 8, 0, 9215 NPC_LID_LB, NPC_LT_NA, 9216 0, 9217 0, 0, 0, 0, 9218 }, 9219 { 9220 NPC_ERRLEV_RE, NPC_EC_NOERR, 9221 2, 6, 10, 0, 0, 9222 NPC_S_KPU4_MPLS, 8, 0, 9223 NPC_LID_LB, NPC_LT_NA, 9224 0, 9225 0, 0, 0, 0, 9226 }, 9227 { 9228 NPC_ERRLEV_RE, NPC_EC_NOERR, 9229 2, 6, 10, 0, 0, 9230 NPC_S_KPU4_MPLS, 8, 0, 9231 NPC_LID_LB, NPC_LT_NA, 9232 0, 9233 0, 0, 0, 0, 9234 }, 9235 { 9236 NPC_ERRLEV_RE, NPC_EC_NOERR, 9237 2, 0, 0, 0, 0, 9238 NPC_S_KPU4_NSH, 8, 0, 9239 NPC_LID_LB, NPC_LT_NA, 9240 0, 9241 0, 0, 0, 0, 9242 }, 9243 { 9244 NPC_ERRLEV_RE, NPC_EC_NOERR, 9245 8, 0, 6, 1, 0, 9246 NPC_S_KPU5_IP, 4, 0, 9247 NPC_LID_LB, NPC_LT_NA, 9248 0, 9249 0, 0, 0, 0, 9250 }, 9251 { 9252 NPC_ERRLEV_RE, NPC_EC_NOERR, 9253 6, 0, 0, 1, 0, 9254 NPC_S_KPU5_IP6, 4, 0, 9255 NPC_LID_LB, NPC_LT_NA, 9256 0, 9257 0, 0, 0, 0, 9258 }, 9259 { 9260 NPC_ERRLEV_RE, NPC_EC_NOERR, 9261 0, 0, 0, 1, 0, 9262 NPC_S_KPU5_ARP, 4, 0, 9263 NPC_LID_LB, NPC_LT_NA, 9264 0, 9265 0, 0, 0, 0, 9266 }, 9267 { 9268 NPC_ERRLEV_RE, NPC_EC_NOERR, 9269 0, 0, 0, 1, 0, 9270 NPC_S_KPU5_RARP, 4, 0, 9271 NPC_LID_LB, NPC_LT_NA, 9272 0, 9273 0, 0, 0, 0, 9274 }, 9275 { 9276 NPC_ERRLEV_RE, NPC_EC_NOERR, 9277 2, 6, 10, 0, 0, 9278 NPC_S_KPU4_MPLS, 4, 0, 9279 NPC_LID_LB, NPC_LT_NA, 9280 0, 9281 0, 0, 0, 0, 9282 }, 9283 { 9284 NPC_ERRLEV_RE, NPC_EC_NOERR, 9285 2, 6, 10, 0, 0, 9286 NPC_S_KPU4_MPLS, 4, 0, 9287 NPC_LID_LB, NPC_LT_NA, 9288 0, 9289 0, 0, 0, 0, 9290 }, 9291 { 9292 NPC_ERRLEV_RE, NPC_EC_NOERR, 9293 2, 0, 0, 0, 0, 9294 NPC_S_KPU4_NSH, 4, 0, 9295 NPC_LID_LB, NPC_LT_NA, 9296 0, 9297 0, 0, 0, 0, 9298 }, 9299 { 9300 NPC_ERRLEV_LB, NPC_EC_L2_K3_ETYPE_UNK, 9301 0, 0, 0, 0, 1, 9302 NPC_S_NA, 0, 0, 9303 NPC_LID_LB, NPC_LT_NA, 9304 0, 9305 0, 0, 0, 0, 9306 }, 9307 { 9308 NPC_ERRLEV_RE, NPC_EC_NOERR, 9309 8, 0, 6, 1, 0, 9310 NPC_S_KPU5_IP, 8, 0, 9311 NPC_LID_LB, NPC_LT_NA, 9312 0, 9313 0, 0, 0, 0, 9314 }, 9315 { 9316 NPC_ERRLEV_RE, NPC_EC_NOERR, 9317 6, 0, 0, 1, 0, 9318 NPC_S_KPU5_IP6, 8, 0, 9319 NPC_LID_LB, NPC_LT_NA, 9320 0, 9321 0, 0, 0, 0, 9322 }, 9323 { 9324 NPC_ERRLEV_RE, NPC_EC_NOERR, 9325 0, 0, 0, 1, 0, 9326 NPC_S_KPU5_ARP, 8, 0, 9327 NPC_LID_LB, NPC_LT_NA, 9328 0, 9329 0, 0, 0, 0, 9330 }, 9331 { 9332 NPC_ERRLEV_RE, NPC_EC_NOERR, 9333 0, 0, 0, 1, 0, 9334 NPC_S_KPU5_RARP, 8, 0, 9335 NPC_LID_LB, NPC_LT_NA, 9336 0, 9337 0, 0, 0, 0, 9338 }, 9339 { 9340 NPC_ERRLEV_RE, NPC_EC_NOERR, 9341 0, 0, 0, 1, 0, 9342 NPC_S_KPU5_PTP, 8, 0, 9343 NPC_LID_LB, NPC_LT_NA, 9344 0, 9345 0, 0, 0, 0, 9346 }, 9347 { 9348 NPC_ERRLEV_RE, NPC_EC_NOERR, 9349 0, 0, 0, 1, 0, 9350 NPC_S_KPU5_FCOE, 8, 0, 9351 NPC_LID_LB, NPC_LT_NA, 9352 0, 9353 0, 0, 0, 0, 9354 }, 9355 { 9356 NPC_ERRLEV_RE, NPC_EC_NOERR, 9357 2, 6, 10, 0, 0, 9358 NPC_S_KPU4_MPLS, 8, 0, 9359 NPC_LID_LB, NPC_LT_NA, 9360 0, 9361 0, 0, 0, 0, 9362 }, 9363 { 9364 NPC_ERRLEV_RE, NPC_EC_NOERR, 9365 2, 6, 10, 0, 0, 9366 NPC_S_KPU4_MPLS, 8, 0, 9367 NPC_LID_LB, NPC_LT_NA, 9368 0, 9369 0, 0, 0, 0, 9370 }, 9371 { 9372 NPC_ERRLEV_RE, NPC_EC_NOERR, 9373 2, 0, 0, 0, 0, 9374 NPC_S_KPU4_NSH, 8, 0, 9375 NPC_LID_LB, NPC_LT_NA, 9376 0, 9377 0, 0, 0, 0, 9378 }, 9379 { 9380 NPC_ERRLEV_RE, NPC_EC_NOERR, 9381 8, 0, 6, 1, 0, 9382 NPC_S_KPU5_IP, 4, 0, 9383 NPC_LID_LB, NPC_LT_NA, 9384 0, 9385 0, 0, 0, 0, 9386 }, 9387 { 9388 NPC_ERRLEV_RE, NPC_EC_NOERR, 9389 6, 0, 0, 1, 0, 9390 NPC_S_KPU5_IP6, 4, 0, 9391 NPC_LID_LB, NPC_LT_NA, 9392 0, 9393 0, 0, 0, 0, 9394 }, 9395 { 9396 NPC_ERRLEV_RE, NPC_EC_NOERR, 9397 0, 0, 0, 1, 0, 9398 NPC_S_KPU5_ARP, 4, 0, 9399 NPC_LID_LB, NPC_LT_NA, 9400 0, 9401 0, 0, 0, 0, 9402 }, 9403 { 9404 NPC_ERRLEV_RE, NPC_EC_NOERR, 9405 0, 0, 0, 1, 0, 9406 NPC_S_KPU5_RARP, 4, 0, 9407 NPC_LID_LB, NPC_LT_NA, 9408 0, 9409 0, 0, 0, 0, 9410 }, 9411 { 9412 NPC_ERRLEV_RE, NPC_EC_NOERR, 9413 0, 0, 0, 1, 0, 9414 NPC_S_KPU5_PTP, 4, 0, 9415 NPC_LID_LB, NPC_LT_NA, 9416 0, 9417 0, 0, 0, 0, 9418 }, 9419 { 9420 NPC_ERRLEV_RE, NPC_EC_NOERR, 9421 0, 0, 0, 1, 0, 9422 NPC_S_KPU5_FCOE, 4, 0, 9423 NPC_LID_LB, NPC_LT_NA, 9424 0, 9425 0, 0, 0, 0, 9426 }, 9427 { 9428 NPC_ERRLEV_RE, NPC_EC_NOERR, 9429 2, 6, 10, 0, 0, 9430 NPC_S_KPU4_MPLS, 4, 0, 9431 NPC_LID_LB, NPC_LT_NA, 9432 0, 9433 0, 0, 0, 0, 9434 }, 9435 { 9436 NPC_ERRLEV_RE, NPC_EC_NOERR, 9437 2, 6, 10, 0, 0, 9438 NPC_S_KPU4_MPLS, 4, 0, 9439 NPC_LID_LB, NPC_LT_NA, 9440 0, 9441 0, 0, 0, 0, 9442 }, 9443 { 9444 NPC_ERRLEV_RE, NPC_EC_NOERR, 9445 2, 0, 0, 0, 0, 9446 NPC_S_KPU4_NSH, 4, 0, 9447 NPC_LID_LB, NPC_LT_NA, 9448 0, 9449 0, 0, 0, 0, 9450 }, 9451 { 9452 NPC_ERRLEV_LB, NPC_EC_L2_K3_ETYPE_UNK, 9453 0, 0, 0, 0, 1, 9454 NPC_S_NA, 0, 0, 9455 NPC_LID_LB, NPC_LT_NA, 9456 0, 9457 0, 0, 0, 0, 9458 }, 9459 { 9460 NPC_ERRLEV_RE, NPC_EC_NOERR, 9461 8, 0, 6, 2, 0, 9462 NPC_S_KPU5_IP, 18, 0, 9463 NPC_LID_LB, NPC_LT_NA, 9464 0, 9465 0, 0, 0, 0, 9466 }, 9467 { 9468 NPC_ERRLEV_RE, NPC_EC_NOERR, 9469 6, 0, 0, 2, 0, 9470 NPC_S_KPU5_IP6, 18, 0, 9471 NPC_LID_LB, NPC_LT_NA, 9472 0, 9473 0, 0, 0, 0, 9474 }, 9475 { 9476 NPC_ERRLEV_RE, NPC_EC_NOERR, 9477 0, 0, 0, 2, 0, 9478 NPC_S_KPU5_ARP, 18, 0, 9479 NPC_LID_LB, NPC_LT_NA, 9480 0, 9481 0, 0, 0, 0, 9482 }, 9483 { 9484 NPC_ERRLEV_RE, NPC_EC_NOERR, 9485 0, 0, 0, 2, 0, 9486 NPC_S_KPU5_RARP, 18, 0, 9487 NPC_LID_LB, NPC_LT_NA, 9488 0, 9489 0, 0, 0, 0, 9490 }, 9491 { 9492 NPC_ERRLEV_RE, NPC_EC_NOERR, 9493 8, 0, 6, 1, 0, 9494 NPC_S_KPU5_IP, 26, 0, 9495 NPC_LID_LB, NPC_LT_NA, 9496 0, 9497 0, 0, 0, 0, 9498 }, 9499 { 9500 NPC_ERRLEV_RE, NPC_EC_NOERR, 9501 6, 0, 0, 1, 0, 9502 NPC_S_KPU5_IP6, 26, 0, 9503 NPC_LID_LB, NPC_LT_NA, 9504 0, 9505 0, 0, 0, 0, 9506 }, 9507 { 9508 NPC_ERRLEV_RE, NPC_EC_NOERR, 9509 0, 0, 0, 1, 0, 9510 NPC_S_KPU5_ARP, 26, 0, 9511 NPC_LID_LB, NPC_LT_NA, 9512 0, 9513 0, 0, 0, 0, 9514 }, 9515 { 9516 NPC_ERRLEV_RE, NPC_EC_NOERR, 9517 8, 0, 6, 1, 0, 9518 NPC_S_KPU5_IP, 22, 0, 9519 NPC_LID_LB, NPC_LT_NA, 9520 0, 9521 0, 0, 0, 0, 9522 }, 9523 { 9524 NPC_ERRLEV_RE, NPC_EC_NOERR, 9525 6, 0, 0, 1, 0, 9526 NPC_S_KPU5_IP6, 22, 0, 9527 NPC_LID_LB, NPC_LT_NA, 9528 0, 9529 0, 0, 0, 0, 9530 }, 9531 { 9532 NPC_ERRLEV_RE, NPC_EC_NOERR, 9533 0, 0, 0, 1, 0, 9534 NPC_S_KPU5_ARP, 22, 0, 9535 NPC_LID_LB, NPC_LT_NA, 9536 0, 9537 0, 0, 0, 0, 9538 }, 9539 { 9540 NPC_ERRLEV_LB, NPC_EC_L2_K3_ETYPE_UNK, 9541 0, 0, 0, 0, 1, 9542 NPC_S_NA, 0, 0, 9543 NPC_LID_LB, NPC_LT_NA, 9544 0, 9545 0, 0, 0, 0, 9546 }, 9547 { 9548 NPC_ERRLEV_LB, NPC_EC_L2_K3_ETYPE_UNK, 9549 0, 0, 0, 0, 1, 9550 NPC_S_NA, 0, 0, 9551 NPC_LID_LB, NPC_LT_NA, 9552 0, 9553 0, 0, 0, 0, 9554 }, 9555 { 9556 NPC_ERRLEV_RE, NPC_EC_NOERR, 9557 8, 0, 6, 1, 0, 9558 NPC_S_KPU5_IP, 22, 0, 9559 NPC_LID_LB, NPC_LT_NA, 9560 0, 9561 0, 0, 0, 0, 9562 }, 9563 { 9564 NPC_ERRLEV_RE, NPC_EC_NOERR, 9565 6, 0, 0, 1, 0, 9566 NPC_S_KPU5_IP6, 22, 0, 9567 NPC_LID_LB, NPC_LT_NA, 9568 0, 9569 0, 0, 0, 0, 9570 }, 9571 { 9572 NPC_ERRLEV_RE, NPC_EC_NOERR, 9573 0, 0, 0, 1, 0, 9574 NPC_S_KPU5_ARP, 22, 0, 9575 NPC_LID_LB, NPC_LT_NA, 9576 0, 9577 0, 0, 0, 0, 9578 }, 9579 { 9580 NPC_ERRLEV_LB, NPC_EC_L2_K3_ETYPE_UNK, 9581 0, 0, 0, 0, 1, 9582 NPC_S_NA, 0, 0, 9583 NPC_LID_LB, NPC_LT_NA, 9584 0, 9585 0, 0, 0, 0, 9586 }, 9587 { 9588 NPC_ERRLEV_LB, NPC_EC_L2_K3_ETYPE_UNK, 9589 0, 0, 0, 0, 1, 9590 NPC_S_NA, 0, 0, 9591 NPC_LID_LB, NPC_LT_NA, 9592 0, 9593 0, 0, 0, 0, 9594 }, 9595 { 9596 NPC_ERRLEV_RE, NPC_EC_NOERR, 9597 8, 0, 6, 1, 0, 9598 NPC_S_KPU5_IP, 4, 1, 9599 NPC_LID_LB, NPC_LT_LB_CTAG, 9600 0, 9601 0, 0, 0, 0, 9602 }, 9603 { 9604 NPC_ERRLEV_RE, NPC_EC_NOERR, 9605 6, 0, 0, 1, 0, 9606 NPC_S_KPU5_IP6, 4, 1, 9607 NPC_LID_LB, NPC_LT_LB_CTAG, 9608 0, 9609 0, 0, 0, 0, 9610 }, 9611 { 9612 NPC_ERRLEV_RE, NPC_EC_NOERR, 9613 0, 0, 0, 1, 0, 9614 NPC_S_KPU5_ARP, 4, 1, 9615 NPC_LID_LB, NPC_LT_LB_CTAG, 9616 0, 9617 0, 0, 0, 0, 9618 }, 9619 { 9620 NPC_ERRLEV_RE, NPC_EC_NOERR, 9621 0, 0, 0, 1, 0, 9622 NPC_S_KPU5_RARP, 4, 1, 9623 NPC_LID_LB, NPC_LT_LB_CTAG, 9624 0, 9625 0, 0, 0, 0, 9626 }, 9627 { 9628 NPC_ERRLEV_RE, NPC_EC_NOERR, 9629 0, 0, 0, 1, 0, 9630 NPC_S_KPU5_PTP, 4, 1, 9631 NPC_LID_LB, NPC_LT_LB_CTAG, 9632 0, 9633 0, 0, 0, 0, 9634 }, 9635 { 9636 NPC_ERRLEV_RE, NPC_EC_NOERR, 9637 0, 0, 0, 1, 0, 9638 NPC_S_KPU5_FCOE, 4, 1, 9639 NPC_LID_LB, NPC_LT_LB_CTAG, 9640 0, 9641 0, 0, 0, 0, 9642 }, 9643 { 9644 NPC_ERRLEV_RE, NPC_EC_NOERR, 9645 2, 6, 10, 0, 0, 9646 NPC_S_KPU4_MPLS, 4, 1, 9647 NPC_LID_LB, NPC_LT_LB_CTAG, 9648 0, 9649 0, 0, 0, 0, 9650 }, 9651 { 9652 NPC_ERRLEV_RE, NPC_EC_NOERR, 9653 2, 6, 10, 0, 0, 9654 NPC_S_KPU4_MPLS, 4, 1, 9655 NPC_LID_LB, NPC_LT_LB_CTAG, 9656 0, 9657 0, 0, 0, 0, 9658 }, 9659 { 9660 NPC_ERRLEV_RE, NPC_EC_NOERR, 9661 2, 0, 0, 0, 0, 9662 NPC_S_KPU4_NSH, 4, 1, 9663 NPC_LID_LB, NPC_LT_LB_CTAG, 9664 0, 9665 0, 0, 0, 0, 9666 }, 9667 { 9668 NPC_ERRLEV_LB, NPC_EC_L2_K3_ETYPE_UNK, 9669 0, 0, 0, 0, 1, 9670 NPC_S_NA, 0, 1, 9671 NPC_LID_LB, NPC_LT_LB_CTAG, 9672 0, 9673 0, 0, 0, 0, 9674 }, 9675 { 9676 NPC_ERRLEV_RE, NPC_EC_NOERR, 9677 8, 0, 6, 1, 0, 9678 NPC_S_KPU5_IP, 8, 1, 9679 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9680 0, 9681 0, 0, 0, 0, 9682 }, 9683 { 9684 NPC_ERRLEV_RE, NPC_EC_NOERR, 9685 6, 0, 0, 1, 0, 9686 NPC_S_KPU5_IP6, 8, 1, 9687 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9688 0, 9689 0, 0, 0, 0, 9690 }, 9691 { 9692 NPC_ERRLEV_RE, NPC_EC_NOERR, 9693 0, 0, 0, 1, 0, 9694 NPC_S_KPU5_ARP, 8, 1, 9695 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9696 0, 9697 0, 0, 0, 0, 9698 }, 9699 { 9700 NPC_ERRLEV_RE, NPC_EC_NOERR, 9701 0, 0, 0, 1, 0, 9702 NPC_S_KPU5_RARP, 8, 1, 9703 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9704 0, 9705 0, 0, 0, 0, 9706 }, 9707 { 9708 NPC_ERRLEV_RE, NPC_EC_NOERR, 9709 0, 0, 0, 1, 0, 9710 NPC_S_KPU5_PTP, 8, 1, 9711 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9712 0, 9713 0, 0, 0, 0, 9714 }, 9715 { 9716 NPC_ERRLEV_RE, NPC_EC_NOERR, 9717 0, 0, 0, 1, 0, 9718 NPC_S_KPU5_FCOE, 8, 1, 9719 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9720 0, 9721 0, 0, 0, 0, 9722 }, 9723 { 9724 NPC_ERRLEV_RE, NPC_EC_NOERR, 9725 2, 6, 10, 0, 0, 9726 NPC_S_KPU4_MPLS, 8, 1, 9727 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9728 0, 9729 0, 0, 0, 0, 9730 }, 9731 { 9732 NPC_ERRLEV_RE, NPC_EC_NOERR, 9733 2, 6, 10, 0, 0, 9734 NPC_S_KPU4_MPLS, 8, 1, 9735 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9736 0, 9737 0, 0, 0, 0, 9738 }, 9739 { 9740 NPC_ERRLEV_RE, NPC_EC_NOERR, 9741 2, 0, 0, 0, 0, 9742 NPC_S_KPU4_NSH, 8, 1, 9743 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9744 0, 9745 0, 0, 0, 0, 9746 }, 9747 { 9748 NPC_ERRLEV_RE, NPC_EC_NOERR, 9749 8, 0, 6, 1, 0, 9750 NPC_S_KPU5_IP, 4, 1, 9751 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9752 0, 9753 0, 0, 0, 0, 9754 }, 9755 { 9756 NPC_ERRLEV_RE, NPC_EC_NOERR, 9757 6, 0, 0, 1, 0, 9758 NPC_S_KPU5_IP6, 4, 1, 9759 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9760 0, 9761 0, 0, 0, 0, 9762 }, 9763 { 9764 NPC_ERRLEV_RE, NPC_EC_NOERR, 9765 0, 0, 0, 1, 0, 9766 NPC_S_KPU5_ARP, 4, 1, 9767 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9768 0, 9769 0, 0, 0, 0, 9770 }, 9771 { 9772 NPC_ERRLEV_RE, NPC_EC_NOERR, 9773 0, 0, 0, 1, 0, 9774 NPC_S_KPU5_RARP, 4, 1, 9775 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9776 0, 9777 0, 0, 0, 0, 9778 }, 9779 { 9780 NPC_ERRLEV_RE, NPC_EC_NOERR, 9781 2, 6, 10, 0, 0, 9782 NPC_S_KPU4_MPLS, 4, 1, 9783 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9784 0, 9785 0, 0, 0, 0, 9786 }, 9787 { 9788 NPC_ERRLEV_RE, NPC_EC_NOERR, 9789 2, 6, 10, 0, 0, 9790 NPC_S_KPU4_MPLS, 4, 1, 9791 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9792 0, 9793 0, 0, 0, 0, 9794 }, 9795 { 9796 NPC_ERRLEV_RE, NPC_EC_NOERR, 9797 2, 0, 0, 0, 0, 9798 NPC_S_KPU4_NSH, 4, 1, 9799 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9800 0, 9801 0, 0, 0, 0, 9802 }, 9803 { 9804 NPC_ERRLEV_LB, NPC_EC_L2_K3_ETYPE_UNK, 9805 0, 0, 0, 0, 1, 9806 NPC_S_NA, 0, 1, 9807 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9808 0, 9809 0, 0, 0, 0, 9810 }, 9811 { 9812 NPC_ERRLEV_RE, NPC_EC_NOERR, 9813 8, 0, 6, 1, 0, 9814 NPC_S_KPU5_IP, 8, 1, 9815 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9816 0, 9817 0, 0, 0, 0, 9818 }, 9819 { 9820 NPC_ERRLEV_RE, NPC_EC_NOERR, 9821 6, 0, 0, 1, 0, 9822 NPC_S_KPU5_IP6, 8, 1, 9823 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9824 0, 9825 0, 0, 0, 0, 9826 }, 9827 { 9828 NPC_ERRLEV_RE, NPC_EC_NOERR, 9829 0, 0, 0, 1, 0, 9830 NPC_S_KPU5_ARP, 8, 1, 9831 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9832 0, 9833 0, 0, 0, 0, 9834 }, 9835 { 9836 NPC_ERRLEV_RE, NPC_EC_NOERR, 9837 0, 0, 0, 1, 0, 9838 NPC_S_KPU5_RARP, 8, 1, 9839 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9840 0, 9841 0, 0, 0, 0, 9842 }, 9843 { 9844 NPC_ERRLEV_RE, NPC_EC_NOERR, 9845 0, 0, 0, 1, 0, 9846 NPC_S_KPU5_PTP, 8, 1, 9847 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9848 0, 9849 0, 0, 0, 0, 9850 }, 9851 { 9852 NPC_ERRLEV_RE, NPC_EC_NOERR, 9853 0, 0, 0, 1, 0, 9854 NPC_S_KPU5_FCOE, 8, 1, 9855 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9856 0, 9857 0, 0, 0, 0, 9858 }, 9859 { 9860 NPC_ERRLEV_RE, NPC_EC_NOERR, 9861 2, 6, 10, 0, 0, 9862 NPC_S_KPU4_MPLS, 8, 1, 9863 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9864 0, 9865 0, 0, 0, 0, 9866 }, 9867 { 9868 NPC_ERRLEV_RE, NPC_EC_NOERR, 9869 2, 6, 10, 0, 0, 9870 NPC_S_KPU4_MPLS, 8, 1, 9871 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9872 0, 9873 0, 0, 0, 0, 9874 }, 9875 { 9876 NPC_ERRLEV_RE, NPC_EC_NOERR, 9877 2, 0, 0, 0, 0, 9878 NPC_S_KPU4_NSH, 8, 1, 9879 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9880 0, 9881 0, 0, 0, 0, 9882 }, 9883 { 9884 NPC_ERRLEV_RE, NPC_EC_NOERR, 9885 8, 0, 6, 1, 0, 9886 NPC_S_KPU5_IP, 4, 1, 9887 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9888 0, 9889 0, 0, 0, 0, 9890 }, 9891 { 9892 NPC_ERRLEV_RE, NPC_EC_NOERR, 9893 6, 0, 0, 1, 0, 9894 NPC_S_KPU5_IP6, 4, 1, 9895 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9896 0, 9897 0, 0, 0, 0, 9898 }, 9899 { 9900 NPC_ERRLEV_RE, NPC_EC_NOERR, 9901 0, 0, 0, 1, 0, 9902 NPC_S_KPU5_ARP, 4, 1, 9903 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9904 0, 9905 0, 0, 0, 0, 9906 }, 9907 { 9908 NPC_ERRLEV_RE, NPC_EC_NOERR, 9909 0, 0, 0, 1, 0, 9910 NPC_S_KPU5_RARP, 4, 1, 9911 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9912 0, 9913 0, 0, 0, 0, 9914 }, 9915 { 9916 NPC_ERRLEV_RE, NPC_EC_NOERR, 9917 0, 0, 0, 1, 0, 9918 NPC_S_KPU5_PTP, 4, 1, 9919 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9920 0, 9921 0, 0, 0, 0, 9922 }, 9923 { 9924 NPC_ERRLEV_RE, NPC_EC_NOERR, 9925 0, 0, 0, 1, 0, 9926 NPC_S_KPU5_FCOE, 4, 1, 9927 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9928 0, 9929 0, 0, 0, 0, 9930 }, 9931 { 9932 NPC_ERRLEV_RE, NPC_EC_NOERR, 9933 2, 6, 10, 0, 0, 9934 NPC_S_KPU4_MPLS, 4, 1, 9935 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9936 0, 9937 0, 0, 0, 0, 9938 }, 9939 { 9940 NPC_ERRLEV_RE, NPC_EC_NOERR, 9941 2, 6, 10, 0, 0, 9942 NPC_S_KPU4_MPLS, 4, 1, 9943 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9944 0, 9945 0, 0, 0, 0, 9946 }, 9947 { 9948 NPC_ERRLEV_RE, NPC_EC_NOERR, 9949 2, 0, 0, 0, 0, 9950 NPC_S_KPU4_NSH, 4, 1, 9951 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9952 0, 9953 0, 0, 0, 0, 9954 }, 9955 { 9956 NPC_ERRLEV_LB, NPC_EC_L2_K3_ETYPE_UNK, 9957 0, 0, 0, 0, 1, 9958 NPC_S_NA, 0, 1, 9959 NPC_LID_LB, NPC_LT_LB_STAG_QINQ, 9960 0, 9961 0, 0, 0, 0, 9962 }, 9963 { 9964 NPC_ERRLEV_RE, NPC_EC_NOERR, 9965 8, 0, 6, 1, 0, 9966 NPC_S_KPU5_IP, 10, 1, 9967 NPC_LID_LB, NPC_LT_LB_DSA, 9968 NPC_F_LB_L_DSA, 9969 0, 0, 0, 0, 9970 }, 9971 { 9972 NPC_ERRLEV_RE, NPC_EC_NOERR, 9973 6, 0, 0, 1, 0, 9974 NPC_S_KPU5_IP6, 10, 1, 9975 NPC_LID_LB, NPC_LT_LB_DSA, 9976 NPC_F_LB_L_DSA, 9977 0, 0, 0, 0, 9978 }, 9979 { 9980 NPC_ERRLEV_RE, NPC_EC_NOERR, 9981 0, 0, 0, 1, 0, 9982 NPC_S_KPU5_ARP, 10, 1, 9983 NPC_LID_LB, NPC_LT_LB_DSA, 9984 NPC_F_LB_L_DSA, 9985 0, 0, 0, 0, 9986 }, 9987 { 9988 NPC_ERRLEV_RE, NPC_EC_NOERR, 9989 0, 0, 0, 1, 0, 9990 NPC_S_KPU5_RARP, 10, 1, 9991 NPC_LID_LB, NPC_LT_LB_DSA, 9992 NPC_F_LB_L_DSA, 9993 0, 0, 0, 0, 9994 }, 9995 { 9996 NPC_ERRLEV_RE, NPC_EC_NOERR, 9997 0, 0, 0, 1, 0, 9998 NPC_S_KPU5_PTP, 10, 1, 9999 NPC_LID_LB, NPC_LT_LB_DSA, 10000 NPC_F_LB_L_DSA, 10001 0, 0, 0, 0, 10002 }, 10003 { 10004 NPC_ERRLEV_RE, NPC_EC_NOERR, 10005 0, 0, 0, 1, 0, 10006 NPC_S_KPU5_FCOE, 10, 1, 10007 NPC_LID_LB, NPC_LT_LB_DSA, 10008 NPC_F_LB_L_DSA, 10009 0, 0, 0, 0, 10010 }, 10011 { 10012 NPC_ERRLEV_RE, NPC_EC_NOERR, 10013 8, 0, 6, 1, 0, 10014 NPC_S_KPU5_IP, 14, 1, 10015 NPC_LID_LB, NPC_LT_LB_DSA_VLAN, 10016 NPC_F_LB_L_DSA_VLAN, 10017 0, 0, 0, 0, 10018 }, 10019 { 10020 NPC_ERRLEV_RE, NPC_EC_NOERR, 10021 6, 0, 0, 1, 0, 10022 NPC_S_KPU5_IP6, 14, 1, 10023 NPC_LID_LB, NPC_LT_LB_DSA_VLAN, 10024 NPC_F_LB_L_DSA_VLAN, 10025 0, 0, 0, 0, 10026 }, 10027 { 10028 NPC_ERRLEV_RE, NPC_EC_NOERR, 10029 0, 0, 0, 1, 0, 10030 NPC_S_KPU5_ARP, 14, 1, 10031 NPC_LID_LB, NPC_LT_LB_DSA_VLAN, 10032 NPC_F_LB_L_DSA_VLAN, 10033 0, 0, 0, 0, 10034 }, 10035 { 10036 NPC_ERRLEV_RE, NPC_EC_NOERR, 10037 0, 0, 0, 1, 0, 10038 NPC_S_KPU5_RARP, 14, 1, 10039 NPC_LID_LB, NPC_LT_LB_DSA_VLAN, 10040 NPC_F_LB_L_DSA_VLAN, 10041 0, 0, 0, 0, 10042 }, 10043 { 10044 NPC_ERRLEV_RE, NPC_EC_NOERR, 10045 0, 0, 0, 1, 0, 10046 NPC_S_KPU5_PTP, 14, 1, 10047 NPC_LID_LB, NPC_LT_LB_DSA_VLAN, 10048 NPC_F_LB_L_DSA_VLAN, 10049 0, 0, 0, 0, 10050 }, 10051 { 10052 NPC_ERRLEV_RE, NPC_EC_NOERR, 10053 0, 0, 0, 1, 0, 10054 NPC_S_KPU5_FCOE, 14, 1, 10055 NPC_LID_LB, NPC_LT_LB_DSA_VLAN, 10056 NPC_F_LB_L_DSA_VLAN, 10057 0, 0, 0, 0, 10058 }, 10059 { 10060 NPC_ERRLEV_RE, NPC_EC_NOERR, 10061 0, 0, 0, 0, 1, 10062 NPC_S_NA, 0, 1, 10063 NPC_LID_LB, NPC_LT_LB_DSA_VLAN, 10064 NPC_F_LB_U_UNK_ETYPE | NPC_F_LB_L_DSA, 10065 0, 0, 0, 0, 10066 }, 10067 { 10068 NPC_ERRLEV_RE, NPC_EC_NOERR, 10069 0, 0, 0, 0, 1, 10070 NPC_S_NA, 0, 1, 10071 NPC_LID_LB, NPC_LT_LB_DSA, 10072 NPC_F_LB_U_UNK_ETYPE | NPC_F_LB_L_DSA_VLAN, 10073 0, 0, 0, 0, 10074 }, 10075 { 10076 NPC_ERRLEV_LB, NPC_EC_L2_K3, 10077 0, 0, 0, 0, 1, 10078 NPC_S_NA, 0, 0, 10079 NPC_LID_LB, NPC_LT_NA, 10080 0, 10081 0, 0, 0, 0, 10082 }, 10083 }; 10084 10085 static const struct npc_kpu_profile_action kpu4_action_entries[] = { 10086 { 10087 NPC_ERRLEV_RE, NPC_EC_NOERR, 10088 0, 0, 0, 0, 0, 10089 NPC_S_KPU5_MPLS_PL, 4, 1, 10090 NPC_LID_LC, NPC_LT_LC_MPLS, 10091 0, 10092 0, 0, 0, 0, 10093 }, 10094 { 10095 NPC_ERRLEV_RE, NPC_EC_NOERR, 10096 0, 0, 0, 0, 0, 10097 NPC_S_KPU5_MPLS_PL, 8, 1, 10098 NPC_LID_LC, NPC_LT_LC_MPLS, 10099 NPC_F_LC_L_MPLS_2_LABELS, 10100 0, 0, 0, 0, 10101 }, 10102 { 10103 NPC_ERRLEV_RE, NPC_EC_NOERR, 10104 0, 0, 0, 0, 0, 10105 NPC_S_KPU5_MPLS_PL, 12, 1, 10106 NPC_LID_LC, NPC_LT_LC_MPLS, 10107 NPC_F_LC_L_MPLS_3_LABELS, 10108 0, 0, 0, 0, 10109 }, 10110 { 10111 NPC_ERRLEV_RE, NPC_EC_NOERR, 10112 2, 4, 0, 0, 0, 10113 NPC_S_KPU5_MPLS, 12, 1, 10114 NPC_LID_LC, NPC_LT_LC_MPLS, 10115 NPC_F_LC_L_MPLS_4_LABELS, 10116 0, 0, 0, 0, 10117 }, 10118 { 10119 NPC_ERRLEV_RE, NPC_EC_NOERR, 10120 8, 0, 6, 7, 0, 10121 NPC_S_KPU12_TU_IP, 0, 1, 10122 NPC_LID_LC, NPC_LT_LC_NSH, 10123 0, 10124 1, 0x3f, 0, 2, 10125 }, 10126 { 10127 NPC_ERRLEV_RE, NPC_EC_NOERR, 10128 6, 0, 0, 7, 0, 10129 NPC_S_KPU12_TU_IP6, 0, 1, 10130 NPC_LID_LC, NPC_LT_LC_NSH, 10131 0, 10132 1, 0x3f, 0, 2, 10133 }, 10134 { 10135 NPC_ERRLEV_RE, NPC_EC_NOERR, 10136 12, 16, 20, 6, 0, 10137 NPC_S_KPU11_TU_ETHER, 0, 1, 10138 NPC_LID_LC, NPC_LT_LC_NSH, 10139 0, 10140 1, 0x3f, 0, 2, 10141 }, 10142 { 10143 NPC_ERRLEV_RE, NPC_EC_NOERR, 10144 0, 0, 0, 4, 0, 10145 NPC_S_KPU9_TU_MPLS_IN_NSH, 0, 1, 10146 NPC_LID_LC, NPC_LT_LC_NSH, 10147 0, 10148 1, 0x3f, 0, 2, 10149 }, 10150 { 10151 NPC_ERRLEV_LC, NPC_EC_NSH_UNK, 10152 0, 0, 0, 0, 1, 10153 NPC_S_NA, 0, 1, 10154 NPC_LID_LC, NPC_LT_LC_NSH, 10155 0, 10156 0, 0, 0, 0, 10157 }, 10158 { 10159 NPC_ERRLEV_RE, NPC_EC_NOERR, 10160 8, 0, 6, 0, 0, 10161 NPC_S_KPU5_IP, 6, 1, 10162 NPC_LID_LB, NPC_LT_LB_FDSA, 10163 NPC_F_LB_L_FDSA, 10164 0, 0, 0, 0, 10165 }, 10166 { 10167 NPC_ERRLEV_RE, NPC_EC_NOERR, 10168 6, 0, 0, 0, 0, 10169 NPC_S_KPU5_IP6, 6, 1, 10170 NPC_LID_LB, NPC_LT_LB_FDSA, 10171 NPC_F_LB_L_FDSA, 10172 0, 0, 0, 0, 10173 }, 10174 { 10175 NPC_ERRLEV_RE, NPC_EC_NOERR, 10176 0, 0, 0, 0, 0, 10177 NPC_S_KPU5_ARP, 6, 1, 10178 NPC_LID_LB, NPC_LT_LB_FDSA, 10179 NPC_F_LB_L_FDSA, 10180 0, 0, 0, 0, 10181 }, 10182 { 10183 NPC_ERRLEV_RE, NPC_EC_NOERR, 10184 8, 0, 6, 0, 0, 10185 NPC_S_KPU5_RARP, 6, 1, 10186 NPC_LID_LB, NPC_LT_LB_FDSA, 10187 NPC_F_LB_L_FDSA, 10188 0, 0, 0, 0, 10189 }, 10190 { 10191 NPC_ERRLEV_RE, NPC_EC_NOERR, 10192 6, 0, 0, 0, 0, 10193 NPC_S_KPU5_PTP, 6, 1, 10194 NPC_LID_LB, NPC_LT_LB_FDSA, 10195 NPC_F_LB_L_FDSA, 10196 0, 0, 0, 0, 10197 }, 10198 { 10199 NPC_ERRLEV_RE, NPC_EC_NOERR, 10200 0, 0, 0, 0, 0, 10201 NPC_S_KPU5_FCOE, 6, 1, 10202 NPC_LID_LB, NPC_LT_LB_FDSA, 10203 NPC_F_LB_L_FDSA, 10204 0, 0, 0, 0, 10205 }, 10206 { 10207 NPC_ERRLEV_RE, NPC_EC_NOERR, 10208 0, 0, 0, 0, 1, 10209 NPC_S_NA, 0, 1, 10210 NPC_LID_LB, NPC_LT_LB_FDSA, 10211 NPC_F_LB_U_UNK_ETYPE | NPC_F_LB_L_FDSA, 10212 0, 0, 0, 0, 10213 }, 10214 { 10215 NPC_ERRLEV_LB, NPC_EC_L2_K4, 10216 0, 0, 0, 0, 1, 10217 NPC_S_NA, 0, 0, 10218 NPC_LID_LC, NPC_LT_NA, 10219 0, 10220 0, 0, 0, 0, 10221 }, 10222 }; 10223 10224 static const struct npc_kpu_profile_action kpu5_action_entries[] = { 10225 { 10226 NPC_ERRLEV_LC, NPC_EC_IP_TTL_0, 10227 0, 0, 0, 0, 1, 10228 NPC_S_NA, 0, 1, 10229 NPC_LID_LC, NPC_LT_LC_IP, 10230 0, 10231 0, 0, 0, 0, 10232 }, 10233 { 10234 NPC_ERRLEV_LC, NPC_EC_IP_FRAG_OFFSET_1, 10235 0, 0, 0, 0, 1, 10236 NPC_S_NA, 0, 1, 10237 NPC_LID_LC, NPC_LT_LC_IP, 10238 NPC_F_LC_U_IP_FRAG, 10239 0, 0, 0, 0, 10240 }, 10241 { 10242 NPC_ERRLEV_RE, NPC_EC_NOERR, 10243 2, 12, 0, 2, 0, 10244 NPC_S_KPU8_TCP, 20, 1, 10245 NPC_LID_LC, NPC_LT_LC_IP, 10246 0, 10247 0, 0, 0, 0, 10248 }, 10249 { 10250 NPC_ERRLEV_RE, NPC_EC_NOERR, 10251 2, 0, 0, 2, 0, 10252 NPC_S_KPU8_UDP, 20, 1, 10253 NPC_LID_LC, NPC_LT_LC_IP, 10254 0, 10255 0, 0, 0, 0, 10256 }, 10257 { 10258 NPC_ERRLEV_RE, NPC_EC_NOERR, 10259 0, 0, 0, 2, 0, 10260 NPC_S_KPU8_SCTP, 20, 1, 10261 NPC_LID_LC, NPC_LT_LC_IP, 10262 0, 10263 0, 0, 0, 0, 10264 }, 10265 { 10266 NPC_ERRLEV_RE, NPC_EC_NOERR, 10267 0, 0, 0, 2, 0, 10268 NPC_S_KPU8_ICMP, 20, 1, 10269 NPC_LID_LC, NPC_LT_LC_IP, 10270 0, 10271 0, 0, 0, 0, 10272 }, 10273 { 10274 NPC_ERRLEV_RE, NPC_EC_NOERR, 10275 0, 0, 0, 2, 0, 10276 NPC_S_KPU8_IGMP, 20, 1, 10277 NPC_LID_LC, NPC_LT_LC_IP, 10278 0, 10279 0, 0, 0, 0, 10280 }, 10281 { 10282 NPC_ERRLEV_RE, NPC_EC_NOERR, 10283 0, 0, 0, 3, 0, 10284 NPC_S_KPU9_ESP, 20, 1, 10285 NPC_LID_LC, NPC_LT_LC_IP, 10286 0, 10287 0, 0, 0, 0, 10288 }, 10289 { 10290 NPC_ERRLEV_RE, NPC_EC_NOERR, 10291 0, 0, 0, 2, 0, 10292 NPC_S_KPU8_AH, 20, 1, 10293 NPC_LID_LC, NPC_LT_LC_IP, 10294 0, 10295 0, 0, 0, 0, 10296 }, 10297 { 10298 NPC_ERRLEV_RE, NPC_EC_NOERR, 10299 2, 0, 0, 2, 0, 10300 NPC_S_KPU8_GRE, 20, 1, 10301 NPC_LID_LC, NPC_LT_LC_IP, 10302 0, 10303 0, 0, 0, 0, 10304 }, 10305 { 10306 NPC_ERRLEV_RE, NPC_EC_NOERR, 10307 8, 0, 6, 6, 0, 10308 NPC_S_KPU12_TU_IP, 20, 1, 10309 NPC_LID_LC, NPC_LT_LC_IP, 10310 NPC_F_LC_L_IP_IN_IP, 10311 0, 0, 0, 0, 10312 }, 10313 { 10314 NPC_ERRLEV_RE, NPC_EC_NOERR, 10315 6, 0, 0, 6, 0, 10316 NPC_S_KPU12_TU_IP6, 20, 1, 10317 NPC_LID_LC, NPC_LT_LC_IP, 10318 NPC_F_LC_L_6TO4, 10319 0, 0, 0, 0, 10320 }, 10321 { 10322 NPC_ERRLEV_RE, NPC_EC_NOERR, 10323 2, 6, 10, 3, 0, 10324 NPC_S_KPU9_TU_MPLS_IN_IP, 20, 1, 10325 NPC_LID_LC, NPC_LT_LC_IP, 10326 NPC_F_LC_L_MPLS_IN_IP, 10327 0, 0, 0, 0, 10328 }, 10329 { 10330 NPC_ERRLEV_RE, NPC_EC_NOERR, 10331 0, 0, 0, 0, 1, 10332 NPC_S_NA, 0, 1, 10333 NPC_LID_LC, NPC_LT_LC_IP, 10334 NPC_F_LC_U_UNK_PROTO, 10335 0, 0, 0, 0, 10336 }, 10337 { 10338 NPC_ERRLEV_RE, NPC_EC_NOERR, 10339 0, 0, 0, 0, 1, 10340 NPC_S_NA, 0, 1, 10341 NPC_LID_LC, NPC_LT_LC_IP, 10342 NPC_F_LC_U_IP_FRAG, 10343 0, 0, 0, 0, 10344 }, 10345 { 10346 NPC_ERRLEV_RE, NPC_EC_NOERR, 10347 2, 12, 0, 2, 0, 10348 NPC_S_KPU8_TCP, 0, 1, 10349 NPC_LID_LC, NPC_LT_LC_IP_OPT, 10350 0, 10351 0, 0xf, 0, 2, 10352 }, 10353 { 10354 NPC_ERRLEV_RE, NPC_EC_NOERR, 10355 2, 8, 10, 2, 0, 10356 NPC_S_KPU8_UDP, 0, 1, 10357 NPC_LID_LC, NPC_LT_LC_IP_OPT, 10358 0, 10359 0, 0xf, 0, 2, 10360 }, 10361 { 10362 NPC_ERRLEV_RE, NPC_EC_NOERR, 10363 0, 0, 0, 2, 0, 10364 NPC_S_KPU8_SCTP, 0, 1, 10365 NPC_LID_LC, NPC_LT_LC_IP_OPT, 10366 0, 10367 0, 0xf, 0, 2, 10368 }, 10369 { 10370 NPC_ERRLEV_RE, NPC_EC_NOERR, 10371 0, 0, 0, 2, 0, 10372 NPC_S_KPU8_ICMP, 0, 1, 10373 NPC_LID_LC, NPC_LT_LC_IP_OPT, 10374 0, 10375 0, 0xf, 0, 2, 10376 }, 10377 { 10378 NPC_ERRLEV_RE, NPC_EC_NOERR, 10379 0, 0, 0, 2, 0, 10380 NPC_S_KPU8_IGMP, 0, 1, 10381 NPC_LID_LC, NPC_LT_LC_IP_OPT, 10382 0, 10383 0, 0xf, 0, 2, 10384 }, 10385 { 10386 NPC_ERRLEV_RE, NPC_EC_NOERR, 10387 0, 0, 0, 3, 0, 10388 NPC_S_KPU9_ESP, 0, 1, 10389 NPC_LID_LC, NPC_LT_LC_IP_OPT, 10390 0, 10391 0, 0xf, 0, 2, 10392 }, 10393 { 10394 NPC_ERRLEV_RE, NPC_EC_NOERR, 10395 0, 0, 0, 2, 0, 10396 NPC_S_KPU8_AH, 0, 1, 10397 NPC_LID_LC, NPC_LT_LC_IP_OPT, 10398 0, 10399 0, 0xf, 0, 2, 10400 }, 10401 { 10402 NPC_ERRLEV_RE, NPC_EC_NOERR, 10403 2, 0, 0, 2, 0, 10404 NPC_S_KPU8_GRE, 0, 1, 10405 NPC_LID_LC, NPC_LT_LC_IP_OPT, 10406 0, 10407 0, 0xf, 0, 2, 10408 }, 10409 { 10410 NPC_ERRLEV_RE, NPC_EC_NOERR, 10411 8, 0, 6, 6, 0, 10412 NPC_S_KPU12_TU_IP, 0, 1, 10413 NPC_LID_LC, NPC_LT_LC_IP_OPT, 10414 NPC_F_LC_L_IP_IN_IP, 10415 0, 0xf, 0, 2, 10416 }, 10417 { 10418 NPC_ERRLEV_RE, NPC_EC_NOERR, 10419 6, 0, 0, 6, 0, 10420 NPC_S_KPU12_TU_IP6, 0, 1, 10421 NPC_LID_LC, NPC_LT_LC_IP_OPT, 10422 NPC_F_LC_L_6TO4, 10423 0, 0xf, 0, 2, 10424 }, 10425 { 10426 NPC_ERRLEV_RE, NPC_EC_NOERR, 10427 2, 6, 10, 3, 0, 10428 NPC_S_KPU9_TU_MPLS_IN_IP, 20, 1, 10429 NPC_LID_LC, NPC_LT_LC_IP_OPT, 10430 NPC_F_LC_L_MPLS_IN_IP, 10431 0, 0xf, 0, 2, 10432 }, 10433 { 10434 NPC_ERRLEV_RE, NPC_EC_NOERR, 10435 0, 0, 0, 0, 1, 10436 NPC_S_NA, 0, 1, 10437 NPC_LID_LC, NPC_LT_LC_IP_OPT, 10438 NPC_F_LC_U_UNK_PROTO, 10439 0, 0, 0, 0, 10440 }, 10441 { 10442 NPC_ERRLEV_RE, NPC_EC_NOERR, 10443 0, 0, 0, 0, 1, 10444 NPC_S_NA, 0, 1, 10445 NPC_LID_LC, NPC_LT_LC_IP_OPT, 10446 NPC_F_LC_U_IP_FRAG, 10447 0, 0, 0, 0, 10448 }, 10449 { 10450 NPC_ERRLEV_LC, NPC_EC_IP_VER, 10451 0, 0, 0, 0, 1, 10452 NPC_S_NA, 0, 1, 10453 NPC_LID_LC, NPC_LT_LC_IP, 10454 0, 10455 0, 0, 0, 0, 10456 }, 10457 { 10458 NPC_ERRLEV_RE, NPC_EC_NOERR, 10459 0, 0, 0, 0, 1, 10460 NPC_S_NA, 0, 1, 10461 NPC_LID_LC, NPC_LT_LC_ARP, 10462 0, 10463 0, 0, 0, 0, 10464 }, 10465 { 10466 NPC_ERRLEV_RE, NPC_EC_NOERR, 10467 0, 0, 0, 0, 1, 10468 NPC_S_NA, 0, 1, 10469 NPC_LID_LC, NPC_LT_LC_RARP, 10470 0, 10471 0, 0, 0, 0, 10472 }, 10473 { 10474 NPC_ERRLEV_RE, NPC_EC_NOERR, 10475 0, 0, 0, 0, 1, 10476 NPC_S_NA, 0, 1, 10477 NPC_LID_LC, NPC_LT_LC_PTP, 10478 0, 10479 0, 0, 0, 0, 10480 }, 10481 { 10482 NPC_ERRLEV_RE, NPC_EC_NOERR, 10483 0, 0, 0, 0, 1, 10484 NPC_S_NA, 0, 1, 10485 NPC_LID_LC, NPC_LT_LC_FCOE, 10486 0, 10487 0, 0, 0, 0, 10488 }, 10489 { 10490 NPC_ERRLEV_LC, NPC_EC_IP6_HOP_0, 10491 0, 0, 0, 0, 1, 10492 NPC_S_NA, 0, 1, 10493 NPC_LID_LC, NPC_LT_LC_IP6, 10494 0, 10495 0, 0, 0, 0, 10496 }, 10497 { 10498 NPC_ERRLEV_RE, NPC_EC_NOERR, 10499 2, 12, 0, 2, 0, 10500 NPC_S_KPU8_TCP, 40, 1, 10501 NPC_LID_LC, NPC_LT_LC_IP6, 10502 0, 10503 0, 0, 0, 0, 10504 }, 10505 { 10506 NPC_ERRLEV_RE, NPC_EC_NOERR, 10507 2, 0, 0, 2, 0, 10508 NPC_S_KPU8_UDP, 40, 1, 10509 NPC_LID_LC, NPC_LT_LC_IP6, 10510 0, 10511 0, 0, 0, 0, 10512 }, 10513 { 10514 NPC_ERRLEV_RE, NPC_EC_NOERR, 10515 0, 0, 0, 2, 0, 10516 NPC_S_KPU8_SCTP, 40, 1, 10517 NPC_LID_LC, NPC_LT_LC_IP6, 10518 0, 10519 0, 0, 0, 0, 10520 }, 10521 { 10522 NPC_ERRLEV_RE, NPC_EC_NOERR, 10523 0, 0, 0, 2, 0, 10524 NPC_S_KPU8_ICMP, 40, 1, 10525 NPC_LID_LC, NPC_LT_LC_IP6, 10526 0, 10527 0, 0, 0, 0, 10528 }, 10529 { 10530 NPC_ERRLEV_RE, NPC_EC_NOERR, 10531 0, 0, 0, 2, 0, 10532 NPC_S_KPU8_ICMP6, 40, 1, 10533 NPC_LID_LC, NPC_LT_LC_IP6, 10534 0, 10535 0, 0, 0, 0, 10536 }, 10537 { 10538 NPC_ERRLEV_RE, NPC_EC_NOERR, 10539 0, 0, 0, 2, 0, 10540 NPC_S_KPU8_GRE, 40, 1, 10541 NPC_LID_LC, NPC_LT_LC_IP6, 10542 0, 10543 0, 0, 0, 0, 10544 }, 10545 { 10546 NPC_ERRLEV_RE, NPC_EC_NOERR, 10547 6, 0, 0, 6, 0, 10548 NPC_S_KPU12_TU_IP6, 40, 1, 10549 NPC_LID_LC, NPC_LT_LC_IP6, 10550 NPC_F_LC_L_IP6_TUN_IP6, 10551 0, 0, 0, 0, 10552 }, 10553 { 10554 NPC_ERRLEV_RE, NPC_EC_NOERR, 10555 2, 6, 10, 3, 0, 10556 NPC_S_KPU9_TU_MPLS_IN_IP, 40, 1, 10557 NPC_LID_LC, NPC_LT_LC_IP6, 10558 NPC_F_LC_L_IP6_MPLS_IN_IP, 10559 0, 0, 0, 0, 10560 }, 10561 { 10562 NPC_ERRLEV_RE, NPC_EC_NOERR, 10563 0, 0, 0, 0, 0, 10564 NPC_S_KPU6_IP6_HOP_DEST, 40, 1, 10565 NPC_LID_LC, NPC_LT_LC_IP6_EXT, 10566 NPC_F_LC_L_EXT_HOP, 10567 0, 0, 0, 0, 10568 }, 10569 { 10570 NPC_ERRLEV_RE, NPC_EC_NOERR, 10571 0, 0, 0, 0, 0, 10572 NPC_S_KPU6_IP6_HOP_DEST, 40, 1, 10573 NPC_LID_LC, NPC_LT_LC_IP6_EXT, 10574 NPC_F_LC_L_EXT_DEST, 10575 0, 0, 0, 0, 10576 }, 10577 { 10578 NPC_ERRLEV_RE, NPC_EC_NOERR, 10579 0, 0, 0, 0, 0, 10580 NPC_S_KPU6_IP6_ROUT, 40, 1, 10581 NPC_LID_LC, NPC_LT_LC_IP6_EXT, 10582 NPC_F_LC_L_EXT_ROUT, 10583 0, 0, 0, 0, 10584 }, 10585 { 10586 NPC_ERRLEV_RE, NPC_EC_NOERR, 10587 0, 2, 0, 0, 0, 10588 NPC_S_KPU6_IP6_FRAG, 40, 1, 10589 NPC_LID_LC, NPC_LT_LC_IP6_EXT, 10590 NPC_F_LC_U_IP6_FRAG, 10591 0, 0, 0, 0, 10592 }, 10593 { 10594 NPC_ERRLEV_RE, NPC_EC_NOERR, 10595 0, 0, 0, 3, 0, 10596 NPC_S_KPU9_ESP, 40, 1, 10597 NPC_LID_LC, NPC_LT_LC_IP6_EXT, 10598 0, 10599 0, 0, 0, 0, 10600 }, 10601 { 10602 NPC_ERRLEV_RE, NPC_EC_NOERR, 10603 0, 0, 0, 2, 0, 10604 NPC_S_KPU8_AH, 40, 1, 10605 NPC_LID_LC, NPC_LT_LC_IP6_EXT, 10606 0, 10607 0, 0, 0, 0, 10608 }, 10609 { 10610 NPC_ERRLEV_RE, NPC_EC_NOERR, 10611 0, 0, 0, 0, 1, 10612 NPC_S_NA, 0, 1, 10613 NPC_LID_LC, NPC_LT_LC_IP6_EXT, 10614 NPC_F_LC_L_EXT_MOBILITY, 10615 0, 0, 0, 0, 10616 }, 10617 { 10618 NPC_ERRLEV_RE, NPC_EC_NOERR, 10619 0, 0, 0, 0, 1, 10620 NPC_S_NA, 0, 1, 10621 NPC_LID_LC, NPC_LT_LC_IP6_EXT, 10622 NPC_F_LC_L_EXT_HOSTID, 10623 0, 0, 0, 0, 10624 }, 10625 { 10626 NPC_ERRLEV_RE, NPC_EC_NOERR, 10627 0, 0, 0, 0, 1, 10628 NPC_S_NA, 0, 1, 10629 NPC_LID_LC, NPC_LT_LC_IP6_EXT, 10630 NPC_F_LC_L_EXT_SHIM6, 10631 0, 0, 0, 0, 10632 }, 10633 { 10634 NPC_ERRLEV_RE, NPC_EC_NOERR, 10635 0, 0, 0, 0, 1, 10636 NPC_S_NA, 0, 1, 10637 NPC_LID_LC, NPC_LT_LC_IP6, 10638 NPC_F_LC_U_UNK_PROTO, 10639 0, 0, 0, 0, 10640 }, 10641 { 10642 NPC_ERRLEV_LC, NPC_EC_IP6_VER, 10643 0, 0, 0, 0, 1, 10644 NPC_S_NA, 0, 1, 10645 NPC_LID_LC, NPC_LT_LC_IP6, 10646 0, 10647 0, 0, 0, 0, 10648 }, 10649 { 10650 NPC_ERRLEV_RE, NPC_EC_NOERR, 10651 8, 0, 6, 6, 0, 10652 NPC_S_KPU12_TU_IP, 4, 0, 10653 NPC_LID_LB, NPC_LT_NA, 10654 0, 10655 0, 0, 0, 0, 10656 }, 10657 { 10658 NPC_ERRLEV_RE, NPC_EC_NOERR, 10659 6, 0, 0, 6, 0, 10660 NPC_S_KPU12_TU_IP6, 4, 0, 10661 NPC_LID_LB, NPC_LT_NA, 10662 0, 10663 0, 0, 0, 0, 10664 }, 10665 { 10666 NPC_ERRLEV_RE, NPC_EC_NOERR, 10667 12, 16, 20, 5, 0, 10668 NPC_S_KPU11_TU_ETHER, 8, 0, 10669 NPC_LID_LB, NPC_LT_NA, 10670 0, 10671 0, 0, 0, 0, 10672 }, 10673 { 10674 NPC_ERRLEV_RE, NPC_EC_NOERR, 10675 12, 16, 20, 5, 0, 10676 NPC_S_KPU11_TU_ETHER, 4, 0, 10677 NPC_LID_LB, NPC_LT_NA, 10678 0, 10679 0, 0, 0, 0, 10680 }, 10681 { 10682 NPC_ERRLEV_LB, NPC_EC_MPLS_2MANY, 10683 0, 0, 0, 0, 1, 10684 NPC_S_NA, 0, 0, 10685 NPC_LID_LB, NPC_LT_NA, 10686 0, 10687 0, 0, 0, 0, 10688 }, 10689 { 10690 NPC_ERRLEV_RE, NPC_EC_NOERR, 10691 8, 0, 6, 6, 0, 10692 NPC_S_KPU12_TU_IP, 0, 0, 10693 NPC_LID_LB, NPC_LT_NA, 10694 0, 10695 0, 0, 0, 0, 10696 }, 10697 { 10698 NPC_ERRLEV_RE, NPC_EC_NOERR, 10699 6, 0, 0, 6, 0, 10700 NPC_S_KPU12_TU_IP6, 0, 0, 10701 NPC_LID_LB, NPC_LT_NA, 10702 0, 10703 0, 0, 0, 0, 10704 }, 10705 { 10706 NPC_ERRLEV_RE, NPC_EC_NOERR, 10707 12, 16, 20, 5, 0, 10708 NPC_S_KPU11_TU_ETHER, 4, 0, 10709 NPC_LID_LB, NPC_LT_NA, 10710 0, 10711 0, 0, 0, 0, 10712 }, 10713 { 10714 NPC_ERRLEV_RE, NPC_EC_NOERR, 10715 12, 16, 20, 5, 0, 10716 NPC_S_KPU11_TU_ETHER, 0, 0, 10717 NPC_LID_LB, NPC_LT_NA, 10718 0, 10719 0, 0, 0, 0, 10720 }, 10721 { 10722 NPC_ERRLEV_LC, NPC_EC_UNK, 10723 0, 0, 0, 0, 1, 10724 NPC_S_NA, 0, 0, 10725 NPC_LID_LC, NPC_LT_NA, 10726 0, 10727 0, 0, 0, 0, 10728 }, 10729 }; 10730 10731 static const struct npc_kpu_profile_action kpu6_action_entries[] = { 10732 { 10733 NPC_ERRLEV_RE, NPC_EC_NOERR, 10734 0, 0, 0, 0, 1, 10735 NPC_S_NA, 0, 0, 10736 NPC_LID_LC, NPC_LT_NA, 10737 0, 10738 0, 0, 0, 0, 10739 }, 10740 { 10741 NPC_ERRLEV_RE, NPC_EC_NOERR, 10742 0, 0, 0, 0, 1, 10743 NPC_S_NA, 0, 0, 10744 NPC_LID_LC, NPC_LT_NA, 10745 0, 10746 0, 0, 0, 0, 10747 }, 10748 { 10749 NPC_ERRLEV_RE, NPC_EC_NOERR, 10750 0, 0, 0, 0, 1, 10751 NPC_S_NA, 0, 0, 10752 NPC_LID_LC, NPC_LT_NA, 10753 0, 10754 0, 0, 0, 0, 10755 }, 10756 { 10757 NPC_ERRLEV_RE, NPC_EC_NOERR, 10758 0, 0, 0, 0, 1, 10759 NPC_S_NA, 0, 0, 10760 NPC_LID_LC, NPC_LT_NA, 10761 0, 10762 0, 0, 0, 0, 10763 }, 10764 { 10765 NPC_ERRLEV_RE, NPC_EC_NOERR, 10766 0, 0, 0, 0, 1, 10767 NPC_S_NA, 0, 0, 10768 NPC_LID_LC, NPC_LT_NA, 10769 0, 10770 0, 0, 0, 0, 10771 }, 10772 { 10773 NPC_ERRLEV_RE, NPC_EC_NOERR, 10774 0, 0, 0, 0, 1, 10775 NPC_S_NA, 0, 0, 10776 NPC_LID_LC, NPC_LT_NA, 10777 0, 10778 0, 0, 0, 0, 10779 }, 10780 { 10781 NPC_ERRLEV_RE, NPC_EC_NOERR, 10782 0, 0, 0, 0, 1, 10783 NPC_S_NA, 0, 0, 10784 NPC_LID_LC, NPC_LT_NA, 10785 0, 10786 0, 0, 0, 0, 10787 }, 10788 { 10789 NPC_ERRLEV_RE, NPC_EC_NOERR, 10790 0, 0, 0, 0, 1, 10791 NPC_S_NA, 0, 0, 10792 NPC_LID_LC, NPC_LT_NA, 10793 0, 10794 0, 0, 0, 0, 10795 }, 10796 { 10797 NPC_ERRLEV_RE, NPC_EC_NOERR, 10798 0, 0, 0, 0, 1, 10799 NPC_S_NA, 0, 0, 10800 NPC_LID_LC, NPC_LT_NA, 10801 0, 10802 0, 0, 0, 0, 10803 }, 10804 { 10805 NPC_ERRLEV_RE, NPC_EC_NOERR, 10806 0, 0, 0, 0, 1, 10807 NPC_S_NA, 0, 0, 10808 NPC_LID_LC, NPC_LT_NA, 10809 0, 10810 0, 0, 0, 0, 10811 }, 10812 { 10813 NPC_ERRLEV_RE, NPC_EC_NOERR, 10814 0, 0, 0, 0, 1, 10815 NPC_S_NA, 0, 0, 10816 NPC_LID_LC, NPC_LT_NA, 10817 0, 10818 0, 0, 0, 0, 10819 }, 10820 { 10821 NPC_ERRLEV_RE, NPC_EC_NOERR, 10822 0, 0, 0, 0, 1, 10823 NPC_S_NA, 0, 0, 10824 NPC_LID_LC, NPC_LT_NA, 10825 0, 10826 0, 0, 0, 0, 10827 }, 10828 { 10829 NPC_ERRLEV_RE, NPC_EC_NOERR, 10830 2, 12, 0, 1, 0, 10831 NPC_S_KPU8_TCP, 8, 0, 10832 NPC_LID_LC, NPC_LT_NA, 10833 0, 10834 1, 0xff, 0, 3, 10835 }, 10836 { 10837 NPC_ERRLEV_RE, NPC_EC_NOERR, 10838 2, 8, 10, 1, 0, 10839 NPC_S_KPU8_UDP, 8, 0, 10840 NPC_LID_LC, NPC_LT_NA, 10841 0, 10842 1, 0xff, 0, 3, 10843 }, 10844 { 10845 NPC_ERRLEV_RE, NPC_EC_NOERR, 10846 0, 0, 0, 1, 0, 10847 NPC_S_KPU8_SCTP, 8, 0, 10848 NPC_LID_LC, NPC_LT_NA, 10849 0, 10850 1, 0xff, 0, 3, 10851 }, 10852 { 10853 NPC_ERRLEV_RE, NPC_EC_NOERR, 10854 0, 0, 0, 1, 0, 10855 NPC_S_KPU8_ICMP, 8, 0, 10856 NPC_LID_LC, NPC_LT_NA, 10857 0, 10858 1, 0xff, 0, 3, 10859 }, 10860 { 10861 NPC_ERRLEV_RE, NPC_EC_NOERR, 10862 0, 0, 0, 1, 0, 10863 NPC_S_KPU8_ICMP6, 8, 0, 10864 NPC_LID_LC, NPC_LT_NA, 10865 0, 10866 1, 0xff, 0, 3, 10867 }, 10868 { 10869 NPC_ERRLEV_RE, NPC_EC_NOERR, 10870 0, 0, 0, 2, 0, 10871 NPC_S_KPU9_ESP, 8, 0, 10872 NPC_LID_LC, NPC_LT_NA, 10873 0, 10874 1, 0xff, 0, 3, 10875 }, 10876 { 10877 NPC_ERRLEV_RE, NPC_EC_NOERR, 10878 0, 0, 0, 1, 0, 10879 NPC_S_KPU8_AH, 8, 0, 10880 NPC_LID_LC, NPC_LT_NA, 10881 0, 10882 1, 0xff, 0, 3, 10883 }, 10884 { 10885 NPC_ERRLEV_RE, NPC_EC_NOERR, 10886 0, 0, 0, 1, 0, 10887 NPC_S_KPU8_GRE, 8, 0, 10888 NPC_LID_LC, NPC_LT_NA, 10889 0, 10890 1, 0xff, 0, 3, 10891 }, 10892 { 10893 NPC_ERRLEV_RE, NPC_EC_NOERR, 10894 6, 0, 0, 5, 0, 10895 NPC_S_KPU12_TU_IP6, 8, 0, 10896 NPC_LID_LC, NPC_LT_NA, 10897 0, 10898 1, 0xff, 0, 3, 10899 }, 10900 { 10901 NPC_ERRLEV_RE, NPC_EC_NOERR, 10902 2, 6, 10, 2, 0, 10903 NPC_S_KPU9_TU_MPLS_IN_IP, 8, 0, 10904 NPC_LID_LC, NPC_LT_NA, 10905 0, 10906 1, 0xff, 0, 3, 10907 }, 10908 { 10909 NPC_ERRLEV_RE, NPC_EC_NOERR, 10910 0, 0, 0, 0, 0, 10911 NPC_S_KPU7_IP6_ROUT, 8, 0, 10912 NPC_LID_LC, NPC_LT_NA, 10913 0, 10914 1, 0xff, 0, 3, 10915 }, 10916 { 10917 NPC_ERRLEV_RE, NPC_EC_NOERR, 10918 0, 2, 0, 0, 0, 10919 NPC_S_KPU7_IP6_FRAG, 8, 0, 10920 NPC_LID_LC, NPC_LT_NA, 10921 0, 10922 1, 0xff, 0, 3, 10923 }, 10924 { 10925 NPC_ERRLEV_RE, NPC_EC_NOERR, 10926 0, 0, 0, 0, 1, 10927 NPC_S_NA, 0, 0, 10928 NPC_LID_LC, NPC_LT_NA, 10929 0, 10930 0, 0, 0, 0, 10931 }, 10932 { 10933 NPC_ERRLEV_RE, NPC_EC_NOERR, 10934 2, 12, 0, 1, 0, 10935 NPC_S_KPU8_TCP, 8, 0, 10936 NPC_LID_LC, NPC_LT_NA, 10937 0, 10938 1, 0xff, 0, 3, 10939 }, 10940 { 10941 NPC_ERRLEV_RE, NPC_EC_NOERR, 10942 2, 8, 10, 1, 0, 10943 NPC_S_KPU8_UDP, 8, 0, 10944 NPC_LID_LC, NPC_LT_NA, 10945 0, 10946 1, 0xff, 0, 3, 10947 }, 10948 { 10949 NPC_ERRLEV_RE, NPC_EC_NOERR, 10950 0, 0, 0, 1, 0, 10951 NPC_S_KPU8_SCTP, 8, 0, 10952 NPC_LID_LC, NPC_LT_NA, 10953 0, 10954 1, 0xff, 0, 3, 10955 }, 10956 { 10957 NPC_ERRLEV_RE, NPC_EC_NOERR, 10958 0, 0, 0, 1, 0, 10959 NPC_S_KPU8_ICMP, 8, 0, 10960 NPC_LID_LC, NPC_LT_NA, 10961 0, 10962 1, 0xff, 0, 3, 10963 }, 10964 { 10965 NPC_ERRLEV_RE, NPC_EC_NOERR, 10966 0, 0, 0, 1, 0, 10967 NPC_S_KPU8_ICMP6, 8, 0, 10968 NPC_LID_LC, NPC_LT_NA, 10969 0, 10970 1, 0xff, 0, 3, 10971 }, 10972 { 10973 NPC_ERRLEV_RE, NPC_EC_NOERR, 10974 0, 0, 0, 2, 0, 10975 NPC_S_KPU9_ESP, 8, 0, 10976 NPC_LID_LC, NPC_LT_NA, 10977 0, 10978 1, 0xff, 0, 3, 10979 }, 10980 { 10981 NPC_ERRLEV_RE, NPC_EC_NOERR, 10982 0, 0, 0, 1, 0, 10983 NPC_S_KPU8_AH, 8, 0, 10984 NPC_LID_LC, NPC_LT_NA, 10985 0, 10986 1, 0xff, 0, 3, 10987 }, 10988 { 10989 NPC_ERRLEV_RE, NPC_EC_NOERR, 10990 0, 0, 0, 1, 0, 10991 NPC_S_KPU8_GRE, 8, 0, 10992 NPC_LID_LC, NPC_LT_NA, 10993 0, 10994 1, 0xff, 0, 3, 10995 }, 10996 { 10997 NPC_ERRLEV_RE, NPC_EC_NOERR, 10998 6, 0, 0, 5, 0, 10999 NPC_S_KPU12_TU_IP6, 8, 0, 11000 NPC_LID_LC, NPC_LT_NA, 11001 0, 11002 1, 0xff, 0, 3, 11003 }, 11004 { 11005 NPC_ERRLEV_RE, NPC_EC_NOERR, 11006 2, 6, 10, 2, 0, 11007 NPC_S_KPU9_TU_MPLS_IN_IP, 8, 0, 11008 NPC_LID_LC, NPC_LT_NA, 11009 0, 11010 1, 0xff, 0, 3, 11011 }, 11012 { 11013 NPC_ERRLEV_RE, NPC_EC_NOERR, 11014 0, 2, 0, 0, 0, 11015 NPC_S_KPU7_IP6_FRAG, 8, 0, 11016 NPC_LID_LC, NPC_LT_NA, 11017 0, 11018 1, 0xff, 0, 3, 11019 }, 11020 { 11021 NPC_ERRLEV_RE, NPC_EC_NOERR, 11022 0, 0, 0, 0, 1, 11023 NPC_S_NA, 0, 0, 11024 NPC_LID_LC, NPC_LT_NA, 11025 0, 11026 0, 0, 0, 0, 11027 }, 11028 { 11029 NPC_ERRLEV_LC, NPC_EC_UNK, 11030 0, 0, 0, 0, 1, 11031 NPC_S_NA, 0, 0, 11032 NPC_LID_LC, NPC_LT_NA, 11033 0, 11034 0, 0, 0, 0, 11035 }, 11036 }; 11037 11038 static const struct npc_kpu_profile_action kpu7_action_entries[] = { 11039 { 11040 NPC_ERRLEV_RE, NPC_EC_NOERR, 11041 0, 0, 0, 0, 1, 11042 NPC_S_NA, 0, 0, 11043 NPC_LID_LC, NPC_LT_NA, 11044 0, 11045 0, 0, 0, 0, 11046 }, 11047 { 11048 NPC_ERRLEV_RE, NPC_EC_NOERR, 11049 2, 12, 0, 0, 0, 11050 NPC_S_KPU8_TCP, 8, 0, 11051 NPC_LID_LC, NPC_LT_NA, 11052 0, 11053 1, 0xff, 0, 3, 11054 }, 11055 { 11056 NPC_ERRLEV_RE, NPC_EC_NOERR, 11057 2, 8, 10, 0, 0, 11058 NPC_S_KPU8_UDP, 8, 0, 11059 NPC_LID_LC, NPC_LT_NA, 11060 0, 11061 1, 0xff, 0, 3, 11062 }, 11063 { 11064 NPC_ERRLEV_RE, NPC_EC_NOERR, 11065 0, 0, 0, 0, 0, 11066 NPC_S_KPU8_SCTP, 8, 0, 11067 NPC_LID_LC, NPC_LT_NA, 11068 0, 11069 1, 0xff, 0, 3, 11070 }, 11071 { 11072 NPC_ERRLEV_RE, NPC_EC_NOERR, 11073 0, 0, 0, 0, 0, 11074 NPC_S_KPU8_ICMP, 8, 0, 11075 NPC_LID_LC, NPC_LT_NA, 11076 0, 11077 1, 0xff, 0, 3, 11078 }, 11079 { 11080 NPC_ERRLEV_RE, NPC_EC_NOERR, 11081 0, 0, 0, 0, 0, 11082 NPC_S_KPU8_ICMP6, 8, 0, 11083 NPC_LID_LC, NPC_LT_NA, 11084 0, 11085 1, 0xff, 0, 3, 11086 }, 11087 { 11088 NPC_ERRLEV_RE, NPC_EC_NOERR, 11089 0, 0, 0, 1, 0, 11090 NPC_S_KPU9_ESP, 8, 0, 11091 NPC_LID_LC, NPC_LT_NA, 11092 0, 11093 1, 0xff, 0, 3, 11094 }, 11095 { 11096 NPC_ERRLEV_RE, NPC_EC_NOERR, 11097 0, 0, 0, 0, 0, 11098 NPC_S_KPU8_AH, 8, 0, 11099 NPC_LID_LC, NPC_LT_NA, 11100 0, 11101 1, 0xff, 0, 3, 11102 }, 11103 { 11104 NPC_ERRLEV_RE, NPC_EC_NOERR, 11105 0, 0, 0, 0, 0, 11106 NPC_S_KPU8_GRE, 8, 0, 11107 NPC_LID_LC, NPC_LT_NA, 11108 0, 11109 1, 0xff, 0, 3, 11110 }, 11111 { 11112 NPC_ERRLEV_RE, NPC_EC_NOERR, 11113 6, 0, 0, 4, 0, 11114 NPC_S_KPU12_TU_IP6, 8, 0, 11115 NPC_LID_LC, NPC_LT_NA, 11116 0, 11117 1, 0xff, 0, 3, 11118 }, 11119 { 11120 NPC_ERRLEV_RE, NPC_EC_NOERR, 11121 2, 6, 10, 1, 0, 11122 NPC_S_KPU9_TU_MPLS_IN_IP, 8, 0, 11123 NPC_LID_LC, NPC_LT_NA, 11124 0, 11125 1, 0xff, 0, 3, 11126 }, 11127 { 11128 NPC_ERRLEV_RE, NPC_EC_NOERR, 11129 0, 0, 0, 0, 1, 11130 NPC_S_NA, 0, 0, 11131 NPC_LID_LC, NPC_LT_NA, 11132 0, 11133 0, 0, 0, 0, 11134 }, 11135 { 11136 NPC_ERRLEV_RE, NPC_EC_NOERR, 11137 0, 0, 0, 0, 1, 11138 NPC_S_NA, 0, 0, 11139 NPC_LID_LC, NPC_LT_NA, 11140 0, 11141 0, 0, 0, 0, 11142 }, 11143 { 11144 NPC_ERRLEV_RE, NPC_EC_NOERR, 11145 0, 0, 0, 0, 1, 11146 NPC_S_NA, 0, 0, 11147 NPC_LID_LC, NPC_LT_NA, 11148 0, 11149 0, 0, 0, 0, 11150 }, 11151 { 11152 NPC_ERRLEV_RE, NPC_EC_NOERR, 11153 0, 0, 0, 0, 1, 11154 NPC_S_NA, 0, 0, 11155 NPC_LID_LC, NPC_LT_NA, 11156 0, 11157 0, 0, 0, 0, 11158 }, 11159 { 11160 NPC_ERRLEV_RE, NPC_EC_NOERR, 11161 0, 0, 0, 0, 1, 11162 NPC_S_NA, 0, 0, 11163 NPC_LID_LC, NPC_LT_NA, 11164 0, 11165 0, 0, 0, 0, 11166 }, 11167 { 11168 NPC_ERRLEV_RE, NPC_EC_NOERR, 11169 0, 0, 0, 0, 1, 11170 NPC_S_NA, 0, 0, 11171 NPC_LID_LC, NPC_LT_NA, 11172 0, 11173 0, 0, 0, 0, 11174 }, 11175 { 11176 NPC_ERRLEV_RE, NPC_EC_NOERR, 11177 0, 0, 0, 0, 1, 11178 NPC_S_NA, 0, 0, 11179 NPC_LID_LC, NPC_LT_NA, 11180 0, 11181 0, 0, 0, 0, 11182 }, 11183 { 11184 NPC_ERRLEV_RE, NPC_EC_NOERR, 11185 0, 0, 0, 0, 1, 11186 NPC_S_NA, 0, 0, 11187 NPC_LID_LC, NPC_LT_NA, 11188 0, 11189 0, 0, 0, 0, 11190 }, 11191 { 11192 NPC_ERRLEV_RE, NPC_EC_NOERR, 11193 0, 0, 0, 0, 1, 11194 NPC_S_NA, 0, 0, 11195 NPC_LID_LC, NPC_LT_NA, 11196 0, 11197 0, 0, 0, 0, 11198 }, 11199 { 11200 NPC_ERRLEV_RE, NPC_EC_NOERR, 11201 0, 0, 0, 0, 1, 11202 NPC_S_NA, 0, 0, 11203 NPC_LID_LC, NPC_LT_NA, 11204 0, 11205 0, 0, 0, 0, 11206 }, 11207 { 11208 NPC_ERRLEV_RE, NPC_EC_NOERR, 11209 0, 0, 0, 0, 1, 11210 NPC_S_NA, 0, 0, 11211 NPC_LID_LC, NPC_LT_NA, 11212 0, 11213 0, 0, 0, 0, 11214 }, 11215 { 11216 NPC_ERRLEV_RE, NPC_EC_NOERR, 11217 0, 0, 0, 0, 1, 11218 NPC_S_NA, 0, 0, 11219 NPC_LID_LC, NPC_LT_NA, 11220 0, 11221 0, 0, 0, 0, 11222 }, 11223 { 11224 NPC_ERRLEV_LC, NPC_EC_UNK, 11225 0, 0, 0, 0, 1, 11226 NPC_S_NA, 0, 0, 11227 NPC_LID_LC, NPC_LT_NA, 11228 0, 11229 0, 0, 0, 0, 11230 }, 11231 }; 11232 11233 static const struct npc_kpu_profile_action kpu8_action_entries[] = { 11234 { 11235 NPC_ERRLEV_LD, NPC_EC_TCP_FLAGS_FIN_ONLY, 11236 0, 0, 0, 0, 1, 11237 NPC_S_NA, 0, 1, 11238 NPC_LID_LD, NPC_LT_LD_TCP, 11239 0, 11240 0, 0, 0, 0, 11241 }, 11242 { 11243 NPC_ERRLEV_LD, NPC_EC_TCP_FLAGS_ZERO, 11244 0, 0, 0, 0, 1, 11245 NPC_S_NA, 0, 1, 11246 NPC_LID_LD, NPC_LT_LD_TCP, 11247 0, 11248 0, 0, 0, 0, 11249 }, 11250 { 11251 NPC_ERRLEV_LD, NPC_EC_TCP_FLAGS_RST_FIN, 11252 0, 0, 0, 0, 1, 11253 NPC_S_NA, 0, 1, 11254 NPC_LID_LD, NPC_LT_LD_TCP, 11255 0, 11256 0, 0, 0, 0, 11257 }, 11258 { 11259 NPC_ERRLEV_LD, NPC_EC_TCP_FLAGS_URG_SYN, 11260 0, 0, 0, 0, 1, 11261 NPC_S_NA, 0, 1, 11262 NPC_LID_LD, NPC_LT_LD_TCP, 11263 0, 11264 0, 0, 0, 0, 11265 }, 11266 { 11267 NPC_ERRLEV_LD, NPC_EC_TCP_FLAGS_RST_SYN, 11268 0, 0, 0, 0, 1, 11269 NPC_S_NA, 0, 1, 11270 NPC_LID_LD, NPC_LT_LD_TCP, 11271 0, 11272 0, 0, 0, 0, 11273 }, 11274 { 11275 NPC_ERRLEV_LD, NPC_EC_TCP_FLAGS_SYN_FIN, 11276 0, 0, 0, 0, 1, 11277 NPC_S_NA, 0, 1, 11278 NPC_LID_LD, NPC_LT_LD_TCP, 11279 0, 11280 0, 0, 0, 0, 11281 }, 11282 { 11283 NPC_ERRLEV_RE, NPC_EC_NOERR, 11284 0, 0, 0, 7, 0, 11285 NPC_S_KPU16_HTTP_DATA, 20, 1, 11286 NPC_LID_LD, NPC_LT_LD_TCP, 11287 0, 11288 0, 0, 0, 0, 11289 }, 11290 { 11291 NPC_ERRLEV_RE, NPC_EC_NOERR, 11292 0, 0, 0, 7, 0, 11293 NPC_S_KPU16_HTTPS_DATA, 20, 1, 11294 NPC_LID_LD, NPC_LT_LD_TCP, 11295 0, 11296 0, 0, 0, 0, 11297 }, 11298 { 11299 NPC_ERRLEV_RE, NPC_EC_NOERR, 11300 0, 0, 0, 7, 0, 11301 NPC_S_KPU16_PPTP_DATA, 20, 1, 11302 NPC_LID_LD, NPC_LT_LD_TCP, 11303 0, 11304 0, 0, 0, 0, 11305 }, 11306 { 11307 NPC_ERRLEV_RE, NPC_EC_NOERR, 11308 0, 0, 0, 7, 0, 11309 NPC_S_KPU16_TCP_DATA, 20, 1, 11310 NPC_LID_LD, NPC_LT_LD_TCP, 11311 NPC_F_LD_L_TCP_UNK_PORT, 11312 0, 0, 0, 0, 11313 }, 11314 { 11315 NPC_ERRLEV_RE, NPC_EC_NOERR, 11316 0, 0, 0, 7, 0, 11317 NPC_S_KPU16_HTTP_DATA, 0, 1, 11318 NPC_LID_LD, NPC_LT_LD_TCP, 11319 NPC_F_LD_L_TCP_HAS_OPTIONS, 11320 12, 0xf0, 1, 2, 11321 }, 11322 { 11323 NPC_ERRLEV_RE, NPC_EC_NOERR, 11324 0, 0, 0, 7, 0, 11325 NPC_S_KPU16_HTTPS_DATA, 0, 1, 11326 NPC_LID_LD, NPC_LT_LD_TCP, 11327 NPC_F_LD_L_TCP_HAS_OPTIONS, 11328 12, 0xf0, 1, 2, 11329 }, 11330 { 11331 NPC_ERRLEV_RE, NPC_EC_NOERR, 11332 0, 0, 0, 7, 0, 11333 NPC_S_KPU16_PPTP_DATA, 0, 1, 11334 NPC_LID_LD, NPC_LT_LD_TCP, 11335 NPC_F_LD_L_TCP_HAS_OPTIONS, 11336 12, 0xf0, 1, 2, 11337 }, 11338 { 11339 NPC_ERRLEV_RE, NPC_EC_NOERR, 11340 0, 0, 0, 7, 0, 11341 NPC_S_KPU16_TCP_DATA, 0, 1, 11342 NPC_LID_LD, NPC_LT_LD_TCP, 11343 NPC_F_LD_L_TCP_UNK_PORT_HAS_OPTIONS, 11344 12, 0xf0, 1, 2, 11345 }, 11346 { 11347 NPC_ERRLEV_RE, NPC_EC_NOERR, 11348 0, 0, 2, 0, 0, 11349 NPC_S_KPU9_VXLAN, 8, 1, 11350 NPC_LID_LD, NPC_LT_LD_UDP, 11351 0, 11352 0, 0, 0, 0, 11353 }, 11354 { 11355 NPC_ERRLEV_RE, NPC_EC_NOERR, 11356 0, 0, 2, 0, 0, 11357 NPC_S_KPU9_VXLANGPE, 8, 1, 11358 NPC_LID_LD, NPC_LT_LD_UDP, 11359 0, 11360 0, 0, 0, 0, 11361 }, 11362 { 11363 NPC_ERRLEV_RE, NPC_EC_NOERR, 11364 0, 0, 2, 0, 0, 11365 NPC_S_KPU9_GENEVE, 8, 1, 11366 NPC_LID_LD, NPC_LT_LD_UDP, 11367 0, 11368 0, 0, 0, 0, 11369 }, 11370 { 11371 NPC_ERRLEV_RE, NPC_EC_NOERR, 11372 0, 0, 2, 0, 0, 11373 NPC_S_KPU9_GTPC, 8, 1, 11374 NPC_LID_LD, NPC_LT_LD_UDP, 11375 0, 11376 0, 0, 0, 0, 11377 }, 11378 { 11379 NPC_ERRLEV_RE, NPC_EC_NOERR, 11380 0, 0, 2, 0, 0, 11381 NPC_S_KPU9_GTPU, 8, 1, 11382 NPC_LID_LD, NPC_LT_LD_UDP, 11383 0, 11384 0, 0, 0, 0, 11385 }, 11386 { 11387 NPC_ERRLEV_RE, NPC_EC_NOERR, 11388 0, 0, 0, 0, 1, 11389 NPC_S_KPU16_UDP_PTP, 0, 1, 11390 NPC_LID_LD, NPC_LT_LD_UDP, 11391 0, 11392 0, 0, 0, 0, 11393 }, 11394 { 11395 NPC_ERRLEV_RE, NPC_EC_NOERR, 11396 0, 0, 0, 0, 1, 11397 NPC_S_KPU16_UDP_PTP, 0, 1, 11398 NPC_LID_LD, NPC_LT_LD_UDP, 11399 0, 11400 0, 0, 0, 0, 11401 }, 11402 { 11403 NPC_ERRLEV_RE, NPC_EC_NOERR, 11404 2, 6, 10, 0, 0, 11405 NPC_S_KPU9_TU_MPLS_IN_UDP, 8, 1, 11406 NPC_LID_LD, NPC_LT_LD_UDP, 11407 0, 11408 0, 0, 0, 0, 11409 }, 11410 { 11411 NPC_ERRLEV_RE, NPC_EC_NOERR, 11412 0, 0, 0, 0, 0, 11413 NPC_S_KPU9_ESP, 8, 1, 11414 NPC_LID_LD, NPC_LT_LD_UDP, 11415 0, 11416 0, 0, 0, 0, 11417 }, 11418 { 11419 NPC_ERRLEV_RE, NPC_EC_NOERR, 11420 0, 0, 0, 0, 0, 11421 NPC_S_KPU9_ESP, 8, 1, 11422 NPC_LID_LD, NPC_LT_LD_UDP, 11423 0, 11424 0, 0, 0, 0, 11425 }, 11426 { 11427 NPC_ERRLEV_RE, NPC_EC_NOERR, 11428 0, 0, 0, 7, 0, 11429 NPC_S_KPU16_UDP_DATA, 8, 1, 11430 NPC_LID_LD, NPC_LT_LD_UDP, 11431 0, 11432 0, 0, 0, 0, 11433 }, 11434 { 11435 NPC_ERRLEV_RE, NPC_EC_NOERR, 11436 0, 0, 0, 0, 1, 11437 NPC_S_NA, 0, 1, 11438 NPC_LID_LD, NPC_LT_LD_SCTP, 11439 0, 11440 0, 0, 0, 0, 11441 }, 11442 { 11443 NPC_ERRLEV_RE, NPC_EC_NOERR, 11444 0, 0, 0, 0, 1, 11445 NPC_S_NA, 0, 1, 11446 NPC_LID_LD, NPC_LT_LD_ICMP, 11447 0, 11448 0, 0, 0, 0, 11449 }, 11450 { 11451 NPC_ERRLEV_RE, NPC_EC_NOERR, 11452 0, 0, 0, 0, 1, 11453 NPC_S_NA, 0, 1, 11454 NPC_LID_LD, NPC_LT_LD_IGMP, 11455 0, 11456 0, 0, 0, 0, 11457 }, 11458 { 11459 NPC_ERRLEV_RE, NPC_EC_NOERR, 11460 0, 0, 0, 0, 1, 11461 NPC_S_NA, 0, 1, 11462 NPC_LID_LD, NPC_LT_LD_ICMP6, 11463 0, 11464 0, 0, 0, 0, 11465 }, 11466 { 11467 NPC_ERRLEV_RE, NPC_EC_NOERR, 11468 0, 0, 0, 0, 1, 11469 NPC_S_NA, 0, 1, 11470 NPC_LID_LD, NPC_LT_LD_AH, 11471 0, 11472 0, 0, 0, 0, 11473 }, 11474 { 11475 NPC_ERRLEV_RE, NPC_EC_NOERR, 11476 12, 16, 20, 2, 0, 11477 NPC_S_KPU11_TU_ETHER, 8, 1, 11478 NPC_LID_LD, NPC_LT_LD_NVGRE, 11479 NPC_F_LD_L_GRE_NVGRE, 11480 0, 0, 0, 0, 11481 }, 11482 { 11483 NPC_ERRLEV_LD, NPC_EC_NVGRE, 11484 0, 0, 0, 0, 1, 11485 NPC_S_NA, 0, 0, 11486 NPC_LID_LD, NPC_LT_NA, 11487 0, 11488 0, 0, 0, 0, 11489 }, 11490 { 11491 NPC_ERRLEV_RE, NPC_EC_NOERR, 11492 2, 6, 10, 0, 0, 11493 NPC_S_KPU9_TU_MPLS_IN_GRE, 4, 1, 11494 NPC_LID_LD, NPC_LT_LD_GRE, 11495 0, 11496 0, 0, 0, 0, 11497 }, 11498 { 11499 NPC_ERRLEV_RE, NPC_EC_NOERR, 11500 2, 6, 10, 0, 0, 11501 NPC_S_KPU9_TU_MPLS_IN_GRE, 8, 1, 11502 NPC_LID_LD, NPC_LT_LD_GRE, 11503 NPC_F_LD_L_GRE_HAS_CSUM, 11504 0, 0, 0, 0, 11505 }, 11506 { 11507 NPC_ERRLEV_RE, NPC_EC_NOERR, 11508 2, 6, 10, 0, 0, 11509 NPC_S_KPU9_TU_MPLS_IN_GRE, 8, 1, 11510 NPC_LID_LD, NPC_LT_LD_GRE, 11511 NPC_F_LD_L_GRE_HAS_KEY, 11512 0, 0, 0, 0, 11513 }, 11514 { 11515 NPC_ERRLEV_RE, NPC_EC_NOERR, 11516 2, 6, 10, 0, 0, 11517 NPC_S_KPU9_TU_MPLS_IN_GRE, 8, 1, 11518 NPC_LID_LD, NPC_LT_LD_GRE, 11519 NPC_F_LD_L_GRE_HAS_SEQ, 11520 0, 0, 0, 0, 11521 }, 11522 { 11523 NPC_ERRLEV_RE, NPC_EC_NOERR, 11524 2, 6, 10, 0, 0, 11525 NPC_S_KPU9_TU_MPLS_IN_GRE, 12, 1, 11526 NPC_LID_LD, NPC_LT_LD_GRE, 11527 NPC_F_LD_L_GRE_HAS_CSUM_KEY, 11528 0, 0, 0, 0, 11529 }, 11530 { 11531 NPC_ERRLEV_RE, NPC_EC_NOERR, 11532 2, 6, 10, 0, 0, 11533 NPC_S_KPU9_TU_MPLS_IN_GRE, 12, 1, 11534 NPC_LID_LD, NPC_LT_LD_GRE, 11535 NPC_F_LD_L_GRE_HAS_CSUM_SEQ, 11536 0, 0, 0, 0, 11537 }, 11538 { 11539 NPC_ERRLEV_RE, NPC_EC_NOERR, 11540 2, 6, 10, 0, 0, 11541 NPC_S_KPU9_TU_MPLS_IN_GRE, 12, 1, 11542 NPC_LID_LD, NPC_LT_LD_GRE, 11543 NPC_F_LD_L_GRE_HAS_KEY_SEQ, 11544 0, 0, 0, 0, 11545 }, 11546 { 11547 NPC_ERRLEV_RE, NPC_EC_NOERR, 11548 2, 6, 10, 0, 0, 11549 NPC_S_KPU9_TU_MPLS_IN_GRE, 16, 1, 11550 NPC_LID_LD, NPC_LT_LD_GRE, 11551 NPC_F_LD_L_GRE_HAS_CSUM_KEY_SEQ, 11552 0, 0, 0, 0, 11553 }, 11554 { 11555 NPC_ERRLEV_RE, NPC_EC_NOERR, 11556 2, 6, 10, 0, 0, 11557 NPC_S_KPU9_TU_MPLS_IN_GRE, 4, 1, 11558 NPC_LID_LD, NPC_LT_LD_GRE, 11559 0, 11560 0, 0, 0, 0, 11561 }, 11562 { 11563 NPC_ERRLEV_RE, NPC_EC_NOERR, 11564 2, 6, 10, 0, 0, 11565 NPC_S_KPU9_TU_MPLS_IN_GRE, 8, 1, 11566 NPC_LID_LD, NPC_LT_LD_GRE, 11567 NPC_F_LD_L_GRE_HAS_CSUM, 11568 0, 0, 0, 0, 11569 }, 11570 { 11571 NPC_ERRLEV_RE, NPC_EC_NOERR, 11572 2, 6, 10, 0, 0, 11573 NPC_S_KPU9_TU_MPLS_IN_GRE, 8, 1, 11574 NPC_LID_LD, NPC_LT_LD_GRE, 11575 NPC_F_LD_L_GRE_HAS_KEY, 11576 0, 0, 0, 0, 11577 }, 11578 { 11579 NPC_ERRLEV_RE, NPC_EC_NOERR, 11580 2, 6, 10, 0, 0, 11581 NPC_S_KPU9_TU_MPLS_IN_GRE, 8, 1, 11582 NPC_LID_LD, NPC_LT_LD_GRE, 11583 NPC_F_LD_L_GRE_HAS_SEQ, 11584 0, 0, 0, 0, 11585 }, 11586 { 11587 NPC_ERRLEV_RE, NPC_EC_NOERR, 11588 2, 6, 10, 0, 0, 11589 NPC_S_KPU9_TU_MPLS_IN_GRE, 12, 1, 11590 NPC_LID_LD, NPC_LT_LD_GRE, 11591 NPC_F_LD_L_GRE_HAS_CSUM_KEY, 11592 0, 0, 0, 0, 11593 }, 11594 { 11595 NPC_ERRLEV_RE, NPC_EC_NOERR, 11596 2, 6, 10, 0, 0, 11597 NPC_S_KPU9_TU_MPLS_IN_GRE, 12, 1, 11598 NPC_LID_LD, NPC_LT_LD_GRE, 11599 NPC_F_LD_L_GRE_HAS_CSUM_SEQ, 11600 0, 0, 0, 0, 11601 }, 11602 { 11603 NPC_ERRLEV_RE, NPC_EC_NOERR, 11604 2, 6, 10, 0, 0, 11605 NPC_S_KPU9_TU_MPLS_IN_GRE, 12, 1, 11606 NPC_LID_LD, NPC_LT_LD_GRE, 11607 NPC_F_LD_L_GRE_HAS_KEY_SEQ, 11608 0, 0, 0, 0, 11609 }, 11610 { 11611 NPC_ERRLEV_RE, NPC_EC_NOERR, 11612 2, 6, 10, 0, 0, 11613 NPC_S_KPU9_TU_MPLS_IN_GRE, 16, 1, 11614 NPC_LID_LD, NPC_LT_LD_GRE, 11615 NPC_F_LD_L_GRE_HAS_CSUM_KEY_SEQ, 11616 0, 0, 0, 0, 11617 }, 11618 { 11619 NPC_ERRLEV_RE, NPC_EC_NOERR, 11620 2, 0, 0, 0, 0, 11621 NPC_S_KPU9_TU_NSH_IN_GRE, 4, 1, 11622 NPC_LID_LD, NPC_LT_LD_GRE, 11623 0, 11624 0, 0, 0, 0, 11625 }, 11626 { 11627 NPC_ERRLEV_RE, NPC_EC_NOERR, 11628 2, 0, 0, 0, 0, 11629 NPC_S_KPU9_TU_NSH_IN_GRE, 8, 1, 11630 NPC_LID_LD, NPC_LT_LD_GRE, 11631 NPC_F_LD_L_GRE_HAS_CSUM, 11632 0, 0, 0, 0, 11633 }, 11634 { 11635 NPC_ERRLEV_RE, NPC_EC_NOERR, 11636 2, 0, 0, 0, 0, 11637 NPC_S_KPU9_TU_NSH_IN_GRE, 8, 1, 11638 NPC_LID_LD, NPC_LT_LD_GRE, 11639 NPC_F_LD_L_GRE_HAS_KEY, 11640 0, 0, 0, 0, 11641 }, 11642 { 11643 NPC_ERRLEV_RE, NPC_EC_NOERR, 11644 2, 0, 0, 0, 0, 11645 NPC_S_KPU9_TU_NSH_IN_GRE, 8, 1, 11646 NPC_LID_LD, NPC_LT_LD_GRE, 11647 NPC_F_LD_L_GRE_HAS_SEQ, 11648 0, 0, 0, 0, 11649 }, 11650 { 11651 NPC_ERRLEV_RE, NPC_EC_NOERR, 11652 2, 0, 0, 0, 0, 11653 NPC_S_KPU9_TU_NSH_IN_GRE, 12, 1, 11654 NPC_LID_LD, NPC_LT_LD_GRE, 11655 NPC_F_LD_L_GRE_HAS_CSUM_KEY, 11656 0, 0, 0, 0, 11657 }, 11658 { 11659 NPC_ERRLEV_RE, NPC_EC_NOERR, 11660 2, 0, 0, 0, 0, 11661 NPC_S_KPU9_TU_NSH_IN_GRE, 12, 1, 11662 NPC_LID_LD, NPC_LT_LD_GRE, 11663 NPC_F_LD_L_GRE_HAS_CSUM_SEQ, 11664 0, 0, 0, 0, 11665 }, 11666 { 11667 NPC_ERRLEV_RE, NPC_EC_NOERR, 11668 2, 0, 0, 0, 0, 11669 NPC_S_KPU9_TU_NSH_IN_GRE, 12, 1, 11670 NPC_LID_LD, NPC_LT_LD_GRE, 11671 NPC_F_LD_L_GRE_HAS_KEY_SEQ, 11672 0, 0, 0, 0, 11673 }, 11674 { 11675 NPC_ERRLEV_RE, NPC_EC_NOERR, 11676 2, 0, 0, 0, 0, 11677 NPC_S_KPU9_TU_NSH_IN_GRE, 16, 1, 11678 NPC_LID_LD, NPC_LT_LD_GRE, 11679 NPC_F_LD_L_GRE_HAS_CSUM_KEY_SEQ, 11680 0, 0, 0, 0, 11681 }, 11682 { 11683 NPC_ERRLEV_RE, NPC_EC_NOERR, 11684 8, 0, 6, 3, 0, 11685 NPC_S_KPU12_TU_IP, 4, 1, 11686 NPC_LID_LD, NPC_LT_LD_GRE, 11687 0, 11688 0, 0, 0, 0, 11689 }, 11690 { 11691 NPC_ERRLEV_RE, NPC_EC_NOERR, 11692 8, 0, 6, 3, 0, 11693 NPC_S_KPU12_TU_IP, 8, 1, 11694 NPC_LID_LD, NPC_LT_LD_GRE, 11695 NPC_F_LD_L_GRE_HAS_CSUM, 11696 0, 0, 0, 0, 11697 }, 11698 { 11699 NPC_ERRLEV_RE, NPC_EC_NOERR, 11700 8, 0, 6, 3, 0, 11701 NPC_S_KPU12_TU_IP, 8, 1, 11702 NPC_LID_LD, NPC_LT_LD_GRE, 11703 NPC_F_LD_L_GRE_HAS_KEY, 11704 0, 0, 0, 0, 11705 }, 11706 { 11707 NPC_ERRLEV_RE, NPC_EC_NOERR, 11708 8, 0, 6, 3, 0, 11709 NPC_S_KPU12_TU_IP, 8, 1, 11710 NPC_LID_LD, NPC_LT_LD_GRE, 11711 NPC_F_LD_L_GRE_HAS_SEQ, 11712 0, 0, 0, 0, 11713 }, 11714 { 11715 NPC_ERRLEV_RE, NPC_EC_NOERR, 11716 8, 0, 6, 3, 0, 11717 NPC_S_KPU12_TU_IP, 12, 1, 11718 NPC_LID_LD, NPC_LT_LD_GRE, 11719 NPC_F_LD_L_GRE_HAS_CSUM_KEY, 11720 0, 0, 0, 0, 11721 }, 11722 { 11723 NPC_ERRLEV_RE, NPC_EC_NOERR, 11724 8, 0, 6, 3, 0, 11725 NPC_S_KPU12_TU_IP, 12, 1, 11726 NPC_LID_LD, NPC_LT_LD_GRE, 11727 NPC_F_LD_L_GRE_HAS_CSUM_SEQ, 11728 0, 0, 0, 0, 11729 }, 11730 { 11731 NPC_ERRLEV_RE, NPC_EC_NOERR, 11732 8, 0, 6, 3, 0, 11733 NPC_S_KPU12_TU_IP, 12, 1, 11734 NPC_LID_LD, NPC_LT_LD_GRE, 11735 NPC_F_LD_L_GRE_HAS_KEY_SEQ, 11736 0, 0, 0, 0, 11737 }, 11738 { 11739 NPC_ERRLEV_RE, NPC_EC_NOERR, 11740 8, 0, 6, 3, 0, 11741 NPC_S_KPU12_TU_IP, 16, 1, 11742 NPC_LID_LD, NPC_LT_LD_GRE, 11743 NPC_F_LD_L_GRE_HAS_CSUM_KEY_SEQ, 11744 0, 0, 0, 0, 11745 }, 11746 { 11747 NPC_ERRLEV_RE, NPC_EC_NOERR, 11748 6, 0, 0, 3, 0, 11749 NPC_S_KPU12_TU_IP6, 4, 1, 11750 NPC_LID_LD, NPC_LT_LD_GRE, 11751 0, 11752 0, 0, 0, 0, 11753 }, 11754 { 11755 NPC_ERRLEV_RE, NPC_EC_NOERR, 11756 6, 0, 0, 3, 0, 11757 NPC_S_KPU12_TU_IP6, 8, 1, 11758 NPC_LID_LD, NPC_LT_LD_GRE, 11759 NPC_F_LD_L_GRE_HAS_CSUM, 11760 0, 0, 0, 0, 11761 }, 11762 { 11763 NPC_ERRLEV_RE, NPC_EC_NOERR, 11764 6, 0, 0, 3, 0, 11765 NPC_S_KPU12_TU_IP6, 8, 1, 11766 NPC_LID_LD, NPC_LT_LD_GRE, 11767 NPC_F_LD_L_GRE_HAS_KEY, 11768 0, 0, 0, 0, 11769 }, 11770 { 11771 NPC_ERRLEV_RE, NPC_EC_NOERR, 11772 6, 0, 0, 3, 0, 11773 NPC_S_KPU12_TU_IP6, 8, 1, 11774 NPC_LID_LD, NPC_LT_LD_GRE, 11775 NPC_F_LD_L_GRE_HAS_SEQ, 11776 0, 0, 0, 0, 11777 }, 11778 { 11779 NPC_ERRLEV_RE, NPC_EC_NOERR, 11780 6, 0, 0, 3, 0, 11781 NPC_S_KPU12_TU_IP6, 12, 1, 11782 NPC_LID_LD, NPC_LT_LD_GRE, 11783 NPC_F_LD_L_GRE_HAS_CSUM_KEY, 11784 0, 0, 0, 0, 11785 }, 11786 { 11787 NPC_ERRLEV_RE, NPC_EC_NOERR, 11788 6, 0, 0, 3, 0, 11789 NPC_S_KPU12_TU_IP6, 12, 1, 11790 NPC_LID_LD, NPC_LT_LD_GRE, 11791 NPC_F_LD_L_GRE_HAS_CSUM_SEQ, 11792 0, 0, 0, 0, 11793 }, 11794 { 11795 NPC_ERRLEV_RE, NPC_EC_NOERR, 11796 6, 0, 0, 3, 0, 11797 NPC_S_KPU12_TU_IP6, 12, 1, 11798 NPC_LID_LD, NPC_LT_LD_GRE, 11799 NPC_F_LD_L_GRE_HAS_KEY_SEQ, 11800 0, 0, 0, 0, 11801 }, 11802 { 11803 NPC_ERRLEV_RE, NPC_EC_NOERR, 11804 6, 0, 0, 3, 0, 11805 NPC_S_KPU12_TU_IP6, 16, 1, 11806 NPC_LID_LD, NPC_LT_LD_GRE, 11807 NPC_F_LD_L_GRE_HAS_CSUM_KEY_SEQ, 11808 0, 0, 0, 0, 11809 }, 11810 { 11811 NPC_ERRLEV_RE, NPC_EC_NOERR, 11812 0, 0, 0, 0, 1, 11813 NPC_S_NA, 0, 1, 11814 NPC_LID_LD, NPC_LT_LD_GRE, 11815 NPC_F_LD_L_GRE_HAS_ROUTE, 11816 0, 0, 0, 0, 11817 }, 11818 { 11819 NPC_ERRLEV_RE, NPC_EC_NOERR, 11820 0, 0, 0, 0, 1, 11821 NPC_S_NA, 0, 1, 11822 NPC_LID_LD, NPC_LT_LD_GRE, 11823 NPC_F_LD_L_GRE_UNK_PROTO, 11824 0, 0, 0, 0, 11825 }, 11826 { 11827 NPC_ERRLEV_LD, NPC_EC_GRE, 11828 0, 0, 0, 0, 1, 11829 NPC_S_NA, 0, 0, 11830 NPC_LID_LD, NPC_LT_NA, 11831 0, 11832 0, 0, 0, 0, 11833 }, 11834 { 11835 NPC_ERRLEV_RE, NPC_EC_NOERR, 11836 0, 0, 0, 2, 0, 11837 NPC_S_KPU11_TU_PPP, 8, 1, 11838 NPC_LID_LD, NPC_LT_LD_GRE, 11839 NPC_F_LD_L_GRE_VER1, 11840 0, 0, 0, 0, 11841 }, 11842 { 11843 NPC_ERRLEV_RE, NPC_EC_NOERR, 11844 0, 0, 0, 2, 0, 11845 NPC_S_KPU11_TU_PPP, 12, 1, 11846 NPC_LID_LD, NPC_LT_LD_GRE, 11847 NPC_F_LD_L_GRE_VER1_HAS_SEQ, 11848 0, 0, 0, 0, 11849 }, 11850 { 11851 NPC_ERRLEV_RE, NPC_EC_NOERR, 11852 0, 0, 0, 2, 0, 11853 NPC_S_KPU11_TU_PPP, 12, 1, 11854 NPC_LID_LD, NPC_LT_LD_GRE, 11855 NPC_F_LD_L_GRE_VER1_HAS_ACK, 11856 0, 0, 0, 0, 11857 }, 11858 { 11859 NPC_ERRLEV_RE, NPC_EC_NOERR, 11860 0, 0, 0, 2, 0, 11861 NPC_S_KPU11_TU_PPP, 16, 1, 11862 NPC_LID_LD, NPC_LT_LD_GRE, 11863 NPC_F_LD_L_GRE_VER1_HAS_SEQ_ACK, 11864 0, 0, 0, 0, 11865 }, 11866 { 11867 NPC_ERRLEV_RE, NPC_EC_NOERR, 11868 0, 0, 0, 0, 1, 11869 NPC_S_NA, 0, 1, 11870 NPC_LID_LD, NPC_LT_LD_GRE, 11871 NPC_F_LD_L_GRE_VER1_UNK_PROTO, 11872 0, 0, 0, 0, 11873 }, 11874 { 11875 NPC_ERRLEV_LD, NPC_EC_GRE_VER1, 11876 0, 0, 0, 0, 1, 11877 NPC_S_NA, 0, 0, 11878 NPC_LID_LD, NPC_LT_NA, 11879 0, 11880 0, 0, 0, 0, 11881 }, 11882 { 11883 NPC_ERRLEV_LD, NPC_EC_UNK, 11884 0, 0, 0, 0, 1, 11885 NPC_S_NA, 0, 0, 11886 NPC_LID_LD, NPC_LT_NA, 11887 0, 11888 0, 0, 0, 0, 11889 }, 11890 }; 11891 11892 static const struct npc_kpu_profile_action kpu9_action_entries[] = { 11893 { 11894 NPC_ERRLEV_RE, NPC_EC_NOERR, 11895 0, 0, 0, 0, 0, 11896 NPC_S_KPU10_TU_MPLS_PL, 4, 1, 11897 NPC_LID_LE, NPC_LT_LE_TU_MPLS_IN_GRE, 11898 0, 11899 0, 0, 0, 0, 11900 }, 11901 { 11902 NPC_ERRLEV_RE, NPC_EC_NOERR, 11903 0, 0, 0, 0, 0, 11904 NPC_S_KPU10_TU_MPLS_PL, 8, 1, 11905 NPC_LID_LE, NPC_LT_LE_TU_MPLS_IN_GRE, 11906 0, 11907 0, 0, 0, 0, 11908 }, 11909 { 11910 NPC_ERRLEV_RE, NPC_EC_NOERR, 11911 0, 0, 0, 0, 0, 11912 NPC_S_KPU10_TU_MPLS_PL, 12, 1, 11913 NPC_LID_LE, NPC_LT_LE_TU_MPLS_IN_GRE, 11914 0, 11915 0, 0, 0, 0, 11916 }, 11917 { 11918 NPC_ERRLEV_RE, NPC_EC_NOERR, 11919 2, 4, 0, 0, 0, 11920 NPC_S_KPU10_TU_MPLS, 12, 1, 11921 NPC_LID_LE, NPC_LT_LE_TU_MPLS_IN_GRE, 11922 0, 11923 0, 0, 0, 0, 11924 }, 11925 { 11926 NPC_ERRLEV_RE, NPC_EC_NOERR, 11927 0, 0, 0, 0, 0, 11928 NPC_S_KPU10_TU_MPLS_PL, 4, 1, 11929 NPC_LID_LD, NPC_LT_LD_TU_MPLS_IN_NSH, 11930 0, 11931 0, 0, 0, 0, 11932 }, 11933 { 11934 NPC_ERRLEV_RE, NPC_EC_NOERR, 11935 0, 0, 0, 0, 0, 11936 NPC_S_KPU10_TU_MPLS_PL, 8, 1, 11937 NPC_LID_LD, NPC_LT_LD_TU_MPLS_IN_NSH, 11938 NPC_F_LD_L_MPLS_2_LABELS, 11939 0, 0, 0, 0, 11940 }, 11941 { 11942 NPC_ERRLEV_RE, NPC_EC_NOERR, 11943 0, 0, 0, 0, 0, 11944 NPC_S_KPU10_TU_MPLS_PL, 12, 1, 11945 NPC_LID_LD, NPC_LT_LD_TU_MPLS_IN_NSH, 11946 NPC_F_LD_L_MPLS_3_LABELS, 11947 0, 0, 0, 0, 11948 }, 11949 { 11950 NPC_ERRLEV_RE, NPC_EC_NOERR, 11951 2, 4, 0, 0, 0, 11952 NPC_S_KPU10_TU_MPLS, 12, 1, 11953 NPC_LID_LD, NPC_LT_LD_TU_MPLS_IN_NSH, 11954 NPC_F_LD_L_MPLS_4_LABELS, 11955 0, 0, 0, 0, 11956 }, 11957 { 11958 NPC_ERRLEV_RE, NPC_EC_NOERR, 11959 0, 0, 0, 0, 0, 11960 NPC_S_KPU10_TU_MPLS_PL, 4, 1, 11961 NPC_LID_LD, NPC_LT_LD_TU_MPLS_IN_IP, 11962 0, 11963 0, 0, 0, 0, 11964 }, 11965 { 11966 NPC_ERRLEV_RE, NPC_EC_NOERR, 11967 0, 0, 0, 0, 0, 11968 NPC_S_KPU10_TU_MPLS_PL, 8, 1, 11969 NPC_LID_LD, NPC_LT_LD_TU_MPLS_IN_IP, 11970 NPC_F_LD_L_MPLS_2_LABELS, 11971 0, 0, 0, 0, 11972 }, 11973 { 11974 NPC_ERRLEV_RE, NPC_EC_NOERR, 11975 0, 0, 0, 0, 0, 11976 NPC_S_KPU10_TU_MPLS_PL, 12, 1, 11977 NPC_LID_LD, NPC_LT_LD_TU_MPLS_IN_IP, 11978 NPC_F_LD_L_MPLS_3_LABELS, 11979 0, 0, 0, 0, 11980 }, 11981 { 11982 NPC_ERRLEV_RE, NPC_EC_NOERR, 11983 2, 4, 0, 0, 0, 11984 NPC_S_KPU10_TU_MPLS, 12, 1, 11985 NPC_LID_LD, NPC_LT_LD_TU_MPLS_IN_IP, 11986 NPC_F_LD_L_MPLS_4_LABELS, 11987 0, 0, 0, 0, 11988 }, 11989 { 11990 NPC_ERRLEV_RE, NPC_EC_NOERR, 11991 8, 0, 6, 2, 0, 11992 NPC_S_KPU12_TU_IP, 0, 1, 11993 NPC_LID_LE, NPC_LT_LE_TU_NSH_IN_GRE, 11994 0, 11995 1, 0x3f, 0, 2, 11996 }, 11997 { 11998 NPC_ERRLEV_RE, NPC_EC_NOERR, 11999 6, 0, 0, 2, 0, 12000 NPC_S_KPU12_TU_IP6, 0, 1, 12001 NPC_LID_LE, NPC_LT_LE_TU_NSH_IN_GRE, 12002 0, 12003 1, 0x3f, 0, 2, 12004 }, 12005 { 12006 NPC_ERRLEV_RE, NPC_EC_NOERR, 12007 12, 16, 20, 1, 0, 12008 NPC_S_KPU11_TU_ETHER, 0, 1, 12009 NPC_LID_LE, NPC_LT_LE_TU_NSH_IN_GRE, 12010 0, 12011 1, 0x3f, 0, 2, 12012 }, 12013 { 12014 NPC_ERRLEV_LE, NPC_EC_NSH_UNK, 12015 0, 0, 0, 0, 1, 12016 NPC_S_NA, 0, 1, 12017 NPC_LID_LE, NPC_LT_LE_TU_NSH_IN_GRE, 12018 0, 12019 0, 0, 0, 0, 12020 }, 12021 { 12022 NPC_ERRLEV_RE, NPC_EC_NOERR, 12023 12, 16, 20, 1, 0, 12024 NPC_S_KPU11_TU_ETHER, 8, 1, 12025 NPC_LID_LE, NPC_LT_LE_VXLAN, 12026 0, 12027 0, 0, 0, 0, 12028 }, 12029 { 12030 NPC_ERRLEV_RE, NPC_EC_NOERR, 12031 12, 16, 20, 1, 0, 12032 NPC_S_KPU11_TU_ETHER, 8, 1, 12033 NPC_LID_LE, NPC_LT_LE_VXLAN, 12034 NPC_F_LE_L_VXLAN_NOVNI, 12035 0, 0, 0, 0, 12036 }, 12037 { 12038 NPC_ERRLEV_LE, NPC_EC_VXLAN, 12039 0, 0, 0, 0, 1, 12040 NPC_S_NA, 0, 0, 12041 NPC_LID_LE, NPC_LT_NA, 12042 0, 12043 0, 0, 0, 0, 12044 }, 12045 { 12046 NPC_ERRLEV_RE, NPC_EC_NOERR, 12047 8, 0, 6, 2, 0, 12048 NPC_S_KPU12_TU_IP, 8, 1, 12049 NPC_LID_LE, NPC_LT_LE_VXLANGPE, 12050 0, 12051 0, 0, 0, 0, 12052 }, 12053 { 12054 NPC_ERRLEV_RE, NPC_EC_NOERR, 12055 6, 0, 0, 2, 0, 12056 NPC_S_KPU12_TU_IP6, 8, 1, 12057 NPC_LID_LE, NPC_LT_LE_VXLANGPE, 12058 0, 12059 0, 0, 0, 0, 12060 }, 12061 { 12062 NPC_ERRLEV_RE, NPC_EC_NOERR, 12063 12, 16, 20, 1, 0, 12064 NPC_S_KPU11_TU_ETHER, 8, 1, 12065 NPC_LID_LE, NPC_LT_LE_VXLANGPE, 12066 0, 12067 0, 0, 0, 0, 12068 }, 12069 { 12070 NPC_ERRLEV_RE, NPC_EC_NOERR, 12071 2, 0, 0, 0, 0, 12072 NPC_S_KPU10_TU_NSH_IN_VXLANGPE, 8, 1, 12073 NPC_LID_LE, NPC_LT_LE_VXLANGPE, 12074 0, 12075 0, 0, 0, 0, 12076 }, 12077 { 12078 NPC_ERRLEV_RE, NPC_EC_NOERR, 12079 2, 6, 10, 0, 0, 12080 NPC_S_KPU10_TU_MPLS_IN_VXLANGPE, 8, 1, 12081 NPC_LID_LE, NPC_LT_LE_VXLANGPE, 12082 0, 12083 0, 0, 0, 0, 12084 }, 12085 { 12086 NPC_ERRLEV_RE, NPC_EC_NOERR, 12087 8, 0, 6, 2, 0, 12088 NPC_S_KPU12_TU_IP, 8, 1, 12089 NPC_LID_LE, NPC_LT_LE_VXLANGPE, 12090 NPC_F_LE_L_VXLANGPE_NOVNI, 12091 0, 0, 0, 0, 12092 }, 12093 { 12094 NPC_ERRLEV_RE, NPC_EC_NOERR, 12095 6, 0, 0, 2, 0, 12096 NPC_S_KPU12_TU_IP6, 8, 1, 12097 NPC_LID_LE, NPC_LT_LE_VXLANGPE, 12098 NPC_F_LE_L_VXLANGPE_NOVNI, 12099 0, 0, 0, 0, 12100 }, 12101 { 12102 NPC_ERRLEV_RE, NPC_EC_NOERR, 12103 12, 16, 20, 1, 0, 12104 NPC_S_KPU11_TU_ETHER, 8, 1, 12105 NPC_LID_LE, NPC_LT_LE_VXLANGPE, 12106 NPC_F_LE_L_VXLANGPE_NOVNI, 12107 0, 0, 0, 0, 12108 }, 12109 { 12110 NPC_ERRLEV_RE, NPC_EC_NOERR, 12111 2, 0, 0, 0, 0, 12112 NPC_S_KPU10_TU_NSH_IN_VXLANGPE, 8, 1, 12113 NPC_LID_LE, NPC_LT_LE_VXLANGPE, 12114 NPC_F_LE_L_VXLANGPE_NOVNI, 12115 0, 0, 0, 0, 12116 }, 12117 { 12118 NPC_ERRLEV_RE, NPC_EC_NOERR, 12119 2, 6, 10, 0, 0, 12120 NPC_S_KPU10_TU_MPLS_IN_VXLANGPE, 8, 1, 12121 NPC_LID_LE, NPC_LT_LE_VXLANGPE, 12122 NPC_F_LE_L_VXLANGPE_NOVNI, 12123 0, 0, 0, 0, 12124 }, 12125 { 12126 NPC_ERRLEV_RE, NPC_EC_NOERR, 12127 0, 0, 0, 0, 1, 12128 NPC_S_NA, 0, 1, 12129 NPC_LID_LE, NPC_LT_LE_VXLANGPE, 12130 NPC_F_LE_L_VXLANGPE_UNK, 12131 0, 0, 0, 0, 12132 }, 12133 { 12134 NPC_ERRLEV_RE, NPC_EC_NOERR, 12135 0, 0, 0, 0, 1, 12136 NPC_S_NA, 0, 1, 12137 NPC_LID_LE, NPC_LT_LE_VXLANGPE, 12138 NPC_F_LE_L_VXLANGPE_NONP, 12139 0, 0, 0, 0, 12140 }, 12141 { 12142 NPC_ERRLEV_RE, NPC_EC_NOERR, 12143 12, 16, 20, 1, 0, 12144 NPC_S_KPU11_TU_ETHER, 8, 1, 12145 NPC_LID_LE, NPC_LT_LE_GENEVE, 12146 0, 12147 0, 0x3f, 0, 2, 12148 }, 12149 { 12150 NPC_ERRLEV_RE, NPC_EC_NOERR, 12151 12, 16, 20, 1, 0, 12152 NPC_S_KPU11_TU_ETHER, 8, 1, 12153 NPC_LID_LE, NPC_LT_LE_GENEVE, 12154 NPC_F_LE_L_GENEVE_OAM, 12155 0, 0x3f, 0, 2, 12156 }, 12157 { 12158 NPC_ERRLEV_RE, NPC_EC_NOERR, 12159 12, 16, 20, 1, 0, 12160 NPC_S_KPU11_TU_ETHER, 8, 1, 12161 NPC_LID_LE, NPC_LT_LE_GENEVE, 12162 NPC_F_LE_L_GENEVE_CRI_OPT, 12163 0, 0x3f, 0, 2, 12164 }, 12165 { 12166 NPC_ERRLEV_RE, NPC_EC_NOERR, 12167 12, 16, 20, 1, 0, 12168 NPC_S_KPU11_TU_ETHER, 8, 1, 12169 NPC_LID_LE, NPC_LT_LE_GENEVE, 12170 NPC_F_LE_L_GENEVE_OAM_CRI_OPT, 12171 0, 0x3f, 0, 2, 12172 }, 12173 { 12174 NPC_ERRLEV_RE, NPC_EC_NOERR, 12175 8, 0, 6, 2, 0, 12176 NPC_S_KPU12_TU_IP, 8, 1, 12177 NPC_LID_LE, NPC_LT_LE_GENEVE, 12178 0, 12179 0, 0x3f, 0, 2, 12180 }, 12181 { 12182 NPC_ERRLEV_RE, NPC_EC_NOERR, 12183 8, 0, 6, 2, 0, 12184 NPC_S_KPU12_TU_IP, 8, 1, 12185 NPC_LID_LE, NPC_LT_LE_GENEVE, 12186 NPC_F_LE_L_GENEVE_OAM, 12187 0, 0x3f, 0, 2, 12188 }, 12189 { 12190 NPC_ERRLEV_RE, NPC_EC_NOERR, 12191 8, 0, 6, 2, 0, 12192 NPC_S_KPU12_TU_IP, 8, 1, 12193 NPC_LID_LE, NPC_LT_LE_GENEVE, 12194 NPC_F_LE_L_GENEVE_CRI_OPT, 12195 0, 0x3f, 0, 2, 12196 }, 12197 { 12198 NPC_ERRLEV_RE, NPC_EC_NOERR, 12199 8, 0, 6, 2, 0, 12200 NPC_S_KPU12_TU_IP, 8, 1, 12201 NPC_LID_LE, NPC_LT_LE_GENEVE, 12202 NPC_F_LE_L_GENEVE_OAM_CRI_OPT, 12203 0, 0x3f, 0, 2, 12204 }, 12205 { 12206 NPC_ERRLEV_RE, NPC_EC_NOERR, 12207 6, 0, 0, 2, 0, 12208 NPC_S_KPU12_TU_IP6, 8, 1, 12209 NPC_LID_LE, NPC_LT_LE_GENEVE, 12210 0, 12211 0, 0x3f, 0, 2, 12212 }, 12213 { 12214 NPC_ERRLEV_RE, NPC_EC_NOERR, 12215 6, 0, 0, 2, 0, 12216 NPC_S_KPU12_TU_IP6, 8, 1, 12217 NPC_LID_LE, NPC_LT_LE_GENEVE, 12218 NPC_F_LE_L_GENEVE_OAM, 12219 0, 0x3f, 0, 2, 12220 }, 12221 { 12222 NPC_ERRLEV_RE, NPC_EC_NOERR, 12223 6, 0, 0, 2, 0, 12224 NPC_S_KPU12_TU_IP6, 8, 1, 12225 NPC_LID_LE, NPC_LT_LE_GENEVE, 12226 NPC_F_LE_L_GENEVE_CRI_OPT, 12227 0, 0x3f, 0, 2, 12228 }, 12229 { 12230 NPC_ERRLEV_RE, NPC_EC_NOERR, 12231 6, 0, 0, 2, 0, 12232 NPC_S_KPU12_TU_IP6, 8, 1, 12233 NPC_LID_LE, NPC_LT_LE_GENEVE, 12234 NPC_F_LE_L_GENEVE_OAM_CRI_OPT, 12235 0, 0x3f, 0, 2, 12236 }, 12237 { 12238 NPC_ERRLEV_RE, NPC_EC_NOERR, 12239 0, 0, 0, 0, 1, 12240 NPC_S_NA, 0, 1, 12241 NPC_LID_LE, NPC_LT_LE_GTPC, 12242 0, 12243 0, 0, 0, 0, 12244 }, 12245 { 12246 NPC_ERRLEV_RE, NPC_EC_NOERR, 12247 8, 0, 6, 2, 0, 12248 NPC_S_KPU12_TU_IP, 8, 1, 12249 NPC_LID_LE, NPC_LT_LE_GTPU, 12250 NPC_F_LE_L_GTPU_G_PDU, 12251 0, 0, 0, 0, 12252 }, 12253 { 12254 NPC_ERRLEV_RE, NPC_EC_NOERR, 12255 0, 0, 0, 0, 1, 12256 NPC_S_NA, 0, 1, 12257 NPC_LID_LE, NPC_LT_LE_GTPU, 12258 NPC_F_LE_L_GTPU_UNK, 12259 0, 0, 0, 0, 12260 }, 12261 { 12262 NPC_ERRLEV_RE, NPC_EC_NOERR, 12263 0, 0, 0, 0, 0, 12264 NPC_S_KPU10_TU_MPLS_PL, 4, 1, 12265 NPC_LID_LE, NPC_LT_LE_TU_MPLS_IN_UDP, 12266 0, 12267 0, 0, 0, 0, 12268 }, 12269 { 12270 NPC_ERRLEV_RE, NPC_EC_NOERR, 12271 0, 0, 0, 0, 0, 12272 NPC_S_KPU10_TU_MPLS_PL, 8, 1, 12273 NPC_LID_LE, NPC_LT_LE_TU_MPLS_IN_UDP, 12274 0, 12275 0, 0, 0, 0, 12276 }, 12277 { 12278 NPC_ERRLEV_RE, NPC_EC_NOERR, 12279 0, 0, 0, 0, 0, 12280 NPC_S_KPU10_TU_MPLS_PL, 12, 1, 12281 NPC_LID_LE, NPC_LT_LE_TU_MPLS_IN_UDP, 12282 0, 12283 0, 0, 0, 0, 12284 }, 12285 { 12286 NPC_ERRLEV_RE, NPC_EC_NOERR, 12287 2, 4, 0, 0, 0, 12288 NPC_S_KPU10_TU_MPLS, 12, 1, 12289 NPC_LID_LE, NPC_LT_LE_TU_MPLS_IN_UDP, 12290 0, 12291 0, 0, 0, 0, 12292 }, 12293 { 12294 NPC_ERRLEV_RE, NPC_EC_NOERR, 12295 0, 0, 0, 0, 1, 12296 NPC_S_NA, 0, 1, 12297 NPC_LID_LE, NPC_LT_LE_ESP, 12298 0, 12299 0, 0, 0, 0, 12300 }, 12301 { 12302 NPC_ERRLEV_LE, NPC_EC_UNK, 12303 0, 0, 0, 0, 1, 12304 NPC_S_NA, 0, 0, 12305 NPC_LID_LE, NPC_LT_NA, 12306 0, 12307 0, 0, 0, 0, 12308 }, 12309 }; 12310 12311 static const struct npc_kpu_profile_action kpu10_action_entries[] = { 12312 { 12313 NPC_ERRLEV_RE, NPC_EC_NOERR, 12314 8, 0, 6, 1, 0, 12315 NPC_S_KPU12_TU_IP, 4, 0, 12316 NPC_LID_LF, NPC_LT_NA, 12317 0, 12318 0, 0, 0, 0, 12319 }, 12320 { 12321 NPC_ERRLEV_RE, NPC_EC_NOERR, 12322 6, 0, 0, 1, 0, 12323 NPC_S_KPU12_TU_IP6, 4, 0, 12324 NPC_LID_LF, NPC_LT_NA, 12325 0, 12326 0, 0, 0, 0, 12327 }, 12328 { 12329 NPC_ERRLEV_RE, NPC_EC_NOERR, 12330 12, 16, 20, 0, 0, 12331 NPC_S_KPU11_TU_ETHER, 8, 0, 12332 NPC_LID_LF, NPC_LT_NA, 12333 0, 12334 0, 0, 0, 0, 12335 }, 12336 { 12337 NPC_ERRLEV_RE, NPC_EC_NOERR, 12338 12, 16, 20, 0, 0, 12339 NPC_S_KPU11_TU_ETHER, 4, 0, 12340 NPC_LID_LF, NPC_LT_NA, 12341 0, 12342 0, 0, 0, 0, 12343 }, 12344 { 12345 NPC_ERRLEV_LE, NPC_EC_MPLS_2MANY, 12346 0, 0, 0, 0, 1, 12347 NPC_S_NA, 0, 0, 12348 NPC_LID_LF, NPC_LT_NA, 12349 0, 12350 0, 0, 0, 0, 12351 }, 12352 { 12353 NPC_ERRLEV_RE, NPC_EC_NOERR, 12354 8, 0, 6, 1, 0, 12355 NPC_S_KPU12_TU_IP, 0, 0, 12356 NPC_LID_LF, NPC_LT_NA, 12357 0, 12358 0, 0, 0, 0, 12359 }, 12360 { 12361 NPC_ERRLEV_RE, NPC_EC_NOERR, 12362 6, 0, 0, 1, 0, 12363 NPC_S_KPU12_TU_IP6, 0, 0, 12364 NPC_LID_LF, NPC_LT_NA, 12365 0, 12366 0, 0, 0, 0, 12367 }, 12368 { 12369 NPC_ERRLEV_RE, NPC_EC_NOERR, 12370 12, 16, 20, 0, 0, 12371 NPC_S_KPU11_TU_ETHER, 4, 0, 12372 NPC_LID_LF, NPC_LT_NA, 12373 0, 12374 0, 0, 0, 0, 12375 }, 12376 { 12377 NPC_ERRLEV_RE, NPC_EC_NOERR, 12378 12, 16, 20, 0, 0, 12379 NPC_S_KPU11_TU_ETHER, 0, 0, 12380 NPC_LID_LF, NPC_LT_NA, 12381 0, 12382 0, 0, 0, 0, 12383 }, 12384 { 12385 NPC_ERRLEV_RE, NPC_EC_NOERR, 12386 0, 0, 0, 0, 0, 12387 NPC_S_KPU11_TU_MPLS_PL, 4, 1, 12388 NPC_LID_LF, NPC_LT_LF_TU_MPLS_IN_VXLANGPE, 12389 0, 12390 0, 0, 0, 0, 12391 }, 12392 { 12393 NPC_ERRLEV_RE, NPC_EC_NOERR, 12394 0, 0, 0, 0, 0, 12395 NPC_S_KPU11_TU_MPLS_PL, 8, 1, 12396 NPC_LID_LF, NPC_LT_LF_TU_MPLS_IN_VXLANGPE, 12397 0, 12398 0, 0, 0, 0, 12399 }, 12400 { 12401 NPC_ERRLEV_RE, NPC_EC_NOERR, 12402 0, 0, 0, 0, 0, 12403 NPC_S_KPU11_TU_MPLS_PL, 12, 1, 12404 NPC_LID_LF, NPC_LT_LF_TU_MPLS_IN_VXLANGPE, 12405 0, 12406 0, 0, 0, 0, 12407 }, 12408 { 12409 NPC_ERRLEV_RE, NPC_EC_NOERR, 12410 2, 4, 0, 0, 0, 12411 NPC_S_KPU11_TU_MPLS, 12, 1, 12412 NPC_LID_LF, NPC_LT_LF_TU_MPLS_IN_VXLANGPE, 12413 0, 12414 0, 0, 0, 0, 12415 }, 12416 { 12417 NPC_ERRLEV_RE, NPC_EC_NOERR, 12418 8, 0, 6, 1, 0, 12419 NPC_S_KPU12_TU_IP, 0, 1, 12420 NPC_LID_LF, NPC_LT_LF_TU_NSH_IN_VXLANGPE, 12421 0, 12422 1, 0x3f, 0, 2, 12423 }, 12424 { 12425 NPC_ERRLEV_RE, NPC_EC_NOERR, 12426 6, 0, 0, 1, 0, 12427 NPC_S_KPU12_TU_IP6, 0, 1, 12428 NPC_LID_LF, NPC_LT_LF_TU_NSH_IN_VXLANGPE, 12429 0, 12430 1, 0x3f, 0, 2, 12431 }, 12432 { 12433 NPC_ERRLEV_RE, NPC_EC_NOERR, 12434 6, 0, 0, 0, 0, 12435 NPC_S_KPU11_TU_ETHER_IN_NSH, 0, 1, 12436 NPC_LID_LF, NPC_LT_LF_TU_NSH_IN_VXLANGPE, 12437 0, 12438 1, 0x3f, 0, 2, 12439 }, 12440 { 12441 NPC_ERRLEV_LF, NPC_EC_NSH_UNK, 12442 6, 0, 0, 0, 1, 12443 NPC_S_NA, 0, 1, 12444 NPC_LID_LF, NPC_LT_LF_TU_NSH_IN_VXLANGPE, 12445 0, 12446 0, 0, 0, 0, 12447 }, 12448 { 12449 NPC_ERRLEV_LE, NPC_EC_UNK, 12450 0, 0, 0, 0, 1, 12451 NPC_S_NA, 0, 0, 12452 NPC_LID_LF, NPC_LT_NA, 12453 0, 12454 0, 0, 0, 0, 12455 }, 12456 }; 12457 12458 static const struct npc_kpu_profile_action kpu11_action_entries[] = { 12459 { 12460 NPC_ERRLEV_RE, NPC_EC_NOERR, 12461 8, 0, 6, 0, 0, 12462 NPC_S_KPU12_TU_IP, 14, 1, 12463 NPC_LID_LF, NPC_LT_LF_TU_ETHER, 12464 0, 12465 0, 0, 0, 0, 12466 }, 12467 { 12468 NPC_ERRLEV_RE, NPC_EC_NOERR, 12469 6, 0, 0, 0, 0, 12470 NPC_S_KPU12_TU_IP6, 14, 1, 12471 NPC_LID_LF, NPC_LT_LF_TU_ETHER, 12472 0, 12473 0, 0, 0, 0, 12474 }, 12475 { 12476 NPC_ERRLEV_RE, NPC_EC_NOERR, 12477 0, 0, 0, 0, 0, 12478 NPC_S_KPU12_TU_ARP, 14, 1, 12479 NPC_LID_LF, NPC_LT_LF_TU_ETHER, 12480 0, 12481 0, 0, 0, 0, 12482 }, 12483 { 12484 NPC_ERRLEV_RE, NPC_EC_NOERR, 12485 8, 0, 6, 0, 0, 12486 NPC_S_KPU12_TU_IP, 18, 1, 12487 NPC_LID_LF, NPC_LT_LF_TU_ETHER, 12488 NPC_F_LF_L_WITH_CTAG, 12489 0, 0, 0, 0, 12490 }, 12491 { 12492 NPC_ERRLEV_RE, NPC_EC_NOERR, 12493 6, 0, 0, 0, 0, 12494 NPC_S_KPU12_TU_IP6, 18, 1, 12495 NPC_LID_LF, NPC_LT_LF_TU_ETHER, 12496 NPC_F_LF_L_WITH_CTAG, 12497 0, 0, 0, 0, 12498 }, 12499 { 12500 NPC_ERRLEV_RE, NPC_EC_NOERR, 12501 0, 0, 0, 0, 0, 12502 NPC_S_KPU12_TU_ARP, 18, 1, 12503 NPC_LID_LF, NPC_LT_LF_TU_ETHER, 12504 NPC_F_LF_L_WITH_CTAG, 12505 0, 0, 0, 0, 12506 }, 12507 { 12508 NPC_ERRLEV_RE, NPC_EC_NOERR, 12509 0, 0, 0, 0, 1, 12510 NPC_S_NA, 0, 1, 12511 NPC_LID_LF, NPC_LT_LF_TU_ETHER, 12512 NPC_F_LF_U_UNK_ETYPE | NPC_F_LF_L_WITH_CTAG, 12513 0, 0, 0, 0, 12514 }, 12515 { 12516 NPC_ERRLEV_RE, NPC_EC_NOERR, 12517 8, 0, 6, 0, 0, 12518 NPC_S_KPU12_TU_IP, 22, 1, 12519 NPC_LID_LF, NPC_LT_LF_TU_ETHER, 12520 NPC_F_LF_L_WITH_STAG_CTAG, 12521 0, 0, 0, 0, 12522 }, 12523 { 12524 NPC_ERRLEV_RE, NPC_EC_NOERR, 12525 6, 0, 0, 0, 0, 12526 NPC_S_KPU12_TU_IP6, 22, 1, 12527 NPC_LID_LF, NPC_LT_LF_TU_ETHER, 12528 NPC_F_LF_L_WITH_STAG_CTAG, 12529 0, 0, 0, 0, 12530 }, 12531 { 12532 NPC_ERRLEV_RE, NPC_EC_NOERR, 12533 0, 0, 0, 0, 0, 12534 NPC_S_KPU12_TU_ARP, 22, 1, 12535 NPC_LID_LF, NPC_LT_LF_TU_ETHER, 12536 NPC_F_LF_L_WITH_STAG_CTAG, 12537 0, 0, 0, 0, 12538 }, 12539 { 12540 NPC_ERRLEV_RE, NPC_EC_NOERR, 12541 0, 0, 0, 0, 1, 12542 NPC_S_NA, 0, 1, 12543 NPC_LID_LF, NPC_LT_LF_TU_ETHER, 12544 NPC_F_LF_U_UNK_ETYPE | NPC_F_LF_L_WITH_STAG_CTAG, 12545 0, 0, 0, 0, 12546 }, 12547 { 12548 NPC_ERRLEV_RE, NPC_EC_NOERR, 12549 8, 0, 6, 0, 0, 12550 NPC_S_KPU12_TU_IP, 18, 1, 12551 NPC_LID_LF, NPC_LT_LF_TU_ETHER, 12552 NPC_F_LF_L_WITH_CTAG, 12553 0, 0, 0, 0, 12554 }, 12555 { 12556 NPC_ERRLEV_RE, NPC_EC_NOERR, 12557 6, 0, 0, 0, 0, 12558 NPC_S_KPU12_TU_IP6, 18, 1, 12559 NPC_LID_LF, NPC_LT_LF_TU_ETHER, 12560 NPC_F_LF_L_WITH_CTAG, 12561 0, 0, 0, 0, 12562 }, 12563 { 12564 NPC_ERRLEV_RE, NPC_EC_NOERR, 12565 0, 0, 0, 0, 0, 12566 NPC_S_KPU12_TU_ARP, 18, 1, 12567 NPC_LID_LF, NPC_LT_LF_TU_ETHER, 12568 NPC_F_LF_L_WITH_CTAG, 12569 0, 0, 0, 0, 12570 }, 12571 { 12572 NPC_ERRLEV_RE, NPC_EC_NOERR, 12573 0, 0, 0, 0, 1, 12574 NPC_S_NA, 0, 1, 12575 NPC_LID_LF, NPC_LT_LF_TU_ETHER, 12576 NPC_F_LF_U_UNK_ETYPE | NPC_F_LF_L_WITH_CTAG, 12577 0, 0, 0, 0, 12578 }, 12579 { 12580 NPC_ERRLEV_RE, NPC_EC_NOERR, 12581 8, 0, 6, 0, 0, 12582 NPC_S_KPU12_TU_IP, 22, 1, 12583 NPC_LID_LF, NPC_LT_LF_TU_ETHER, 12584 NPC_F_LF_L_WITH_QINQ_CTAG, 12585 0, 0, 0, 0, 12586 }, 12587 { 12588 NPC_ERRLEV_RE, NPC_EC_NOERR, 12589 6, 0, 0, 0, 0, 12590 NPC_S_KPU12_TU_IP6, 22, 1, 12591 NPC_LID_LF, NPC_LT_LF_TU_ETHER, 12592 NPC_F_LF_L_WITH_QINQ_CTAG, 12593 0, 0, 0, 0, 12594 }, 12595 { 12596 NPC_ERRLEV_RE, NPC_EC_NOERR, 12597 0, 0, 0, 0, 0, 12598 NPC_S_KPU12_TU_ARP, 22, 1, 12599 NPC_LID_LF, NPC_LT_LF_TU_ETHER, 12600 NPC_F_LF_L_WITH_QINQ_CTAG, 12601 0, 0, 0, 0, 12602 }, 12603 { 12604 NPC_ERRLEV_RE, NPC_EC_NOERR, 12605 0, 0, 0, 0, 1, 12606 NPC_S_NA, 0, 1, 12607 NPC_LID_LF, NPC_LT_LF_TU_ETHER, 12608 NPC_F_LF_U_UNK_ETYPE | NPC_F_LF_L_WITH_QINQ_CTAG, 12609 0, 0, 0, 0, 12610 }, 12611 { 12612 NPC_ERRLEV_RE, NPC_EC_NOERR, 12613 8, 0, 6, 0, 0, 12614 NPC_S_KPU12_TU_IP, 18, 1, 12615 NPC_LID_LF, NPC_LT_LF_TU_ETHER, 12616 NPC_F_LF_L_WITH_QINQ, 12617 0, 0, 0, 0, 12618 }, 12619 { 12620 NPC_ERRLEV_RE, NPC_EC_NOERR, 12621 6, 0, 0, 0, 0, 12622 NPC_S_KPU12_TU_IP6, 18, 1, 12623 NPC_LID_LF, NPC_LT_LF_TU_ETHER, 12624 NPC_F_LF_L_WITH_QINQ, 12625 0, 0, 0, 0, 12626 }, 12627 { 12628 NPC_ERRLEV_RE, NPC_EC_NOERR, 12629 0, 0, 0, 0, 0, 12630 NPC_S_KPU12_TU_ARP, 18, 1, 12631 NPC_LID_LF, NPC_LT_LF_TU_ETHER, 12632 NPC_F_LF_L_WITH_QINQ, 12633 0, 0, 0, 0, 12634 }, 12635 { 12636 NPC_ERRLEV_RE, NPC_EC_NOERR, 12637 0, 0, 0, 0, 1, 12638 NPC_S_NA, 0, 1, 12639 NPC_LID_LF, NPC_LT_LF_TU_ETHER, 12640 NPC_F_LF_U_UNK_ETYPE | NPC_F_LF_L_WITH_QINQ, 12641 0, 0, 0, 0, 12642 }, 12643 { 12644 NPC_ERRLEV_RE, NPC_EC_NOERR, 12645 0, 0, 0, 0, 1, 12646 NPC_S_NA, 0, 1, 12647 NPC_LID_LF, NPC_LT_LF_TU_ETHER, 12648 NPC_F_LF_U_UNK_ETYPE, 12649 0, 0, 0, 0, 12650 }, 12651 { 12652 NPC_ERRLEV_RE, NPC_EC_NOERR, 12653 0, 0, 0, 0, 1, 12654 NPC_S_NA, 0, 1, 12655 NPC_LID_LF, NPC_LT_LF_TU_PPP, 12656 0, 12657 0, 0, 0, 0, 12658 }, 12659 { 12660 NPC_ERRLEV_RE, NPC_EC_NOERR, 12661 8, 0, 6, 0, 0, 12662 NPC_S_KPU12_TU_IP, 4, 0, 12663 NPC_LID_LF, NPC_LT_NA, 12664 0, 12665 0, 0, 0, 0, 12666 }, 12667 { 12668 NPC_ERRLEV_RE, NPC_EC_NOERR, 12669 6, 0, 0, 0, 0, 12670 NPC_S_KPU12_TU_IP6, 4, 0, 12671 NPC_LID_LF, NPC_LT_NA, 12672 0, 12673 0, 0, 0, 0, 12674 }, 12675 { 12676 NPC_ERRLEV_LF, NPC_EC_MPLS_UNK, 12677 0, 0, 0, 0, 1, 12678 NPC_S_NA, 0, 0, 12679 NPC_LID_LF, NPC_LT_NA, 12680 0, 12681 0, 0, 0, 0, 12682 }, 12683 { 12684 NPC_ERRLEV_LF, NPC_EC_MPLS_2MANY, 12685 0, 0, 0, 0, 1, 12686 NPC_S_NA, 0, 0, 12687 NPC_LID_LF, NPC_LT_NA, 12688 0, 12689 0, 0, 0, 0, 12690 }, 12691 { 12692 NPC_ERRLEV_RE, NPC_EC_NOERR, 12693 8, 0, 6, 0, 0, 12694 NPC_S_KPU12_TU_IP, 0, 0, 12695 NPC_LID_LF, NPC_LT_NA, 12696 0, 12697 0, 0, 0, 0, 12698 }, 12699 { 12700 NPC_ERRLEV_RE, NPC_EC_NOERR, 12701 6, 0, 0, 0, 0, 12702 NPC_S_KPU12_TU_IP6, 0, 0, 12703 NPC_LID_LF, NPC_LT_NA, 12704 0, 12705 0, 0, 0, 0, 12706 }, 12707 { 12708 NPC_ERRLEV_LF, NPC_EC_MPLS_UNK, 12709 0, 0, 0, 0, 1, 12710 NPC_S_NA, 0, 0, 12711 NPC_LID_LF, NPC_LT_NA, 12712 0, 12713 0, 0, 0, 0, 12714 }, 12715 { 12716 NPC_ERRLEV_RE, NPC_EC_NOERR, 12717 0, 0, 0, 0, 1, 12718 NPC_S_NA, 0, 1, 12719 NPC_LID_LG, NPC_LT_LG_TU_ETHER_IN_NSH, 12720 0, 12721 0, 0, 0, 0, 12722 }, 12723 { 12724 NPC_ERRLEV_LF, NPC_EC_UNK, 12725 0, 0, 0, 0, 1, 12726 NPC_S_NA, 0, 0, 12727 NPC_LID_LF, NPC_LT_NA, 12728 0, 12729 0, 0, 0, 0, 12730 }, 12731 }; 12732 12733 static const struct npc_kpu_profile_action kpu12_action_entries[] = { 12734 { 12735 NPC_ERRLEV_RE, NPC_EC_NOERR, 12736 2, 12, 0, 2, 0, 12737 NPC_S_KPU15_TU_TCP, 20, 1, 12738 NPC_LID_LG, NPC_LT_LG_TU_IP, 12739 0, 12740 0, 0, 0, 0, 12741 }, 12742 { 12743 NPC_ERRLEV_RE, NPC_EC_NOERR, 12744 2, 0, 0, 2, 0, 12745 NPC_S_KPU15_TU_UDP, 20, 1, 12746 NPC_LID_LG, NPC_LT_LG_TU_IP, 12747 0, 12748 0, 0, 0, 0, 12749 }, 12750 { 12751 NPC_ERRLEV_RE, NPC_EC_NOERR, 12752 0, 0, 0, 2, 0, 12753 NPC_S_KPU15_TU_SCTP, 20, 1, 12754 NPC_LID_LG, NPC_LT_LG_TU_IP, 12755 0, 12756 0, 0, 0, 0, 12757 }, 12758 { 12759 NPC_ERRLEV_RE, NPC_EC_NOERR, 12760 0, 0, 0, 2, 0, 12761 NPC_S_KPU15_TU_ICMP, 20, 1, 12762 NPC_LID_LG, NPC_LT_LG_TU_IP, 12763 0, 12764 0, 0, 0, 0, 12765 }, 12766 { 12767 NPC_ERRLEV_RE, NPC_EC_NOERR, 12768 0, 0, 0, 2, 0, 12769 NPC_S_KPU15_TU_IGMP, 20, 1, 12770 NPC_LID_LG, NPC_LT_LG_TU_IP, 12771 0, 12772 0, 0, 0, 0, 12773 }, 12774 { 12775 NPC_ERRLEV_RE, NPC_EC_NOERR, 12776 0, 0, 0, 2, 0, 12777 NPC_S_KPU15_TU_ESP, 20, 1, 12778 NPC_LID_LG, NPC_LT_LG_TU_IP, 12779 0, 12780 0, 0, 0, 0, 12781 }, 12782 { 12783 NPC_ERRLEV_RE, NPC_EC_NOERR, 12784 0, 0, 0, 2, 0, 12785 NPC_S_KPU15_TU_AH, 20, 1, 12786 NPC_LID_LG, NPC_LT_LG_TU_IP, 12787 0, 12788 0, 0, 0, 0, 12789 }, 12790 { 12791 NPC_ERRLEV_RE, NPC_EC_NOERR, 12792 0, 0, 0, 0, 1, 12793 NPC_S_NA, 0, 1, 12794 NPC_LID_LG, NPC_LT_LG_TU_IP, 12795 NPC_F_LG_U_UNK_IP_PROTO, 12796 0, 0, 0, 0, 12797 }, 12798 { 12799 NPC_ERRLEV_RE, NPC_EC_NOERR, 12800 2, 12, 0, 2, 0, 12801 NPC_S_KPU15_TU_TCP, 0, 1, 12802 NPC_LID_LG, NPC_LT_LG_TU_IP, 12803 NPC_F_LG_U_IP_HAS_OPTIONS, 12804 0, 0xf, 0, 2, 12805 }, 12806 { 12807 NPC_ERRLEV_RE, NPC_EC_NOERR, 12808 2, 0, 0, 2, 0, 12809 NPC_S_KPU15_TU_UDP, 0, 1, 12810 NPC_LID_LG, NPC_LT_LG_TU_IP, 12811 NPC_F_LG_U_IP_HAS_OPTIONS, 12812 0, 0xf, 0, 2, 12813 }, 12814 { 12815 NPC_ERRLEV_RE, NPC_EC_NOERR, 12816 0, 0, 0, 2, 0, 12817 NPC_S_KPU15_TU_SCTP, 0, 1, 12818 NPC_LID_LG, NPC_LT_LG_TU_IP, 12819 NPC_F_LG_U_IP_HAS_OPTIONS, 12820 0, 0xf, 0, 2, 12821 }, 12822 { 12823 NPC_ERRLEV_RE, NPC_EC_NOERR, 12824 0, 0, 0, 2, 0, 12825 NPC_S_KPU15_TU_ICMP, 0, 1, 12826 NPC_LID_LG, NPC_LT_LG_TU_IP, 12827 NPC_F_LG_U_IP_HAS_OPTIONS, 12828 0, 0xf, 0, 2, 12829 }, 12830 { 12831 NPC_ERRLEV_RE, NPC_EC_NOERR, 12832 0, 0, 0, 2, 0, 12833 NPC_S_KPU15_TU_IGMP, 0, 1, 12834 NPC_LID_LG, NPC_LT_LG_TU_IP, 12835 NPC_F_LG_U_IP_HAS_OPTIONS, 12836 0, 0xf, 0, 2, 12837 }, 12838 { 12839 NPC_ERRLEV_RE, NPC_EC_NOERR, 12840 0, 0, 0, 2, 0, 12841 NPC_S_KPU15_TU_ESP, 0, 1, 12842 NPC_LID_LG, NPC_LT_LG_TU_IP, 12843 NPC_F_LG_U_IP_HAS_OPTIONS, 12844 0, 0xf, 0, 2, 12845 }, 12846 { 12847 NPC_ERRLEV_RE, NPC_EC_NOERR, 12848 0, 0, 0, 2, 0, 12849 NPC_S_KPU15_TU_AH, 0, 1, 12850 NPC_LID_LG, NPC_LT_LG_TU_IP, 12851 NPC_F_LG_U_IP_HAS_OPTIONS, 12852 0, 0xf, 0, 2, 12853 }, 12854 { 12855 NPC_ERRLEV_RE, NPC_EC_NOERR, 12856 0, 0, 0, 0, 1, 12857 NPC_S_NA, 0, 1, 12858 NPC_LID_LG, NPC_LT_LG_TU_IP, 12859 NPC_F_LG_U_IP_HAS_OPTIONS | NPC_F_LG_U_UNK_IP_PROTO, 12860 0, 0, 0, 0, 12861 }, 12862 { 12863 NPC_ERRLEV_LF, NPC_EC_IP_VER, 12864 0, 0, 0, 0, 1, 12865 NPC_S_NA, 0, 1, 12866 NPC_LID_LG, NPC_LT_LG_TU_IP, 12867 0, 12868 0, 0, 0, 0, 12869 }, 12870 { 12871 NPC_ERRLEV_RE, NPC_EC_NOERR, 12872 0, 0, 0, 0, 1, 12873 NPC_S_NA, 0, 1, 12874 NPC_LID_LG, NPC_LT_LG_TU_ARP, 12875 0, 12876 0, 0, 0, 0, 12877 }, 12878 { 12879 NPC_ERRLEV_RE, NPC_EC_NOERR, 12880 2, 12, 0, 2, 0, 12881 NPC_S_KPU15_TU_TCP, 40, 1, 12882 NPC_LID_LG, NPC_LT_LG_TU_IP6, 12883 0, 12884 0, 0, 0, 0, 12885 }, 12886 { 12887 NPC_ERRLEV_RE, NPC_EC_NOERR, 12888 2, 0, 0, 2, 0, 12889 NPC_S_KPU15_TU_UDP, 40, 1, 12890 NPC_LID_LG, NPC_LT_LG_TU_IP6, 12891 0, 12892 0, 0, 0, 0, 12893 }, 12894 { 12895 NPC_ERRLEV_RE, NPC_EC_NOERR, 12896 0, 0, 0, 2, 0, 12897 NPC_S_KPU15_TU_SCTP, 40, 1, 12898 NPC_LID_LG, NPC_LT_LG_TU_IP6, 12899 0, 12900 0, 0, 0, 0, 12901 }, 12902 { 12903 NPC_ERRLEV_RE, NPC_EC_NOERR, 12904 0, 0, 0, 2, 0, 12905 NPC_S_KPU15_TU_ICMP, 40, 1, 12906 NPC_LID_LG, NPC_LT_LG_TU_IP6, 12907 0, 12908 0, 0, 0, 0, 12909 }, 12910 { 12911 NPC_ERRLEV_RE, NPC_EC_NOERR, 12912 0, 0, 0, 2, 0, 12913 NPC_S_KPU15_TU_ICMP6, 40, 1, 12914 NPC_LID_LG, NPC_LT_LG_TU_IP6, 12915 0, 12916 0, 0, 0, 0, 12917 }, 12918 { 12919 NPC_ERRLEV_RE, NPC_EC_NOERR, 12920 0, 0, 0, 2, 0, 12921 NPC_S_KPU15_TU_ESP, 40, 1, 12922 NPC_LID_LG, NPC_LT_LG_TU_IP6, 12923 0, 12924 0, 0, 0, 0, 12925 }, 12926 { 12927 NPC_ERRLEV_RE, NPC_EC_NOERR, 12928 0, 0, 0, 2, 0, 12929 NPC_S_KPU15_TU_AH, 40, 1, 12930 NPC_LID_LG, NPC_LT_LG_TU_IP6, 12931 0, 12932 0, 0, 0, 0, 12933 }, 12934 { 12935 NPC_ERRLEV_RE, NPC_EC_NOERR, 12936 2, 0, 0, 0, 0, 12937 NPC_S_KPU13_TU_IP6_EXT, 0, 1, 12938 NPC_LID_LG, NPC_LT_LG_TU_IP6, 12939 NPC_F_LG_U_IP6_HAS_EXT, 12940 0, 0, 0, 0, 12941 }, 12942 { 12943 NPC_ERRLEV_LF, NPC_EC_IP6_VER, 12944 0, 0, 0, 0, 1, 12945 NPC_S_NA, 0, 1, 12946 NPC_LID_LG, NPC_LT_LG_TU_IP6, 12947 0, 12948 0, 0, 0, 0, 12949 }, 12950 { 12951 NPC_ERRLEV_LF, NPC_EC_UNK, 12952 0, 0, 0, 0, 1, 12953 NPC_S_NA, 0, 0, 12954 NPC_LID_LG, NPC_LT_NA, 12955 0, 12956 0, 0, 0, 0, 12957 }, 12958 }; 12959 12960 static const struct npc_kpu_profile_action kpu13_action_entries[] = { 12961 { 12962 NPC_ERRLEV_RE, NPC_EC_NOERR, 12963 0, 0, 0, 0, 1, 12964 NPC_S_NA, 0, 0, 12965 NPC_LID_LC, NPC_LT_NA, 12966 0, 12967 0, 0, 0, 0, 12968 }, 12969 }; 12970 12971 static const struct npc_kpu_profile_action kpu14_action_entries[] = { 12972 { 12973 NPC_ERRLEV_RE, NPC_EC_NOERR, 12974 0, 0, 0, 0, 1, 12975 NPC_S_NA, 0, 0, 12976 NPC_LID_LC, NPC_LT_NA, 12977 0, 12978 0, 0, 0, 0, 12979 }, 12980 }; 12981 12982 static const struct npc_kpu_profile_action kpu15_action_entries[] = { 12983 { 12984 NPC_ERRLEV_LG, NPC_EC_TCP_FLAGS_FIN_ONLY, 12985 0, 0, 0, 0, 1, 12986 NPC_S_NA, 0, 1, 12987 NPC_LID_LH, NPC_LT_LH_TU_TCP, 12988 0, 12989 0, 0, 0, 0, 12990 }, 12991 { 12992 NPC_ERRLEV_LG, NPC_EC_TCP_FLAGS_ZERO, 12993 0, 0, 0, 0, 1, 12994 NPC_S_NA, 0, 1, 12995 NPC_LID_LH, NPC_LT_LH_TU_TCP, 12996 0, 12997 0, 0, 0, 0, 12998 }, 12999 { 13000 NPC_ERRLEV_LG, NPC_EC_TCP_FLAGS_RST_FIN, 13001 0, 0, 0, 0, 1, 13002 NPC_S_NA, 0, 1, 13003 NPC_LID_LH, NPC_LT_LH_TU_TCP, 13004 0, 13005 0, 0, 0, 0, 13006 }, 13007 { 13008 NPC_ERRLEV_LG, NPC_EC_TCP_FLAGS_URG_SYN, 13009 0, 0, 0, 0, 1, 13010 NPC_S_NA, 0, 1, 13011 NPC_LID_LH, NPC_LT_LH_TU_TCP, 13012 0, 13013 0, 0, 0, 0, 13014 }, 13015 { 13016 NPC_ERRLEV_LG, NPC_EC_TCP_FLAGS_RST_SYN, 13017 0, 0, 0, 0, 1, 13018 NPC_S_NA, 0, 1, 13019 NPC_LID_LH, NPC_LT_LH_TU_TCP, 13020 0, 13021 0, 0, 0, 0, 13022 }, 13023 { 13024 NPC_ERRLEV_LG, NPC_EC_TCP_FLAGS_SYN_FIN, 13025 0, 0, 0, 0, 1, 13026 NPC_S_NA, 0, 1, 13027 NPC_LID_LH, NPC_LT_LH_TU_TCP, 13028 0, 13029 0, 0, 0, 0, 13030 }, 13031 { 13032 NPC_ERRLEV_RE, NPC_EC_NOERR, 13033 0, 0, 0, 0, 0, 13034 NPC_S_KPU16_HTTP_DATA, 20, 1, 13035 NPC_LID_LH, NPC_LT_LH_TU_TCP, 13036 NPC_F_LH_L_TCP_HTTP, 13037 0, 0, 0, 0, 13038 }, 13039 { 13040 NPC_ERRLEV_RE, NPC_EC_NOERR, 13041 0, 0, 0, 0, 0, 13042 NPC_S_KPU16_HTTPS_DATA, 20, 1, 13043 NPC_LID_LH, NPC_LT_LH_TU_TCP, 13044 NPC_F_LH_L_TCP_HTTP, 13045 0, 0, 0, 0, 13046 }, 13047 { 13048 NPC_ERRLEV_RE, NPC_EC_NOERR, 13049 0, 0, 0, 0, 0, 13050 NPC_S_KPU16_PPTP_DATA, 20, 1, 13051 NPC_LID_LH, NPC_LT_LH_TU_TCP, 13052 NPC_F_LH_L_TCP_PPTP, 13053 0, 0, 0, 0, 13054 }, 13055 { 13056 NPC_ERRLEV_RE, NPC_EC_NOERR, 13057 0, 0, 0, 0, 0, 13058 NPC_S_KPU16_TCP_DATA, 20, 1, 13059 NPC_LID_LH, NPC_LT_LH_TU_TCP, 13060 NPC_F_LH_L_TCP_UNK_PORT, 13061 0, 0, 0, 0, 13062 }, 13063 { 13064 NPC_ERRLEV_RE, NPC_EC_NOERR, 13065 0, 0, 0, 0, 0, 13066 NPC_S_KPU16_HTTP_DATA, 0, 1, 13067 NPC_LID_LH, NPC_LT_LH_TU_TCP, 13068 NPC_F_LH_U_TCP_HAS_OPTIONS | NPC_F_LH_L_TCP_HTTP, 13069 12, 0xf0, 1, 2, 13070 }, 13071 { 13072 NPC_ERRLEV_RE, NPC_EC_NOERR, 13073 0, 0, 0, 0, 0, 13074 NPC_S_KPU16_HTTPS_DATA, 0, 1, 13075 NPC_LID_LH, NPC_LT_LH_TU_TCP, 13076 NPC_F_LH_U_TCP_HAS_OPTIONS | NPC_F_LH_L_TCP_HTTPS, 13077 12, 0xf0, 1, 2, 13078 }, 13079 { 13080 NPC_ERRLEV_RE, NPC_EC_NOERR, 13081 0, 0, 0, 0, 0, 13082 NPC_S_KPU16_PPTP_DATA, 0, 1, 13083 NPC_LID_LH, NPC_LT_LH_TU_TCP, 13084 NPC_F_LH_U_TCP_HAS_OPTIONS | NPC_F_LH_L_TCP_PPTP, 13085 12, 0xf0, 1, 2, 13086 }, 13087 { 13088 NPC_ERRLEV_RE, NPC_EC_NOERR, 13089 0, 0, 0, 0, 0, 13090 NPC_S_KPU16_TCP_DATA, 0, 1, 13091 NPC_LID_LH, NPC_LT_LH_TU_TCP, 13092 NPC_F_LH_U_TCP_HAS_OPTIONS | NPC_F_LH_L_TCP_UNK_PORT, 13093 12, 0xf0, 1, 2, 13094 }, 13095 { 13096 NPC_ERRLEV_RE, NPC_EC_NOERR, 13097 0, 0, 0, 0, 0, 13098 NPC_S_KPU16_UDP_DATA, 8, 1, 13099 NPC_LID_LH, NPC_LT_LH_TU_UDP, 13100 NPC_F_LH_L_UDP_UNK_PORT, 13101 0, 0, 0, 0, 13102 }, 13103 { 13104 NPC_ERRLEV_RE, NPC_EC_NOERR, 13105 0, 0, 0, 0, 1, 13106 NPC_S_NA, 0, 1, 13107 NPC_LID_LH, NPC_LT_LH_TU_SCTP, 13108 0, 13109 0, 0, 0, 0, 13110 }, 13111 { 13112 NPC_ERRLEV_RE, NPC_EC_NOERR, 13113 0, 0, 0, 0, 1, 13114 NPC_S_NA, 0, 1, 13115 NPC_LID_LH, NPC_LT_LH_TU_ICMP, 13116 0, 13117 0, 0, 0, 0, 13118 }, 13119 { 13120 NPC_ERRLEV_RE, NPC_EC_NOERR, 13121 0, 0, 0, 0, 1, 13122 NPC_S_NA, 0, 1, 13123 NPC_LID_LH, NPC_LT_LH_TU_IGMP, 13124 0, 13125 0, 0, 0, 0, 13126 }, 13127 { 13128 NPC_ERRLEV_RE, NPC_EC_NOERR, 13129 0, 0, 0, 0, 1, 13130 NPC_S_NA, 0, 1, 13131 NPC_LID_LH, NPC_LT_LH_TU_ICMP6, 13132 0, 13133 0, 0, 0, 0, 13134 }, 13135 { 13136 NPC_ERRLEV_RE, NPC_EC_NOERR, 13137 0, 0, 0, 0, 1, 13138 NPC_S_NA, 0, 1, 13139 NPC_LID_LH, NPC_LT_LH_TU_ESP, 13140 0, 13141 0, 0, 0, 0, 13142 }, 13143 { 13144 NPC_ERRLEV_RE, NPC_EC_NOERR, 13145 0, 0, 0, 0, 1, 13146 NPC_S_NA, 0, 1, 13147 NPC_LID_LH, NPC_LT_LH_TU_AH, 13148 0, 13149 0, 0, 0, 0, 13150 }, 13151 { 13152 NPC_ERRLEV_LG, NPC_EC_L4, 13153 0, 0, 0, 0, 1, 13154 NPC_S_NA, 0, 0, 13155 NPC_LID_LH, NPC_LT_NA, 13156 0, 13157 0, 0, 0, 0, 13158 }, 13159 }; 13160 13161 static const struct npc_kpu_profile_action kpu16_action_entries[] = { 13162 { 13163 NPC_ERRLEV_RE, NPC_EC_NOERR, 13164 0, 0, 0, 0, 1, 13165 NPC_S_NA, 0, 0, 13166 NPC_LID_LH, NPC_LT_NA, 13167 0, 13168 0, 0, 0, 0, 13169 }, 13170 { 13171 NPC_ERRLEV_RE, NPC_EC_NOERR, 13172 0, 0, 0, 0, 1, 13173 NPC_S_NA, 0, 0, 13174 NPC_LID_LH, NPC_LT_NA, 13175 0, 13176 0, 0, 0, 0, 13177 }, 13178 { 13179 NPC_ERRLEV_RE, NPC_EC_NOERR, 13180 0, 0, 0, 0, 1, 13181 NPC_S_NA, 0, 0, 13182 NPC_LID_LH, NPC_LT_NA, 13183 0, 13184 0, 0, 0, 0, 13185 }, 13186 { 13187 NPC_ERRLEV_RE, NPC_EC_NOERR, 13188 0, 0, 0, 0, 1, 13189 NPC_S_NA, 0, 0, 13190 NPC_LID_LH, NPC_LT_NA, 13191 0, 13192 0, 0, 0, 0, 13193 }, 13194 { 13195 NPC_ERRLEV_RE, NPC_EC_NOERR, 13196 0, 0, 0, 0, 1, 13197 NPC_S_NA, 0, 0, 13198 NPC_LID_LH, NPC_LT_NA, 13199 0, 13200 0, 0, 0, 0, 13201 }, 13202 { 13203 NPC_ERRLEV_RE, NPC_EC_NOERR, 13204 0, 0, 0, 0, 1, 13205 NPC_S_NA, 0, 0, 13206 NPC_LID_LH, NPC_LT_NA, 13207 0, 13208 0, 0, 0, 0, 13209 }, 13210 }; 13211 13212 static const struct npc_kpu_profile npc_kpu_profiles[] = { 13213 { 13214 ARRAY_SIZE(kpu1_cam_entries), 13215 ARRAY_SIZE(kpu1_action_entries), 13216 &kpu1_cam_entries[0], 13217 &kpu1_action_entries[0], 13218 }, 13219 { 13220 ARRAY_SIZE(kpu2_cam_entries), 13221 ARRAY_SIZE(kpu2_action_entries), 13222 &kpu2_cam_entries[0], 13223 &kpu2_action_entries[0], 13224 }, 13225 { 13226 ARRAY_SIZE(kpu3_cam_entries), 13227 ARRAY_SIZE(kpu3_action_entries), 13228 &kpu3_cam_entries[0], 13229 &kpu3_action_entries[0], 13230 }, 13231 { 13232 ARRAY_SIZE(kpu4_cam_entries), 13233 ARRAY_SIZE(kpu4_action_entries), 13234 &kpu4_cam_entries[0], 13235 &kpu4_action_entries[0], 13236 }, 13237 { 13238 ARRAY_SIZE(kpu5_cam_entries), 13239 ARRAY_SIZE(kpu5_action_entries), 13240 &kpu5_cam_entries[0], 13241 &kpu5_action_entries[0], 13242 }, 13243 { 13244 ARRAY_SIZE(kpu6_cam_entries), 13245 ARRAY_SIZE(kpu6_action_entries), 13246 &kpu6_cam_entries[0], 13247 &kpu6_action_entries[0], 13248 }, 13249 { 13250 ARRAY_SIZE(kpu7_cam_entries), 13251 ARRAY_SIZE(kpu7_action_entries), 13252 &kpu7_cam_entries[0], 13253 &kpu7_action_entries[0], 13254 }, 13255 { 13256 ARRAY_SIZE(kpu8_cam_entries), 13257 ARRAY_SIZE(kpu8_action_entries), 13258 &kpu8_cam_entries[0], 13259 &kpu8_action_entries[0], 13260 }, 13261 { 13262 ARRAY_SIZE(kpu9_cam_entries), 13263 ARRAY_SIZE(kpu9_action_entries), 13264 &kpu9_cam_entries[0], 13265 &kpu9_action_entries[0], 13266 }, 13267 { 13268 ARRAY_SIZE(kpu10_cam_entries), 13269 ARRAY_SIZE(kpu10_action_entries), 13270 &kpu10_cam_entries[0], 13271 &kpu10_action_entries[0], 13272 }, 13273 { 13274 ARRAY_SIZE(kpu11_cam_entries), 13275 ARRAY_SIZE(kpu11_action_entries), 13276 &kpu11_cam_entries[0], 13277 &kpu11_action_entries[0], 13278 }, 13279 { 13280 ARRAY_SIZE(kpu12_cam_entries), 13281 ARRAY_SIZE(kpu12_action_entries), 13282 &kpu12_cam_entries[0], 13283 &kpu12_action_entries[0], 13284 }, 13285 { 13286 ARRAY_SIZE(kpu13_cam_entries), 13287 ARRAY_SIZE(kpu13_action_entries), 13288 &kpu13_cam_entries[0], 13289 &kpu13_action_entries[0], 13290 }, 13291 { 13292 ARRAY_SIZE(kpu14_cam_entries), 13293 ARRAY_SIZE(kpu14_action_entries), 13294 &kpu14_cam_entries[0], 13295 &kpu14_action_entries[0], 13296 }, 13297 { 13298 ARRAY_SIZE(kpu15_cam_entries), 13299 ARRAY_SIZE(kpu15_action_entries), 13300 &kpu15_cam_entries[0], 13301 &kpu15_action_entries[0], 13302 }, 13303 { 13304 ARRAY_SIZE(kpu16_cam_entries), 13305 ARRAY_SIZE(kpu16_action_entries), 13306 &kpu16_cam_entries[0], 13307 &kpu16_action_entries[0], 13308 }, 13309 }; 13310 13311 static const struct npc_lt_def_cfg npc_lt_defaults = { 13312 .rx_ol2 = { 13313 .lid = NPC_LID_LA, 13314 .ltype_match = NPC_LT_LA_ETHER, 13315 .ltype_mask = 0x0F, 13316 }, 13317 .rx_oip4 = { 13318 .lid = NPC_LID_LC, 13319 .ltype_match = NPC_LT_LC_IP, 13320 .ltype_mask = 0x0E, 13321 }, 13322 .rx_iip4 = { 13323 .lid = NPC_LID_LG, 13324 .ltype_match = NPC_LT_LG_TU_IP, 13325 .ltype_mask = 0x0F, 13326 }, 13327 .rx_oip6 = { 13328 .lid = NPC_LID_LC, 13329 .ltype_match = NPC_LT_LC_IP6, 13330 .ltype_mask = 0x0E, 13331 }, 13332 .rx_iip6 = { 13333 .lid = NPC_LID_LG, 13334 .ltype_match = NPC_LT_LG_TU_IP6, 13335 .ltype_mask = 0x0F, 13336 }, 13337 .rx_otcp = { 13338 .lid = NPC_LID_LD, 13339 .ltype_match = NPC_LT_LD_TCP, 13340 .ltype_mask = 0x0F, 13341 }, 13342 .rx_itcp = { 13343 .lid = NPC_LID_LH, 13344 .ltype_match = NPC_LT_LH_TU_TCP, 13345 .ltype_mask = 0x0F, 13346 }, 13347 .rx_oudp = { 13348 .lid = NPC_LID_LD, 13349 .ltype_match = NPC_LT_LD_UDP, 13350 .ltype_mask = 0x0F, 13351 }, 13352 .rx_iudp = { 13353 .lid = NPC_LID_LH, 13354 .ltype_match = NPC_LT_LH_TU_UDP, 13355 .ltype_mask = 0x0F, 13356 }, 13357 .rx_osctp = { 13358 .lid = NPC_LID_LD, 13359 .ltype_match = NPC_LT_LD_SCTP, 13360 .ltype_mask = 0x0F, 13361 }, 13362 .rx_isctp = { 13363 .lid = NPC_LID_LH, 13364 .ltype_match = NPC_LT_LH_TU_SCTP, 13365 .ltype_mask = 0x0F, 13366 }, 13367 .rx_ipsec = { 13368 { 13369 .lid = NPC_LID_LE, 13370 .ltype_match = NPC_LT_LE_ESP, 13371 .ltype_mask = 0x0F, 13372 }, 13373 { 13374 .spi_offset = 8, 13375 .lid = NPC_LID_LH, 13376 .ltype_match = NPC_LT_LH_TU_ESP, 13377 .ltype_mask = 0x0F, 13378 }, 13379 }, 13380 .pck_ol2 = { 13381 .lid = NPC_LID_LA, 13382 .ltype_match = NPC_LT_LA_ETHER, 13383 .ltype_mask = 0x0F, 13384 }, 13385 .pck_oip4 = { 13386 .lid = NPC_LID_LC, 13387 .ltype_match = NPC_LT_LC_IP, 13388 .ltype_mask = 0x0E, 13389 }, 13390 .pck_iip4 = { 13391 .lid = NPC_LID_LG, 13392 .ltype_match = NPC_LT_LG_TU_IP, 13393 .ltype_mask = 0x0F, 13394 }, 13395 }; 13396 13397 static struct npc_mcam_kex npc_mkex_default = { 13398 .mkex_sign = MKEX_SIGN, 13399 .name = "default", 13400 .kpu_version = NPC_KPU_PROFILE_VER, 13401 .keyx_cfg = { 13402 /* nibble: LA..LE (ltype only) + channel */ 13403 [NIX_INTF_RX] = ((u64)NPC_MCAM_KEY_X2 << 32) | NPC_PARSE_NIBBLE_INTF_RX, 13404 /* nibble: LA..LE (ltype only) */ 13405 [NIX_INTF_TX] = ((u64)NPC_MCAM_KEY_X2 << 32) | NPC_PARSE_NIBBLE_INTF_TX, 13406 }, 13407 .intf_lid_lt_ld = { 13408 /* Default RX MCAM KEX profile */ 13409 [NIX_INTF_RX] = { 13410 [NPC_LID_LA] = { 13411 /* Layer A: Ethernet: */ 13412 [NPC_LT_LA_ETHER] = { 13413 /* DMAC: 6 bytes, KW1[47:0] */ 13414 KEX_LD_CFG(0x05, 0x0, 0x1, 0x0, NPC_KEXOF_DMAC), 13415 /* Ethertype: 2 bytes, KW0[47:32] */ 13416 KEX_LD_CFG(0x01, 0xc, 0x1, 0x0, 0x4), 13417 }, 13418 }, 13419 [NPC_LID_LB] = { 13420 /* Layer B: Single VLAN (CTAG) */ 13421 /* CTAG VLAN[2..3] + Ethertype, 4 bytes, KW0[63:32] */ 13422 [NPC_LT_LB_CTAG] = { 13423 KEX_LD_CFG(0x03, 0x2, 0x1, 0x0, 0x4), 13424 }, 13425 /* Layer B: Stacked VLAN (STAG|QinQ) */ 13426 [NPC_LT_LB_STAG_QINQ] = { 13427 /* Outer VLAN: 2 bytes, KW0[63:48] */ 13428 KEX_LD_CFG(0x01, 0x2, 0x1, 0x0, 0x6), 13429 /* Ethertype: 2 bytes, KW0[47:32] */ 13430 KEX_LD_CFG(0x01, 0x8, 0x1, 0x0, 0x4), 13431 }, 13432 [NPC_LT_LB_FDSA] = { 13433 /* SWITCH PORT: 1 byte, KW0[63:48] */ 13434 KEX_LD_CFG(0x0, 0x1, 0x1, 0x0, 0x6), 13435 /* Ethertype: 2 bytes, KW0[47:32] */ 13436 KEX_LD_CFG(0x01, 0x4, 0x1, 0x0, 0x4), 13437 }, 13438 }, 13439 [NPC_LID_LC] = { 13440 /* Layer C: IPv4 */ 13441 [NPC_LT_LC_IP] = { 13442 /* SIP+DIP: 8 bytes, KW2[63:0] */ 13443 KEX_LD_CFG(0x07, 0xc, 0x1, 0x0, 0x10), 13444 /* TOS: 1 byte, KW1[63:56] */ 13445 KEX_LD_CFG(0x0, 0x1, 0x1, 0x0, 0xf), 13446 }, 13447 /* Layer C: IPv6 */ 13448 [NPC_LT_LC_IP6] = { 13449 /* Everything up to SADDR: 8 bytes, KW2[63:0] */ 13450 KEX_LD_CFG(0x07, 0x0, 0x1, 0x0, 0x10), 13451 }, 13452 }, 13453 [NPC_LID_LD] = { 13454 /* Layer D:UDP */ 13455 [NPC_LT_LD_UDP] = { 13456 /* SPORT+DPORT: 4 bytes, KW3[31:0] */ 13457 KEX_LD_CFG(0x3, 0x0, 0x1, 0x0, 0x18), 13458 }, 13459 /* Layer D:TCP */ 13460 [NPC_LT_LD_TCP] = { 13461 /* SPORT+DPORT: 4 bytes, KW3[31:0] */ 13462 KEX_LD_CFG(0x3, 0x0, 0x1, 0x0, 0x18), 13463 }, 13464 }, 13465 }, 13466 13467 /* Default TX MCAM KEX profile */ 13468 [NIX_INTF_TX] = { 13469 [NPC_LID_LA] = { 13470 /* Layer A: NIX_INST_HDR_S + Ethernet */ 13471 /* NIX appends 8 bytes of NIX_INST_HDR_S at the 13472 * start of each TX packet supplied to NPC. 13473 */ 13474 [NPC_LT_LA_IH_NIX_ETHER] = { 13475 /* PF_FUNC: 2B , KW0 [47:32] */ 13476 KEX_LD_CFG(0x01, 0x0, 0x1, 0x0, 0x4), 13477 /* DMAC: 6 bytes, KW1[63:16] */ 13478 KEX_LD_CFG(0x05, 0x8, 0x1, 0x0, 0xa), 13479 }, 13480 }, 13481 [NPC_LID_LB] = { 13482 /* Layer B: Single VLAN (CTAG) */ 13483 [NPC_LT_LB_CTAG] = { 13484 /* CTAG VLAN[2..3] KW0[63:48] */ 13485 KEX_LD_CFG(0x01, 0x2, 0x1, 0x0, 0x6), 13486 /* CTAG VLAN[2..3] KW1[15:0] */ 13487 KEX_LD_CFG(0x01, 0x4, 0x1, 0x0, 0x8), 13488 }, 13489 /* Layer B: Stacked VLAN (STAG|QinQ) */ 13490 [NPC_LT_LB_STAG_QINQ] = { 13491 /* Outer VLAN: 2 bytes, KW0[63:48] */ 13492 KEX_LD_CFG(0x01, 0x2, 0x1, 0x0, 0x6), 13493 /* Outer VLAN: 2 Bytes, KW1[15:0] */ 13494 KEX_LD_CFG(0x01, 0x8, 0x1, 0x0, 0x8), 13495 }, 13496 }, 13497 [NPC_LID_LC] = { 13498 /* Layer C: IPv4 */ 13499 [NPC_LT_LC_IP] = { 13500 /* SIP+DIP: 8 bytes, KW2[63:0] */ 13501 KEX_LD_CFG(0x07, 0xc, 0x1, 0x0, 0x10), 13502 /* TOS: 1 byte, KW1[63:56] */ 13503 KEX_LD_CFG(0x0, 0x1, 0x1, 0x0, 0xf), 13504 }, 13505 /* Layer C: IPv6 */ 13506 [NPC_LT_LC_IP6] = { 13507 /* Everything up to SADDR: 8 bytes, KW2[63:0] */ 13508 KEX_LD_CFG(0x07, 0x0, 0x1, 0x0, 0x10), 13509 }, 13510 }, 13511 [NPC_LID_LD] = { 13512 /* Layer D:UDP */ 13513 [NPC_LT_LD_UDP] = { 13514 /* SPORT+DPORT: 4 bytes, KW3[31:0] */ 13515 KEX_LD_CFG(0x3, 0x0, 0x1, 0x0, 0x18), 13516 }, 13517 /* Layer D:TCP */ 13518 [NPC_LT_LD_TCP] = { 13519 /* SPORT+DPORT: 4 bytes, KW3[31:0] */ 13520 KEX_LD_CFG(0x3, 0x0, 0x1, 0x0, 0x18), 13521 }, 13522 }, 13523 }, 13524 }, 13525 }; 13526 13527 #endif /* NPC_PROFILE_H */ 13528