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