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