1 /* SPDX-License-Identifier: BSD-3-Clause */ 2 /* Copyright (c) 2021, Intel Corporation 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright notice, 9 * this list of conditions and the following disclaimer. 10 * 11 * 2. Redistributions in binary form must reproduce the above copyright 12 * notice, this list of conditions and the following disclaimer in the 13 * documentation and/or other materials provided with the distribution. 14 * 15 * 3. Neither the name of the Intel Corporation nor the names of its 16 * contributors may be used to endorse or promote products derived from 17 * this software without specific prior written permission. 18 * 19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 20 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 23 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29 * POSSIBILITY OF SUCH DAMAGE. 30 */ 31 /*$FreeBSD$*/ 32 33 #ifndef _ICE_LAN_TX_RX_H_ 34 #define _ICE_LAN_TX_RX_H_ 35 #include "ice_osdep.h" 36 37 /* Rx Descriptors */ 38 union ice_16byte_rx_desc { 39 struct { 40 __le64 pkt_addr; /* Packet buffer address */ 41 __le64 hdr_addr; /* Header buffer address */ 42 } read; 43 struct { 44 struct { 45 struct { 46 __le16 mirroring_status; 47 __le16 l2tag1; 48 } lo_dword; 49 union { 50 __le32 rss; /* RSS Hash */ 51 __le32 fd_id; /* Flow Director filter ID */ 52 } hi_dword; 53 } qword0; 54 struct { 55 /* ext status/error/PTYPE/length */ 56 __le64 status_error_len; 57 } qword1; 58 } wb; /* writeback */ 59 }; 60 61 union ice_32byte_rx_desc { 62 struct { 63 __le64 pkt_addr; /* Packet buffer address */ 64 __le64 hdr_addr; /* Header buffer address */ 65 /* bit 0 of hdr_addr is DD bit */ 66 __le64 rsvd1; 67 __le64 rsvd2; 68 } read; 69 struct { 70 struct { 71 struct { 72 __le16 mirroring_status; 73 __le16 l2tag1; 74 } lo_dword; 75 union { 76 __le32 rss; /* RSS Hash */ 77 __le32 fd_id; /* Flow Director filter ID */ 78 } hi_dword; 79 } qword0; 80 struct { 81 /* status/error/PTYPE/length */ 82 __le64 status_error_len; 83 } qword1; 84 struct { 85 __le16 ext_status; /* extended status */ 86 __le16 rsvd; 87 __le16 l2tag2_1; 88 __le16 l2tag2_2; 89 } qword2; 90 struct { 91 __le32 reserved; 92 __le32 fd_id; 93 } qword3; 94 } wb; /* writeback */ 95 }; 96 97 struct ice_fltr_desc { 98 __le64 qidx_compq_space_stat; 99 __le64 dtype_cmd_vsi_fdid; 100 }; 101 102 #define ICE_FXD_FLTR_QW0_QINDEX_S 0 103 #define ICE_FXD_FLTR_QW0_QINDEX_M (0x7FFULL << ICE_FXD_FLTR_QW0_QINDEX_S) 104 #define ICE_FXD_FLTR_QW0_COMP_Q_S 11 105 #define ICE_FXD_FLTR_QW0_COMP_Q_M BIT_ULL(ICE_FXD_FLTR_QW0_COMP_Q_S) 106 #define ICE_FXD_FLTR_QW0_COMP_Q_ZERO 0x0ULL 107 #define ICE_FXD_FLTR_QW0_COMP_Q_QINDX 0x1ULL 108 109 #define ICE_FXD_FLTR_QW0_COMP_REPORT_S 12 110 #define ICE_FXD_FLTR_QW0_COMP_REPORT_M \ 111 (0x3ULL << ICE_FXD_FLTR_QW0_COMP_REPORT_S) 112 #define ICE_FXD_FLTR_QW0_COMP_REPORT_NONE 0x0ULL 113 #define ICE_FXD_FLTR_QW0_COMP_REPORT_SW_FAIL 0x1ULL 114 #define ICE_FXD_FLTR_QW0_COMP_REPORT_SW 0x2ULL 115 116 #define ICE_FXD_FLTR_QW0_FD_SPACE_S 14 117 #define ICE_FXD_FLTR_QW0_FD_SPACE_M (0x3ULL << ICE_FXD_FLTR_QW0_FD_SPACE_S) 118 #define ICE_FXD_FLTR_QW0_FD_SPACE_GUAR 0x0ULL 119 #define ICE_FXD_FLTR_QW0_FD_SPACE_BEST_EFFORT 0x1ULL 120 #define ICE_FXD_FLTR_QW0_FD_SPACE_GUAR_BEST 0x2ULL 121 #define ICE_FXD_FLTR_QW0_FD_SPACE_BEST_GUAR 0x3ULL 122 123 #define ICE_FXD_FLTR_QW0_STAT_CNT_S 16 124 #define ICE_FXD_FLTR_QW0_STAT_CNT_M \ 125 (0x1FFFULL << ICE_FXD_FLTR_QW0_STAT_CNT_S) 126 #define ICE_FXD_FLTR_QW0_STAT_ENA_S 29 127 #define ICE_FXD_FLTR_QW0_STAT_ENA_M (0x3ULL << ICE_FXD_FLTR_QW0_STAT_ENA_S) 128 #define ICE_FXD_FLTR_QW0_STAT_ENA_NONE 0x0ULL 129 #define ICE_FXD_FLTR_QW0_STAT_ENA_PKTS 0x1ULL 130 #define ICE_FXD_FLTR_QW0_STAT_ENA_BYTES 0x2ULL 131 #define ICE_FXD_FLTR_QW0_STAT_ENA_PKTS_BYTES 0x3ULL 132 133 #define ICE_FXD_FLTR_QW0_EVICT_ENA_S 31 134 #define ICE_FXD_FLTR_QW0_EVICT_ENA_M BIT_ULL(ICE_FXD_FLTR_QW0_EVICT_ENA_S) 135 #define ICE_FXD_FLTR_QW0_EVICT_ENA_FALSE 0x0ULL 136 #define ICE_FXD_FLTR_QW0_EVICT_ENA_TRUE 0x1ULL 137 138 #define ICE_FXD_FLTR_QW0_TO_Q_S 32 139 #define ICE_FXD_FLTR_QW0_TO_Q_M (0x7ULL << ICE_FXD_FLTR_QW0_TO_Q_S) 140 #define ICE_FXD_FLTR_QW0_TO_Q_EQUALS_QINDEX 0x0ULL 141 142 #define ICE_FXD_FLTR_QW0_TO_Q_PRI_S 35 143 #define ICE_FXD_FLTR_QW0_TO_Q_PRI_M (0x7ULL << ICE_FXD_FLTR_QW0_TO_Q_PRI_S) 144 #define ICE_FXD_FLTR_QW0_TO_Q_PRIO1 0x1ULL 145 146 #define ICE_FXD_FLTR_QW0_DPU_RECIPE_S 38 147 #define ICE_FXD_FLTR_QW0_DPU_RECIPE_M \ 148 (0x3ULL << ICE_FXD_FLTR_QW0_DPU_RECIPE_S) 149 #define ICE_FXD_FLTR_QW0_DPU_RECIPE_DFLT 0x0ULL 150 151 #define ICE_FXD_FLTR_QW0_DROP_S 40 152 #define ICE_FXD_FLTR_QW0_DROP_M BIT_ULL(ICE_FXD_FLTR_QW0_DROP_S) 153 #define ICE_FXD_FLTR_QW0_DROP_NO 0x0ULL 154 #define ICE_FXD_FLTR_QW0_DROP_YES 0x1ULL 155 156 #define ICE_FXD_FLTR_QW0_FLEX_PRI_S 41 157 #define ICE_FXD_FLTR_QW0_FLEX_PRI_M (0x7ULL << ICE_FXD_FLTR_QW0_FLEX_PRI_S) 158 #define ICE_FXD_FLTR_QW0_FLEX_PRI_NONE 0x0ULL 159 160 #define ICE_FXD_FLTR_QW0_FLEX_MDID_S 44 161 #define ICE_FXD_FLTR_QW0_FLEX_MDID_M (0xFULL << ICE_FXD_FLTR_QW0_FLEX_MDID_S) 162 #define ICE_FXD_FLTR_QW0_FLEX_MDID0 0x0ULL 163 164 #define ICE_FXD_FLTR_QW0_FLEX_VAL_S 48 165 #define ICE_FXD_FLTR_QW0_FLEX_VAL_M \ 166 (0xFFFFULL << ICE_FXD_FLTR_QW0_FLEX_VAL_S) 167 #define ICE_FXD_FLTR_QW0_FLEX_VAL0 0x0ULL 168 169 #define ICE_FXD_FLTR_QW1_DTYPE_S 0 170 #define ICE_FXD_FLTR_QW1_DTYPE_M (0xFULL << ICE_FXD_FLTR_QW1_DTYPE_S) 171 #define ICE_FXD_FLTR_QW1_PCMD_S 4 172 #define ICE_FXD_FLTR_QW1_PCMD_M BIT_ULL(ICE_FXD_FLTR_QW1_PCMD_S) 173 #define ICE_FXD_FLTR_QW1_PCMD_ADD 0x0ULL 174 #define ICE_FXD_FLTR_QW1_PCMD_REMOVE 0x1ULL 175 176 #define ICE_FXD_FLTR_QW1_PROF_PRI_S 5 177 #define ICE_FXD_FLTR_QW1_PROF_PRI_M (0x7ULL << ICE_FXD_FLTR_QW1_PROF_PRI_S) 178 #define ICE_FXD_FLTR_QW1_PROF_PRIO_ZERO 0x0ULL 179 180 #define ICE_FXD_FLTR_QW1_PROF_S 8 181 #define ICE_FXD_FLTR_QW1_PROF_M (0x3FULL << ICE_FXD_FLTR_QW1_PROF_S) 182 #define ICE_FXD_FLTR_QW1_PROF_ZERO 0x0ULL 183 184 #define ICE_FXD_FLTR_QW1_FD_VSI_S 14 185 #define ICE_FXD_FLTR_QW1_FD_VSI_M (0x3FFULL << ICE_FXD_FLTR_QW1_FD_VSI_S) 186 #define ICE_FXD_FLTR_QW1_SWAP_S 24 187 #define ICE_FXD_FLTR_QW1_SWAP_M BIT_ULL(ICE_FXD_FLTR_QW1_SWAP_S) 188 #define ICE_FXD_FLTR_QW1_SWAP_NOT_SET 0x0ULL 189 #define ICE_FXD_FLTR_QW1_SWAP_SET 0x1ULL 190 191 #define ICE_FXD_FLTR_QW1_FDID_PRI_S 25 192 #define ICE_FXD_FLTR_QW1_FDID_PRI_M (0x7ULL << ICE_FXD_FLTR_QW1_FDID_PRI_S) 193 #define ICE_FXD_FLTR_QW1_FDID_PRI_ZERO 0x0ULL 194 #define ICE_FXD_FLTR_QW1_FDID_PRI_ONE 0x1ULL 195 #define ICE_FXD_FLTR_QW1_FDID_PRI_THREE 0x3ULL 196 197 #define ICE_FXD_FLTR_QW1_FDID_MDID_S 28 198 #define ICE_FXD_FLTR_QW1_FDID_MDID_M (0xFULL << ICE_FXD_FLTR_QW1_FDID_MDID_S) 199 #define ICE_FXD_FLTR_QW1_FDID_MDID_FD 0x05ULL 200 201 #define ICE_FXD_FLTR_QW1_FDID_S 32 202 #define ICE_FXD_FLTR_QW1_FDID_M \ 203 (0xFFFFFFFFULL << ICE_FXD_FLTR_QW1_FDID_S) 204 #define ICE_FXD_FLTR_QW1_FDID_ZERO 0x0ULL 205 206 enum ice_rx_desc_status_bits { 207 /* Note: These are predefined bit offsets */ 208 ICE_RX_DESC_STATUS_DD_S = 0, 209 ICE_RX_DESC_STATUS_EOF_S = 1, 210 ICE_RX_DESC_STATUS_L2TAG1P_S = 2, 211 ICE_RX_DESC_STATUS_L3L4P_S = 3, 212 ICE_RX_DESC_STATUS_CRCP_S = 4, 213 ICE_RX_DESC_STATUS_TSYNINDX_S = 5, 214 ICE_RX_DESC_STATUS_TSYNVALID_S = 7, 215 ICE_RX_DESC_STATUS_EXT_UDP_0_S = 8, 216 ICE_RX_DESC_STATUS_UMBCAST_S = 9, 217 ICE_RX_DESC_STATUS_FLM_S = 11, 218 ICE_RX_DESC_STATUS_FLTSTAT_S = 12, 219 ICE_RX_DESC_STATUS_LPBK_S = 14, 220 ICE_RX_DESC_STATUS_IPV6EXADD_S = 15, 221 ICE_RX_DESC_STATUS_RESERVED2_S = 16, 222 ICE_RX_DESC_STATUS_INT_UDP_0_S = 18, 223 ICE_RX_DESC_STATUS_LAST /* this entry must be last!!! */ 224 }; 225 226 #define ICE_RXD_QW1_STATUS_S 0 227 #define ICE_RXD_QW1_STATUS_M ((BIT(ICE_RX_DESC_STATUS_LAST) - 1) << \ 228 ICE_RXD_QW1_STATUS_S) 229 230 #define ICE_RXD_QW1_STATUS_TSYNINDX_S ICE_RX_DESC_STATUS_TSYNINDX_S 231 #define ICE_RXD_QW1_STATUS_TSYNINDX_M (0x3UL << ICE_RXD_QW1_STATUS_TSYNINDX_S) 232 233 #define ICE_RXD_QW1_STATUS_TSYNVALID_S ICE_RX_DESC_STATUS_TSYNVALID_S 234 #define ICE_RXD_QW1_STATUS_TSYNVALID_M BIT_ULL(ICE_RXD_QW1_STATUS_TSYNVALID_S) 235 236 enum ice_rx_desc_fltstat_values { 237 ICE_RX_DESC_FLTSTAT_NO_DATA = 0, 238 ICE_RX_DESC_FLTSTAT_RSV_FD_ID = 1, /* 16byte desc? FD_ID : RSV */ 239 ICE_RX_DESC_FLTSTAT_RSV = 2, 240 ICE_RX_DESC_FLTSTAT_RSS_HASH = 3, 241 }; 242 243 #define ICE_RXD_QW1_ERROR_S 19 244 #define ICE_RXD_QW1_ERROR_M (0xFFUL << ICE_RXD_QW1_ERROR_S) 245 246 enum ice_rx_desc_error_bits { 247 /* Note: These are predefined bit offsets */ 248 ICE_RX_DESC_ERROR_RXE_S = 0, 249 ICE_RX_DESC_ERROR_RECIPE_S = 1, 250 ICE_RX_DESC_ERROR_HBO_S = 2, 251 ICE_RX_DESC_ERROR_L3L4E_S = 3, /* 3 BITS */ 252 ICE_RX_DESC_ERROR_IPE_S = 3, 253 ICE_RX_DESC_ERROR_L4E_S = 4, 254 ICE_RX_DESC_ERROR_EIPE_S = 5, 255 ICE_RX_DESC_ERROR_OVERSIZE_S = 6, 256 ICE_RX_DESC_ERROR_PPRS_S = 7 257 }; 258 259 enum ice_rx_desc_error_l3l4e_masks { 260 ICE_RX_DESC_ERROR_L3L4E_NONE = 0, 261 ICE_RX_DESC_ERROR_L3L4E_PROT = 1, 262 }; 263 264 #define ICE_RXD_QW1_PTYPE_S 30 265 #define ICE_RXD_QW1_PTYPE_M (0xFFULL << ICE_RXD_QW1_PTYPE_S) 266 267 /* Packet type non-ip values */ 268 enum ice_rx_l2_ptype { 269 ICE_RX_PTYPE_L2_RESERVED = 0, 270 ICE_RX_PTYPE_L2_MAC_PAY2 = 1, 271 ICE_RX_PTYPE_L2_FIP_PAY2 = 3, 272 ICE_RX_PTYPE_L2_OUI_PAY2 = 4, 273 ICE_RX_PTYPE_L2_MACCNTRL_PAY2 = 5, 274 ICE_RX_PTYPE_L2_LLDP_PAY2 = 6, 275 ICE_RX_PTYPE_L2_ECP_PAY2 = 7, 276 ICE_RX_PTYPE_L2_EVB_PAY2 = 8, 277 ICE_RX_PTYPE_L2_QCN_PAY2 = 9, 278 ICE_RX_PTYPE_L2_EAPOL_PAY2 = 10, 279 ICE_RX_PTYPE_L2_ARP = 11, 280 }; 281 282 struct ice_rx_ptype_decoded { 283 u32 ptype:10; 284 u32 known:1; 285 u32 outer_ip:1; 286 u32 outer_ip_ver:2; 287 u32 outer_frag:1; 288 u32 tunnel_type:3; 289 u32 tunnel_end_prot:2; 290 u32 tunnel_end_frag:1; 291 u32 inner_prot:4; 292 u32 payload_layer:3; 293 }; 294 295 enum ice_rx_ptype_outer_ip { 296 ICE_RX_PTYPE_OUTER_L2 = 0, 297 ICE_RX_PTYPE_OUTER_IP = 1, 298 }; 299 300 enum ice_rx_ptype_outer_ip_ver { 301 ICE_RX_PTYPE_OUTER_NONE = 0, 302 ICE_RX_PTYPE_OUTER_IPV4 = 1, 303 ICE_RX_PTYPE_OUTER_IPV6 = 2, 304 }; 305 306 enum ice_rx_ptype_outer_fragmented { 307 ICE_RX_PTYPE_NOT_FRAG = 0, 308 ICE_RX_PTYPE_FRAG = 1, 309 }; 310 311 enum ice_rx_ptype_tunnel_type { 312 ICE_RX_PTYPE_TUNNEL_NONE = 0, 313 ICE_RX_PTYPE_TUNNEL_IP_IP = 1, 314 ICE_RX_PTYPE_TUNNEL_IP_GRENAT = 2, 315 ICE_RX_PTYPE_TUNNEL_IP_GRENAT_MAC = 3, 316 ICE_RX_PTYPE_TUNNEL_IP_GRENAT_MAC_VLAN = 4, 317 }; 318 319 enum ice_rx_ptype_tunnel_end_prot { 320 ICE_RX_PTYPE_TUNNEL_END_NONE = 0, 321 ICE_RX_PTYPE_TUNNEL_END_IPV4 = 1, 322 ICE_RX_PTYPE_TUNNEL_END_IPV6 = 2, 323 }; 324 325 enum ice_rx_ptype_inner_prot { 326 ICE_RX_PTYPE_INNER_PROT_NONE = 0, 327 ICE_RX_PTYPE_INNER_PROT_UDP = 1, 328 ICE_RX_PTYPE_INNER_PROT_TCP = 2, 329 ICE_RX_PTYPE_INNER_PROT_SCTP = 3, 330 ICE_RX_PTYPE_INNER_PROT_ICMP = 4, 331 }; 332 333 enum ice_rx_ptype_payload_layer { 334 ICE_RX_PTYPE_PAYLOAD_LAYER_NONE = 0, 335 ICE_RX_PTYPE_PAYLOAD_LAYER_PAY2 = 1, 336 ICE_RX_PTYPE_PAYLOAD_LAYER_PAY3 = 2, 337 ICE_RX_PTYPE_PAYLOAD_LAYER_PAY4 = 3, 338 }; 339 340 #define ICE_RXD_QW1_LEN_PBUF_S 38 341 #define ICE_RXD_QW1_LEN_PBUF_M (0x3FFFULL << ICE_RXD_QW1_LEN_PBUF_S) 342 343 #define ICE_RXD_QW1_LEN_HBUF_S 52 344 #define ICE_RXD_QW1_LEN_HBUF_M (0x7FFULL << ICE_RXD_QW1_LEN_HBUF_S) 345 346 #define ICE_RXD_QW1_LEN_SPH_S 63 347 #define ICE_RXD_QW1_LEN_SPH_M BIT_ULL(ICE_RXD_QW1_LEN_SPH_S) 348 349 enum ice_rx_desc_ext_status_bits { 350 /* Note: These are predefined bit offsets */ 351 ICE_RX_DESC_EXT_STATUS_L2TAG2P_S = 0, 352 ICE_RX_DESC_EXT_STATUS_L2TAG3P_S = 1, 353 ICE_RX_DESC_EXT_STATUS_FLEXBL_S = 2, 354 ICE_RX_DESC_EXT_STATUS_FLEXBH_S = 4, 355 ICE_RX_DESC_EXT_STATUS_FDLONGB_S = 9, 356 ICE_RX_DESC_EXT_STATUS_PELONGB_S = 11, 357 }; 358 359 enum ice_rx_desc_pe_status_bits { 360 /* Note: These are predefined bit offsets */ 361 ICE_RX_DESC_PE_STATUS_QPID_S = 0, /* 18 BITS */ 362 ICE_RX_DESC_PE_STATUS_L4PORT_S = 0, /* 16 BITS */ 363 ICE_RX_DESC_PE_STATUS_IPINDEX_S = 16, /* 8 BITS */ 364 ICE_RX_DESC_PE_STATUS_QPIDHIT_S = 24, 365 ICE_RX_DESC_PE_STATUS_APBVTHIT_S = 25, 366 ICE_RX_DESC_PE_STATUS_PORTV_S = 26, 367 ICE_RX_DESC_PE_STATUS_URG_S = 27, 368 ICE_RX_DESC_PE_STATUS_IPFRAG_S = 28, 369 ICE_RX_DESC_PE_STATUS_IPOPT_S = 29 370 }; 371 372 #define ICE_RX_PROG_STATUS_DESC_LEN_S 38 373 #define ICE_RX_PROG_STATUS_DESC_LEN 0x2000000 374 375 #define ICE_RX_PROG_STATUS_DESC_QW1_PROGID_S 2 376 #define ICE_RX_PROG_STATUS_DESC_QW1_PROGID_M \ 377 (0x7UL << ICE_RX_PROG_STATUS_DESC_QW1_PROGID_S) 378 379 #define ICE_RX_PROG_STATUS_DESC_QW1_ERROR_S 19 380 #define ICE_RX_PROG_STATUS_DESC_QW1_ERROR_M \ 381 (0x3FUL << ICE_RX_PROG_STATUS_DESC_QW1_ERROR_S) 382 383 enum ice_rx_prog_status_desc_status_bits { 384 /* Note: These are predefined bit offsets */ 385 ICE_RX_PROG_STATUS_DESC_DD_S = 0, 386 ICE_RX_PROG_STATUS_DESC_PROG_ID_S = 2 /* 3 BITS */ 387 }; 388 389 enum ice_rx_prog_status_desc_prog_id_masks { 390 ICE_RX_PROG_STATUS_DESC_FD_FLTR_STATUS = 1, 391 }; 392 393 enum ice_rx_prog_status_desc_error_bits { 394 /* Note: These are predefined bit offsets */ 395 ICE_RX_PROG_STATUS_DESC_FD_TBL_FULL_S = 0, 396 ICE_RX_PROG_STATUS_DESC_NO_FD_ENTRY_S = 1, 397 }; 398 399 /* Rx Flex Descriptors 400 * These descriptors are used instead of the legacy version descriptors when 401 * ice_rlan_ctx.adv_desc is set 402 */ 403 404 union ice_32b_rx_flex_desc { 405 struct { 406 __le64 pkt_addr; /* Packet buffer address */ 407 __le64 hdr_addr; /* Header buffer address */ 408 /* bit 0 of hdr_addr is DD bit */ 409 __le64 rsvd1; 410 __le64 rsvd2; 411 } read; 412 struct { 413 /* Qword 0 */ 414 u8 rxdid; /* descriptor builder profile ID */ 415 u8 mir_id_umb_cast; /* mirror=[5:0], umb=[7:6] */ 416 __le16 ptype_flex_flags0; /* ptype=[9:0], ff0=[15:10] */ 417 __le16 pkt_len; /* [15:14] are reserved */ 418 __le16 hdr_len_sph_flex_flags1; /* header=[10:0] */ 419 /* sph=[11:11] */ 420 /* ff1/ext=[15:12] */ 421 422 /* Qword 1 */ 423 __le16 status_error0; 424 __le16 l2tag1; 425 __le16 flex_meta0; 426 __le16 flex_meta1; 427 428 /* Qword 2 */ 429 __le16 status_error1; 430 u8 flex_flags2; 431 u8 time_stamp_low; 432 __le16 l2tag2_1st; 433 __le16 l2tag2_2nd; 434 435 /* Qword 3 */ 436 __le16 flex_meta2; 437 __le16 flex_meta3; 438 union { 439 struct { 440 __le16 flex_meta4; 441 __le16 flex_meta5; 442 } flex; 443 __le32 ts_high; 444 } flex_ts; 445 } wb; /* writeback */ 446 }; 447 448 /* Rx Flex Descriptor NIC Profile 449 * RxDID Profile ID 2 450 * Flex-field 0: RSS hash lower 16-bits 451 * Flex-field 1: RSS hash upper 16-bits 452 * Flex-field 2: Flow ID lower 16-bits 453 * Flex-field 3: Flow ID higher 16-bits 454 * Flex-field 4: reserved, VLAN ID taken from L2Tag 455 */ 456 struct ice_32b_rx_flex_desc_nic { 457 /* Qword 0 */ 458 u8 rxdid; 459 u8 mir_id_umb_cast; 460 __le16 ptype_flexi_flags0; 461 __le16 pkt_len; 462 __le16 hdr_len_sph_flex_flags1; 463 464 /* Qword 1 */ 465 __le16 status_error0; 466 __le16 l2tag1; 467 __le32 rss_hash; 468 469 /* Qword 2 */ 470 __le16 status_error1; 471 u8 flexi_flags2; 472 u8 ts_low; 473 __le16 l2tag2_1st; 474 __le16 l2tag2_2nd; 475 476 /* Qword 3 */ 477 __le32 flow_id; 478 union { 479 struct { 480 __le16 rsvd; 481 __le16 flow_id_ipv6; 482 } flex; 483 __le32 ts_high; 484 } flex_ts; 485 }; 486 487 /* Rx Flex Descriptor Switch Profile 488 * RxDID Profile ID 3 489 * Flex-field 0: Source VSI 490 */ 491 struct ice_32b_rx_flex_desc_sw { 492 /* Qword 0 */ 493 u8 rxdid; 494 u8 mir_id_umb_cast; 495 __le16 ptype_flexi_flags0; 496 __le16 pkt_len; 497 __le16 hdr_len_sph_flex_flags1; 498 499 /* Qword 1 */ 500 __le16 status_error0; 501 __le16 l2tag1; 502 __le16 src_vsi; /* [10:15] are reserved */ 503 __le16 flex_md1_rsvd; 504 505 /* Qword 2 */ 506 __le16 status_error1; 507 u8 flex_flags2; 508 u8 ts_low; 509 __le16 l2tag2_1st; 510 __le16 l2tag2_2nd; 511 512 /* Qword 3 */ 513 __le32 rsvd; /* flex words 2-3 are reserved */ 514 __le32 ts_high; 515 }; 516 517 /* Rx Flex Descriptor NIC VEB Profile 518 * RxDID Profile ID 4 519 * Flex-field 0: Destination VSI 520 */ 521 struct ice_32b_rx_flex_desc_nic_veb_dbg { 522 /* Qword 0 */ 523 u8 rxdid; 524 u8 mir_id_umb_cast; 525 __le16 ptype_flexi_flags0; 526 __le16 pkt_len; 527 __le16 hdr_len_sph_flex_flags1; 528 529 /* Qword 1 */ 530 __le16 status_error0; 531 __le16 l2tag1; 532 __le16 dst_vsi; /* [0:12]: destination VSI */ 533 /* 13: VSI valid bit */ 534 /* [14:15] are reserved */ 535 __le16 flex_field_1; 536 537 /* Qword 2 */ 538 __le16 status_error1; 539 u8 flex_flags2; 540 u8 ts_low; 541 __le16 l2tag2_1st; 542 __le16 l2tag2_2nd; 543 544 /* Qword 3 */ 545 __le32 rsvd; /* flex words 2-3 are reserved */ 546 __le32 ts_high; 547 }; 548 549 /* Rx Flex Descriptor NIC ACL Profile 550 * RxDID Profile ID 5 551 * Flex-field 0: ACL Counter 0 552 * Flex-field 1: ACL Counter 1 553 * Flex-field 2: ACL Counter 2 554 */ 555 struct ice_32b_rx_flex_desc_nic_acl_dbg { 556 /* Qword 0 */ 557 u8 rxdid; 558 u8 mir_id_umb_cast; 559 __le16 ptype_flexi_flags0; 560 __le16 pkt_len; 561 __le16 hdr_len_sph_flex_flags1; 562 563 /* Qword 1 */ 564 __le16 status_error0; 565 __le16 l2tag1; 566 __le16 acl_ctr0; 567 __le16 acl_ctr1; 568 569 /* Qword 2 */ 570 __le16 status_error1; 571 u8 flex_flags2; 572 u8 ts_low; 573 __le16 l2tag2_1st; 574 __le16 l2tag2_2nd; 575 576 /* Qword 3 */ 577 __le16 acl_ctr2; 578 __le16 rsvd; /* flex words 2-3 are reserved */ 579 __le32 ts_high; 580 }; 581 582 /* Rx Flex Descriptor NIC Profile 583 * RxDID Profile ID 6 584 * Flex-field 0: RSS hash lower 16-bits 585 * Flex-field 1: RSS hash upper 16-bits 586 * Flex-field 2: Flow ID lower 16-bits 587 * Flex-field 3: Source VSI 588 * Flex-field 4: reserved, VLAN ID taken from L2Tag 589 */ 590 struct ice_32b_rx_flex_desc_nic_2 { 591 /* Qword 0 */ 592 u8 rxdid; 593 u8 mir_id_umb_cast; 594 __le16 ptype_flexi_flags0; 595 __le16 pkt_len; 596 __le16 hdr_len_sph_flex_flags1; 597 598 /* Qword 1 */ 599 __le16 status_error0; 600 __le16 l2tag1; 601 __le32 rss_hash; 602 603 /* Qword 2 */ 604 __le16 status_error1; 605 u8 flexi_flags2; 606 u8 ts_low; 607 __le16 l2tag2_1st; 608 __le16 l2tag2_2nd; 609 610 /* Qword 3 */ 611 __le16 flow_id; 612 __le16 src_vsi; 613 union { 614 struct { 615 __le16 rsvd; 616 __le16 flow_id_ipv6; 617 } flex; 618 __le32 ts_high; 619 } flex_ts; 620 }; 621 622 /* Receive Flex Descriptor profile IDs: There are a total 623 * of 64 profiles where profile IDs 0/1 are for legacy; and 624 * profiles 2-63 are flex profiles that can be programmed 625 * with a specific metadata (profile 7 reserved for HW) 626 */ 627 enum ice_rxdid { 628 ICE_RXDID_LEGACY_0 = 0, 629 ICE_RXDID_LEGACY_1 = 1, 630 ICE_RXDID_FLEX_NIC = 2, 631 ICE_RXDID_FLEX_NIC_2 = 6, 632 ICE_RXDID_HW = 7, 633 ICE_RXDID_LAST = 63, 634 }; 635 636 /* Recceive Flex descriptor Dword Index */ 637 enum ice_flex_word { 638 ICE_RX_FLEX_DWORD_0 = 0, 639 ICE_RX_FLEX_DWORD_1, 640 ICE_RX_FLEX_DWORD_2, 641 ICE_RX_FLEX_DWORD_3, 642 ICE_RX_FLEX_DWORD_4, 643 ICE_RX_FLEX_DWORD_5 644 }; 645 646 /* Receive Flex Descriptor Rx opcode values */ 647 enum ice_flex_opcode { 648 ICE_RX_OPC_DEBUG = 0, 649 ICE_RX_OPC_MDID, 650 ICE_RX_OPC_EXTRACT, 651 ICE_RX_OPC_PROTID 652 }; 653 654 /* Receive Descriptor MDID values that access packet flags */ 655 enum ice_flex_mdid_pkt_flags { 656 ICE_RX_MDID_PKT_FLAGS_15_0 = 20, 657 ICE_RX_MDID_PKT_FLAGS_31_16, 658 ICE_RX_MDID_PKT_FLAGS_47_32, 659 ICE_RX_MDID_PKT_FLAGS_63_48, 660 }; 661 662 /* Generic descriptor MDID values */ 663 enum ice_flex_mdid { 664 ICE_MDID_GENERIC_WORD_0, 665 ICE_MDID_GENERIC_WORD_1, 666 ICE_MDID_GENERIC_WORD_2, 667 ICE_MDID_GENERIC_WORD_3, 668 ICE_MDID_GENERIC_WORD_4, 669 ICE_MDID_FLOW_ID_LOWER, 670 ICE_MDID_FLOW_ID_HIGH, 671 ICE_MDID_RX_DESCR_PROF_IDX, 672 ICE_MDID_RX_PKT_DROP, 673 ICE_MDID_RX_DST_Q = 12, 674 ICE_MDID_RX_DST_VSI, 675 ICE_MDID_SRC_VSI = 19, 676 ICE_MDID_ACL_NOP = 55, 677 /* Entry 56 */ 678 ICE_MDID_RX_HASH_LOW, 679 ICE_MDID_ACL_CNTR_PKT = ICE_MDID_RX_HASH_LOW, 680 /* Entry 57 */ 681 ICE_MDID_RX_HASH_HIGH, 682 ICE_MDID_ACL_CNTR_BYTES = ICE_MDID_RX_HASH_HIGH, 683 ICE_MDID_ACL_CNTR_PKT_BYTES 684 }; 685 686 /* for ice_32byte_rx_flex_desc.mir_id_umb_cast member */ 687 #define ICE_RX_FLEX_DESC_MIRROR_M (0x3F) /* 6-bits */ 688 689 /* Rx/Tx Flag64 packet flag bits */ 690 enum ice_flg64_bits { 691 ICE_FLG_PKT_DSI = 0, 692 /* If there is a 1 in this bit position then that means Rx packet */ 693 ICE_FLG_PKT_DIR = 4, 694 ICE_FLG_EVLAN_x8100 = 14, 695 ICE_FLG_EVLAN_x9100, 696 ICE_FLG_VLAN_x8100, 697 ICE_FLG_TNL_MAC = 22, 698 ICE_FLG_TNL_VLAN, 699 ICE_FLG_PKT_FRG, 700 ICE_FLG_FIN = 32, 701 ICE_FLG_SYN, 702 ICE_FLG_RST, 703 ICE_FLG_TNL0 = 38, 704 ICE_FLG_TNL1, 705 ICE_FLG_TNL2, 706 ICE_FLG_UDP_GRE, 707 ICE_FLG_RSVD = 63 708 }; 709 710 enum ice_rx_flex_desc_umb_cast_bits { /* field is 2 bits long */ 711 ICE_RX_FLEX_DESC_UMB_CAST_S = 6, 712 ICE_RX_FLEX_DESC_UMB_CAST_LAST /* this entry must be last!!! */ 713 }; 714 715 enum ice_umbcast_dest_addr_types { 716 ICE_DEST_UNICAST = 0, 717 ICE_DEST_MULTICAST, 718 ICE_DEST_BROADCAST, 719 ICE_DEST_MIRRORED, 720 }; 721 722 /* for ice_32byte_rx_flex_desc.ptype_flexi_flags0 member */ 723 #define ICE_RX_FLEX_DESC_PTYPE_M (0x3FF) /* 10-bits */ 724 725 enum ice_rx_flex_desc_flexi_flags0_bits { /* field is 6 bits long */ 726 ICE_RX_FLEX_DESC_FLEXI_FLAGS0_S = 10, 727 ICE_RX_FLEX_DESC_FLEXI_FLAGS0_LAST /* this entry must be last!!! */ 728 }; 729 730 /* for ice_32byte_rx_flex_desc.pkt_length member */ 731 #define ICE_RX_FLX_DESC_PKT_LEN_M (0x3FFF) /* 14-bits */ 732 733 /* for ice_32byte_rx_flex_desc.header_length_sph_flexi_flags1 member */ 734 #define ICE_RX_FLEX_DESC_HEADER_LEN_M (0x7FF) /* 11-bits */ 735 736 enum ice_rx_flex_desc_sph_bits { /* field is 1 bit long */ 737 ICE_RX_FLEX_DESC_SPH_S = 11, 738 ICE_RX_FLEX_DESC_SPH_LAST /* this entry must be last!!! */ 739 }; 740 741 enum ice_rx_flex_desc_flexi_flags1_bits { /* field is 4 bits long */ 742 ICE_RX_FLEX_DESC_FLEXI_FLAGS1_S = 12, 743 ICE_RX_FLEX_DESC_FLEXI_FLAGS1_LAST /* this entry must be last!!! */ 744 }; 745 746 enum ice_rx_flex_desc_ext_status_bits { /* field is 4 bits long */ 747 ICE_RX_FLEX_DESC_EXT_STATUS_EXT_UDP_S = 12, 748 ICE_RX_FLEX_DESC_EXT_STATUS_INT_UDP_S = 13, 749 ICE_RX_FLEX_DESC_EXT_STATUS_RECIPE_S = 14, 750 ICE_RX_FLEX_DESC_EXT_STATUS_OVERSIZE_S = 15, 751 ICE_RX_FLEX_DESC_EXT_STATUS_LAST /* entry must be last!!! */ 752 }; 753 754 enum ice_rx_flex_desc_status_error_0_bits { 755 /* Note: These are predefined bit offsets */ 756 ICE_RX_FLEX_DESC_STATUS0_DD_S = 0, 757 ICE_RX_FLEX_DESC_STATUS0_EOF_S, 758 ICE_RX_FLEX_DESC_STATUS0_HBO_S, 759 ICE_RX_FLEX_DESC_STATUS0_L3L4P_S, 760 ICE_RX_FLEX_DESC_STATUS0_XSUM_IPE_S, 761 ICE_RX_FLEX_DESC_STATUS0_XSUM_L4E_S, 762 ICE_RX_FLEX_DESC_STATUS0_XSUM_EIPE_S, 763 ICE_RX_FLEX_DESC_STATUS0_XSUM_EUDPE_S, 764 ICE_RX_FLEX_DESC_STATUS0_LPBK_S, 765 ICE_RX_FLEX_DESC_STATUS0_IPV6EXADD_S, 766 ICE_RX_FLEX_DESC_STATUS0_RXE_S, 767 ICE_RX_FLEX_DESC_STATUS0_CRCP_S, 768 ICE_RX_FLEX_DESC_STATUS0_RSS_VALID_S, 769 ICE_RX_FLEX_DESC_STATUS0_L2TAG1P_S, 770 ICE_RX_FLEX_DESC_STATUS0_XTRMD0_VALID_S, 771 ICE_RX_FLEX_DESC_STATUS0_XTRMD1_VALID_S, 772 ICE_RX_FLEX_DESC_STATUS0_LAST /* this entry must be last!!! */ 773 }; 774 775 enum ice_rx_flex_desc_status_error_1_bits { 776 /* Note: These are predefined bit offsets */ 777 ICE_RX_FLEX_DESC_STATUS1_CPM_S = 0, /* 4 bits */ 778 ICE_RX_FLEX_DESC_STATUS1_NAT_S = 4, 779 ICE_RX_FLEX_DESC_STATUS1_CRYPTO_S = 5, 780 /* [10:6] reserved */ 781 ICE_RX_FLEX_DESC_STATUS1_L2TAG2P_S = 11, 782 ICE_RX_FLEX_DESC_STATUS1_XTRMD2_VALID_S = 12, 783 ICE_RX_FLEX_DESC_STATUS1_XTRMD3_VALID_S = 13, 784 ICE_RX_FLEX_DESC_STATUS1_XTRMD4_VALID_S = 14, 785 ICE_RX_FLEX_DESC_STATUS1_XTRMD5_VALID_S = 15, 786 ICE_RX_FLEX_DESC_STATUS1_LAST /* this entry must be last!!! */ 787 }; 788 789 enum ice_rx_flex_desc_exstat_bits { 790 /* Note: These are predefined bit offsets */ 791 ICE_RX_FLEX_DESC_EXSTAT_EXTUDP_S = 0, 792 ICE_RX_FLEX_DESC_EXSTAT_INTUDP_S = 1, 793 ICE_RX_FLEX_DESC_EXSTAT_RECIPE_S = 2, 794 ICE_RX_FLEX_DESC_EXSTAT_OVERSIZE_S = 3, 795 }; 796 797 #define ICE_RXQ_CTX_SIZE_DWORDS 8 798 #define ICE_RXQ_CTX_SZ (ICE_RXQ_CTX_SIZE_DWORDS * sizeof(u32)) 799 #define ICE_TX_CMPLTNQ_CTX_SIZE_DWORDS 22 800 #define ICE_TX_DRBELL_Q_CTX_SIZE_DWORDS 5 801 #define GLTCLAN_CQ_CNTX(i, CQ) (GLTCLAN_CQ_CNTX0(CQ) + ((i) * 0x0800)) 802 803 /* RLAN Rx queue context data 804 * 805 * The sizes of the variables may be larger than needed due to crossing byte 806 * boundaries. If we do not have the width of the variable set to the correct 807 * size then we could end up shifting bits off the top of the variable when the 808 * variable is at the top of a byte and crosses over into the next byte. 809 */ 810 struct ice_rlan_ctx { 811 u16 head; 812 u16 cpuid; /* bigger than needed, see above for reason */ 813 #define ICE_RLAN_BASE_S 7 814 u64 base; 815 u16 qlen; 816 #define ICE_RLAN_CTX_DBUF_S 7 817 u16 dbuf; /* bigger than needed, see above for reason */ 818 #define ICE_RLAN_CTX_HBUF_S 6 819 u16 hbuf; /* bigger than needed, see above for reason */ 820 u8 dtype; 821 u8 dsize; 822 u8 crcstrip; 823 u8 l2tsel; 824 u8 hsplit_0; 825 u8 hsplit_1; 826 u8 showiv; 827 u32 rxmax; /* bigger than needed, see above for reason */ 828 u8 tphrdesc_ena; 829 u8 tphwdesc_ena; 830 u8 tphdata_ena; 831 u8 tphhead_ena; 832 u16 lrxqthresh; /* bigger than needed, see above for reason */ 833 u8 prefena; /* NOTE: normally must be set to 1 at init */ 834 }; 835 836 struct ice_ctx_ele { 837 u16 offset; 838 u16 size_of; 839 u16 width; 840 u16 lsb; 841 }; 842 843 #define ICE_CTX_STORE(_struct, _ele, _width, _lsb) { \ 844 .offset = offsetof(struct _struct, _ele), \ 845 .size_of = FIELD_SIZEOF(struct _struct, _ele), \ 846 .width = _width, \ 847 .lsb = _lsb, \ 848 } 849 850 /* for hsplit_0 field of Rx RLAN context */ 851 enum ice_rlan_ctx_rx_hsplit_0 { 852 ICE_RLAN_RX_HSPLIT_0_NO_SPLIT = 0, 853 ICE_RLAN_RX_HSPLIT_0_SPLIT_L2 = 1, 854 ICE_RLAN_RX_HSPLIT_0_SPLIT_IP = 2, 855 ICE_RLAN_RX_HSPLIT_0_SPLIT_TCP_UDP = 4, 856 ICE_RLAN_RX_HSPLIT_0_SPLIT_SCTP = 8, 857 }; 858 859 /* for hsplit_1 field of Rx RLAN context */ 860 enum ice_rlan_ctx_rx_hsplit_1 { 861 ICE_RLAN_RX_HSPLIT_1_NO_SPLIT = 0, 862 ICE_RLAN_RX_HSPLIT_1_SPLIT_L2 = 1, 863 ICE_RLAN_RX_HSPLIT_1_SPLIT_ALWAYS = 2, 864 }; 865 866 /* Tx Descriptor */ 867 struct ice_tx_desc { 868 __le64 buf_addr; /* Address of descriptor's data buf */ 869 __le64 cmd_type_offset_bsz; 870 }; 871 872 #define ICE_TXD_QW1_DTYPE_S 0 873 #define ICE_TXD_QW1_DTYPE_M (0xFUL << ICE_TXD_QW1_DTYPE_S) 874 875 enum ice_tx_desc_dtype_value { 876 ICE_TX_DESC_DTYPE_DATA = 0x0, 877 ICE_TX_DESC_DTYPE_CTX = 0x1, 878 ICE_TX_DESC_DTYPE_IPSEC = 0x3, 879 ICE_TX_DESC_DTYPE_FLTR_PROG = 0x8, 880 ICE_TX_DESC_DTYPE_HLP_META = 0x9, 881 /* DESC_DONE - HW has completed write-back of descriptor */ 882 ICE_TX_DESC_DTYPE_DESC_DONE = 0xF, 883 }; 884 885 #define ICE_TXD_QW1_CMD_S 4 886 #define ICE_TXD_QW1_CMD_M (0xFFFUL << ICE_TXD_QW1_CMD_S) 887 888 enum ice_tx_desc_cmd_bits { 889 ICE_TX_DESC_CMD_EOP = 0x0001, 890 ICE_TX_DESC_CMD_RS = 0x0002, 891 ICE_TX_DESC_CMD_RSVD = 0x0004, 892 ICE_TX_DESC_CMD_IL2TAG1 = 0x0008, 893 ICE_TX_DESC_CMD_DUMMY = 0x0010, 894 ICE_TX_DESC_CMD_IIPT_NONIP = 0x0000, 895 ICE_TX_DESC_CMD_IIPT_IPV6 = 0x0020, 896 ICE_TX_DESC_CMD_IIPT_IPV4 = 0x0040, 897 ICE_TX_DESC_CMD_IIPT_IPV4_CSUM = 0x0060, 898 ICE_TX_DESC_CMD_RSVD2 = 0x0080, 899 ICE_TX_DESC_CMD_L4T_EOFT_UNK = 0x0000, 900 ICE_TX_DESC_CMD_L4T_EOFT_TCP = 0x0100, 901 ICE_TX_DESC_CMD_L4T_EOFT_SCTP = 0x0200, 902 ICE_TX_DESC_CMD_L4T_EOFT_UDP = 0x0300, 903 ICE_TX_DESC_CMD_RE = 0x0400, 904 ICE_TX_DESC_CMD_RSVD3 = 0x0800, 905 }; 906 907 #define ICE_TXD_QW1_OFFSET_S 16 908 #define ICE_TXD_QW1_OFFSET_M (0x3FFFFULL << ICE_TXD_QW1_OFFSET_S) 909 910 enum ice_tx_desc_len_fields { 911 /* Note: These are predefined bit offsets */ 912 ICE_TX_DESC_LEN_MACLEN_S = 0, /* 7 BITS */ 913 ICE_TX_DESC_LEN_IPLEN_S = 7, /* 7 BITS */ 914 ICE_TX_DESC_LEN_L4_LEN_S = 14 /* 4 BITS */ 915 }; 916 917 #define ICE_TXD_QW1_MACLEN_M (0x7FUL << ICE_TX_DESC_LEN_MACLEN_S) 918 #define ICE_TXD_QW1_IPLEN_M (0x7FUL << ICE_TX_DESC_LEN_IPLEN_S) 919 #define ICE_TXD_QW1_L4LEN_M (0xFUL << ICE_TX_DESC_LEN_L4_LEN_S) 920 921 /* Tx descriptor field limits in bytes */ 922 #define ICE_TXD_MACLEN_MAX ((ICE_TXD_QW1_MACLEN_M >> \ 923 ICE_TX_DESC_LEN_MACLEN_S) * ICE_BYTES_PER_WORD) 924 #define ICE_TXD_IPLEN_MAX ((ICE_TXD_QW1_IPLEN_M >> \ 925 ICE_TX_DESC_LEN_IPLEN_S) * ICE_BYTES_PER_DWORD) 926 #define ICE_TXD_L4LEN_MAX ((ICE_TXD_QW1_L4LEN_M >> \ 927 ICE_TX_DESC_LEN_L4_LEN_S) * ICE_BYTES_PER_DWORD) 928 929 #define ICE_TXD_QW1_TX_BUF_SZ_S 34 930 #define ICE_TXD_QW1_TX_BUF_SZ_M (0x3FFFULL << ICE_TXD_QW1_TX_BUF_SZ_S) 931 932 #define ICE_TXD_QW1_L2TAG1_S 48 933 #define ICE_TXD_QW1_L2TAG1_M (0xFFFFULL << ICE_TXD_QW1_L2TAG1_S) 934 935 /* Context descriptors */ 936 struct ice_tx_ctx_desc { 937 __le32 tunneling_params; 938 __le16 l2tag2; 939 __le16 rsvd; 940 __le64 qw1; 941 }; 942 943 #define ICE_TXD_CTX_QW1_DTYPE_S 0 944 #define ICE_TXD_CTX_QW1_DTYPE_M (0xFUL << ICE_TXD_CTX_QW1_DTYPE_S) 945 946 #define ICE_TXD_CTX_QW1_CMD_S 4 947 #define ICE_TXD_CTX_QW1_CMD_M (0x7FUL << ICE_TXD_CTX_QW1_CMD_S) 948 949 #define ICE_TXD_CTX_QW1_IPSEC_S 11 950 #define ICE_TXD_CTX_QW1_IPSEC_M (0x7FUL << ICE_TXD_CTX_QW1_IPSEC_S) 951 952 #define ICE_TXD_CTX_QW1_TSO_LEN_S 30 953 #define ICE_TXD_CTX_QW1_TSO_LEN_M \ 954 (0x3FFFFULL << ICE_TXD_CTX_QW1_TSO_LEN_S) 955 956 #define ICE_TXD_CTX_QW1_TSYN_S ICE_TXD_CTX_QW1_TSO_LEN_S 957 #define ICE_TXD_CTX_QW1_TSYN_M ICE_TXD_CTX_QW1_TSO_LEN_M 958 959 #define ICE_TXD_CTX_QW1_MSS_S 50 960 #define ICE_TXD_CTX_QW1_MSS_M (0x3FFFULL << ICE_TXD_CTX_QW1_MSS_S) 961 #define ICE_TXD_CTX_MIN_MSS 64 962 #define ICE_TXD_CTX_MAX_MSS 9668 963 964 #define ICE_TXD_CTX_QW1_VSI_S 50 965 #define ICE_TXD_CTX_QW1_VSI_M (0x3FFULL << ICE_TXD_CTX_QW1_VSI_S) 966 967 enum ice_tx_ctx_desc_cmd_bits { 968 ICE_TX_CTX_DESC_TSO = 0x01, 969 ICE_TX_CTX_DESC_TSYN = 0x02, 970 ICE_TX_CTX_DESC_IL2TAG2 = 0x04, 971 ICE_TX_CTX_DESC_IL2TAG2_IL2H = 0x08, 972 ICE_TX_CTX_DESC_SWTCH_NOTAG = 0x00, 973 ICE_TX_CTX_DESC_SWTCH_UPLINK = 0x10, 974 ICE_TX_CTX_DESC_SWTCH_LOCAL = 0x20, 975 ICE_TX_CTX_DESC_SWTCH_VSI = 0x30, 976 ICE_TX_CTX_DESC_RESERVED = 0x40 977 }; 978 979 enum ice_tx_ctx_desc_eipt_offload { 980 ICE_TX_CTX_EIPT_NONE = 0x0, 981 ICE_TX_CTX_EIPT_IPV6 = 0x1, 982 ICE_TX_CTX_EIPT_IPV4_NO_CSUM = 0x2, 983 ICE_TX_CTX_EIPT_IPV4 = 0x3 984 }; 985 986 #define ICE_TXD_CTX_QW0_EIPT_S 0 987 #define ICE_TXD_CTX_QW0_EIPT_M (0x3ULL << ICE_TXD_CTX_QW0_EIPT_S) 988 989 #define ICE_TXD_CTX_QW0_EIPLEN_S 2 990 #define ICE_TXD_CTX_QW0_EIPLEN_M (0x7FUL << ICE_TXD_CTX_QW0_EIPLEN_S) 991 992 #define ICE_TXD_CTX_QW0_L4TUNT_S 9 993 #define ICE_TXD_CTX_QW0_L4TUNT_M (0x3ULL << ICE_TXD_CTX_QW0_L4TUNT_S) 994 995 #define ICE_TXD_CTX_UDP_TUNNELING BIT_ULL(ICE_TXD_CTX_QW0_L4TUNT_S) 996 #define ICE_TXD_CTX_GRE_TUNNELING (0x2ULL << ICE_TXD_CTX_QW0_L4TUNT_S) 997 998 #define ICE_TXD_CTX_QW0_EIP_NOINC_S 11 999 #define ICE_TXD_CTX_QW0_EIP_NOINC_M BIT_ULL(ICE_TXD_CTX_QW0_EIP_NOINC_S) 1000 1001 #define ICE_TXD_CTX_EIP_NOINC_IPID_CONST ICE_TXD_CTX_QW0_EIP_NOINC_M 1002 1003 #define ICE_TXD_CTX_QW0_NATLEN_S 12 1004 #define ICE_TXD_CTX_QW0_NATLEN_M (0X7FULL << ICE_TXD_CTX_QW0_NATLEN_S) 1005 1006 #define ICE_TXD_CTX_QW0_DECTTL_S 19 1007 #define ICE_TXD_CTX_QW0_DECTTL_M (0xFULL << ICE_TXD_CTX_QW0_DECTTL_S) 1008 1009 #define ICE_TXD_CTX_QW0_L4T_CS_S 23 1010 #define ICE_TXD_CTX_QW0_L4T_CS_M BIT_ULL(ICE_TXD_CTX_QW0_L4T_CS_S) 1011 1012 #define ICE_LAN_TXQ_MAX_QGRPS 127 1013 #define ICE_LAN_TXQ_MAX_QDIS 1023 1014 1015 /* Tx queue context data 1016 * 1017 * The sizes of the variables may be larger than needed due to crossing byte 1018 * boundaries. If we do not have the width of the variable set to the correct 1019 * size then we could end up shifting bits off the top of the variable when the 1020 * variable is at the top of a byte and crosses over into the next byte. 1021 */ 1022 struct ice_tlan_ctx { 1023 #define ICE_TLAN_CTX_BASE_S 7 1024 u64 base; /* base is defined in 128-byte units */ 1025 u8 port_num; 1026 u16 cgd_num; /* bigger than needed, see above for reason */ 1027 u8 pf_num; 1028 u16 vmvf_num; 1029 u8 vmvf_type; 1030 #define ICE_TLAN_CTX_VMVF_TYPE_VF 0 1031 #define ICE_TLAN_CTX_VMVF_TYPE_VMQ 1 1032 #define ICE_TLAN_CTX_VMVF_TYPE_PF 2 1033 u16 src_vsi; 1034 u8 tsyn_ena; 1035 u8 internal_usage_flag; 1036 u8 alt_vlan; 1037 u16 cpuid; /* bigger than needed, see above for reason */ 1038 u8 wb_mode; 1039 u8 tphrd_desc; 1040 u8 tphrd; 1041 u8 tphwr_desc; 1042 u16 cmpq_id; 1043 u16 qnum_in_func; 1044 u8 itr_notification_mode; 1045 u8 adjust_prof_id; 1046 u32 qlen; /* bigger than needed, see above for reason */ 1047 u8 quanta_prof_idx; 1048 u8 tso_ena; 1049 u16 tso_qnum; 1050 u8 legacy_int; 1051 u8 drop_ena; 1052 u8 cache_prof_idx; 1053 u8 pkt_shaper_prof_idx; 1054 u8 int_q_state; /* width not needed - internal - DO NOT WRITE!!! */ 1055 }; 1056 1057 /* LAN Tx Completion Queue data */ 1058 #pragma pack(1) 1059 struct ice_tx_cmpltnq { 1060 u16 txq_id; 1061 u8 generation; 1062 u16 tx_head; 1063 u8 cmpl_type; 1064 }; 1065 #pragma pack() 1066 1067 /* FIXME: move to a .c file that references this variable */ 1068 /* LAN Tx Completion Queue data info */ 1069 static const struct ice_ctx_ele ice_tx_cmpltnq_info[] = { 1070 /* Field Width LSB */ 1071 ICE_CTX_STORE(ice_tx_cmpltnq, txq_id, 14, 0), 1072 ICE_CTX_STORE(ice_tx_cmpltnq, generation, 1, 15), 1073 ICE_CTX_STORE(ice_tx_cmpltnq, tx_head, 13, 16), 1074 ICE_CTX_STORE(ice_tx_cmpltnq, cmpl_type, 3, 29), 1075 { 0 } 1076 }; 1077 1078 /* LAN Tx Completion Queue Context */ 1079 #pragma pack(1) 1080 struct ice_tx_cmpltnq_ctx { 1081 u64 base; 1082 #define ICE_TX_CMPLTNQ_CTX_BASE_S 7 1083 u32 q_len; 1084 #define ICE_TX_CMPLTNQ_CTX_Q_LEN_S 4 1085 u8 generation; 1086 u32 wrt_ptr; 1087 u8 pf_num; 1088 u16 vmvf_num; 1089 u8 vmvf_type; 1090 #define ICE_TX_CMPLTNQ_CTX_VMVF_TYPE_VF 0 1091 #define ICE_TX_CMPLTNQ_CTX_VMVF_TYPE_VMQ 1 1092 #define ICE_TX_CMPLTNQ_CTX_VMVF_TYPE_PF 2 1093 u8 tph_desc_wr; 1094 u8 cpuid; 1095 u32 cmpltn_cache[16]; 1096 }; 1097 #pragma pack() 1098 1099 /* LAN Tx Doorbell Descriptor Format */ 1100 struct ice_tx_drbell_fmt { 1101 u16 txq_id; 1102 u8 dd; 1103 u8 rs; 1104 u32 db; 1105 }; 1106 1107 /* FIXME: move to a .c file that references this variable */ 1108 /* LAN Tx Doorbell Descriptor format info */ 1109 static const struct ice_ctx_ele ice_tx_drbell_fmt_info[] = { 1110 /* Field Width LSB */ 1111 ICE_CTX_STORE(ice_tx_drbell_fmt, txq_id, 14, 0), 1112 ICE_CTX_STORE(ice_tx_drbell_fmt, dd, 1, 14), 1113 ICE_CTX_STORE(ice_tx_drbell_fmt, rs, 1, 15), 1114 ICE_CTX_STORE(ice_tx_drbell_fmt, db, 32, 32), 1115 { 0 } 1116 }; 1117 1118 /* LAN Tx Doorbell Queue Context */ 1119 #pragma pack(1) 1120 struct ice_tx_drbell_q_ctx { 1121 u64 base; 1122 #define ICE_TX_DRBELL_Q_CTX_BASE_S 7 1123 u16 ring_len; 1124 #define ICE_TX_DRBELL_Q_CTX_RING_LEN_S 4 1125 u8 pf_num; 1126 u16 vf_num; 1127 u8 vmvf_type; 1128 #define ICE_TX_DRBELL_Q_CTX_VMVF_TYPE_VF 0 1129 #define ICE_TX_DRBELL_Q_CTX_VMVF_TYPE_VMQ 1 1130 #define ICE_TX_DRBELL_Q_CTX_VMVF_TYPE_PF 2 1131 u8 cpuid; 1132 u8 tph_desc_rd; 1133 u8 tph_desc_wr; 1134 u8 db_q_en; 1135 u16 rd_head; 1136 u16 rd_tail; 1137 }; 1138 #pragma pack() 1139 1140 /* The ice_ptype_lkup table is used to convert from the 10-bit ptype in the 1141 * hardware to a bit-field that can be used by SW to more easily determine the 1142 * packet type. 1143 * 1144 * Macros are used to shorten the table lines and make this table human 1145 * readable. 1146 * 1147 * We store the PTYPE in the top byte of the bit field - this is just so that 1148 * we can check that the table doesn't have a row missing, as the index into 1149 * the table should be the PTYPE. 1150 * 1151 * Typical work flow: 1152 * 1153 * IF NOT ice_ptype_lkup[ptype].known 1154 * THEN 1155 * Packet is unknown 1156 * ELSE IF ice_ptype_lkup[ptype].outer_ip == ICE_RX_PTYPE_OUTER_IP 1157 * Use the rest of the fields to look at the tunnels, inner protocols, etc 1158 * ELSE 1159 * Use the enum ice_rx_l2_ptype to decode the packet type 1160 * ENDIF 1161 */ 1162 1163 /* macro to make the table lines short */ 1164 #define ICE_PTT(PTYPE, OUTER_IP, OUTER_IP_VER, OUTER_FRAG, T, TE, TEF, I, PL)\ 1165 { PTYPE, \ 1166 1, \ 1167 ICE_RX_PTYPE_OUTER_##OUTER_IP, \ 1168 ICE_RX_PTYPE_OUTER_##OUTER_IP_VER, \ 1169 ICE_RX_PTYPE_##OUTER_FRAG, \ 1170 ICE_RX_PTYPE_TUNNEL_##T, \ 1171 ICE_RX_PTYPE_TUNNEL_END_##TE, \ 1172 ICE_RX_PTYPE_##TEF, \ 1173 ICE_RX_PTYPE_INNER_PROT_##I, \ 1174 ICE_RX_PTYPE_PAYLOAD_LAYER_##PL } 1175 1176 #define ICE_PTT_UNUSED_ENTRY(PTYPE) { PTYPE, 0, 0, 0, 0, 0, 0, 0, 0, 0 } 1177 1178 /* shorter macros makes the table fit but are terse */ 1179 #define ICE_RX_PTYPE_NOF ICE_RX_PTYPE_NOT_FRAG 1180 #define ICE_RX_PTYPE_FRG ICE_RX_PTYPE_FRAG 1181 1182 /* Lookup table mapping the HW PTYPE to the bit field for decoding */ 1183 static const struct ice_rx_ptype_decoded ice_ptype_lkup[] = { 1184 /* L2 Packet types */ 1185 ICE_PTT_UNUSED_ENTRY(0), 1186 ICE_PTT(1, L2, NONE, NOF, NONE, NONE, NOF, NONE, PAY2), 1187 ICE_PTT_UNUSED_ENTRY(2), 1188 ICE_PTT_UNUSED_ENTRY(3), 1189 ICE_PTT_UNUSED_ENTRY(4), 1190 ICE_PTT_UNUSED_ENTRY(5), 1191 ICE_PTT(6, L2, NONE, NOF, NONE, NONE, NOF, NONE, NONE), 1192 ICE_PTT(7, L2, NONE, NOF, NONE, NONE, NOF, NONE, NONE), 1193 ICE_PTT_UNUSED_ENTRY(8), 1194 ICE_PTT_UNUSED_ENTRY(9), 1195 ICE_PTT(10, L2, NONE, NOF, NONE, NONE, NOF, NONE, NONE), 1196 ICE_PTT(11, L2, NONE, NOF, NONE, NONE, NOF, NONE, NONE), 1197 ICE_PTT_UNUSED_ENTRY(12), 1198 ICE_PTT_UNUSED_ENTRY(13), 1199 ICE_PTT_UNUSED_ENTRY(14), 1200 ICE_PTT_UNUSED_ENTRY(15), 1201 ICE_PTT_UNUSED_ENTRY(16), 1202 ICE_PTT_UNUSED_ENTRY(17), 1203 ICE_PTT_UNUSED_ENTRY(18), 1204 ICE_PTT_UNUSED_ENTRY(19), 1205 ICE_PTT_UNUSED_ENTRY(20), 1206 ICE_PTT_UNUSED_ENTRY(21), 1207 1208 /* Non Tunneled IPv4 */ 1209 ICE_PTT(22, IP, IPV4, FRG, NONE, NONE, NOF, NONE, PAY3), 1210 ICE_PTT(23, IP, IPV4, NOF, NONE, NONE, NOF, NONE, PAY3), 1211 ICE_PTT(24, IP, IPV4, NOF, NONE, NONE, NOF, UDP, PAY4), 1212 ICE_PTT_UNUSED_ENTRY(25), 1213 ICE_PTT(26, IP, IPV4, NOF, NONE, NONE, NOF, TCP, PAY4), 1214 ICE_PTT(27, IP, IPV4, NOF, NONE, NONE, NOF, SCTP, PAY4), 1215 ICE_PTT(28, IP, IPV4, NOF, NONE, NONE, NOF, ICMP, PAY4), 1216 1217 /* IPv4 --> IPv4 */ 1218 ICE_PTT(29, IP, IPV4, NOF, IP_IP, IPV4, FRG, NONE, PAY3), 1219 ICE_PTT(30, IP, IPV4, NOF, IP_IP, IPV4, NOF, NONE, PAY3), 1220 ICE_PTT(31, IP, IPV4, NOF, IP_IP, IPV4, NOF, UDP, PAY4), 1221 ICE_PTT_UNUSED_ENTRY(32), 1222 ICE_PTT(33, IP, IPV4, NOF, IP_IP, IPV4, NOF, TCP, PAY4), 1223 ICE_PTT(34, IP, IPV4, NOF, IP_IP, IPV4, NOF, SCTP, PAY4), 1224 ICE_PTT(35, IP, IPV4, NOF, IP_IP, IPV4, NOF, ICMP, PAY4), 1225 1226 /* IPv4 --> IPv6 */ 1227 ICE_PTT(36, IP, IPV4, NOF, IP_IP, IPV6, FRG, NONE, PAY3), 1228 ICE_PTT(37, IP, IPV4, NOF, IP_IP, IPV6, NOF, NONE, PAY3), 1229 ICE_PTT(38, IP, IPV4, NOF, IP_IP, IPV6, NOF, UDP, PAY4), 1230 ICE_PTT_UNUSED_ENTRY(39), 1231 ICE_PTT(40, IP, IPV4, NOF, IP_IP, IPV6, NOF, TCP, PAY4), 1232 ICE_PTT(41, IP, IPV4, NOF, IP_IP, IPV6, NOF, SCTP, PAY4), 1233 ICE_PTT(42, IP, IPV4, NOF, IP_IP, IPV6, NOF, ICMP, PAY4), 1234 1235 /* IPv4 --> GRE/NAT */ 1236 ICE_PTT(43, IP, IPV4, NOF, IP_GRENAT, NONE, NOF, NONE, PAY3), 1237 1238 /* IPv4 --> GRE/NAT --> IPv4 */ 1239 ICE_PTT(44, IP, IPV4, NOF, IP_GRENAT, IPV4, FRG, NONE, PAY3), 1240 ICE_PTT(45, IP, IPV4, NOF, IP_GRENAT, IPV4, NOF, NONE, PAY3), 1241 ICE_PTT(46, IP, IPV4, NOF, IP_GRENAT, IPV4, NOF, UDP, PAY4), 1242 ICE_PTT_UNUSED_ENTRY(47), 1243 ICE_PTT(48, IP, IPV4, NOF, IP_GRENAT, IPV4, NOF, TCP, PAY4), 1244 ICE_PTT(49, IP, IPV4, NOF, IP_GRENAT, IPV4, NOF, SCTP, PAY4), 1245 ICE_PTT(50, IP, IPV4, NOF, IP_GRENAT, IPV4, NOF, ICMP, PAY4), 1246 1247 /* IPv4 --> GRE/NAT --> IPv6 */ 1248 ICE_PTT(51, IP, IPV4, NOF, IP_GRENAT, IPV6, FRG, NONE, PAY3), 1249 ICE_PTT(52, IP, IPV4, NOF, IP_GRENAT, IPV6, NOF, NONE, PAY3), 1250 ICE_PTT(53, IP, IPV4, NOF, IP_GRENAT, IPV6, NOF, UDP, PAY4), 1251 ICE_PTT_UNUSED_ENTRY(54), 1252 ICE_PTT(55, IP, IPV4, NOF, IP_GRENAT, IPV6, NOF, TCP, PAY4), 1253 ICE_PTT(56, IP, IPV4, NOF, IP_GRENAT, IPV6, NOF, SCTP, PAY4), 1254 ICE_PTT(57, IP, IPV4, NOF, IP_GRENAT, IPV6, NOF, ICMP, PAY4), 1255 1256 /* IPv4 --> GRE/NAT --> MAC */ 1257 ICE_PTT(58, IP, IPV4, NOF, IP_GRENAT_MAC, NONE, NOF, NONE, PAY3), 1258 1259 /* IPv4 --> GRE/NAT --> MAC --> IPv4 */ 1260 ICE_PTT(59, IP, IPV4, NOF, IP_GRENAT_MAC, IPV4, FRG, NONE, PAY3), 1261 ICE_PTT(60, IP, IPV4, NOF, IP_GRENAT_MAC, IPV4, NOF, NONE, PAY3), 1262 ICE_PTT(61, IP, IPV4, NOF, IP_GRENAT_MAC, IPV4, NOF, UDP, PAY4), 1263 ICE_PTT_UNUSED_ENTRY(62), 1264 ICE_PTT(63, IP, IPV4, NOF, IP_GRENAT_MAC, IPV4, NOF, TCP, PAY4), 1265 ICE_PTT(64, IP, IPV4, NOF, IP_GRENAT_MAC, IPV4, NOF, SCTP, PAY4), 1266 ICE_PTT(65, IP, IPV4, NOF, IP_GRENAT_MAC, IPV4, NOF, ICMP, PAY4), 1267 1268 /* IPv4 --> GRE/NAT -> MAC --> IPv6 */ 1269 ICE_PTT(66, IP, IPV4, NOF, IP_GRENAT_MAC, IPV6, FRG, NONE, PAY3), 1270 ICE_PTT(67, IP, IPV4, NOF, IP_GRENAT_MAC, IPV6, NOF, NONE, PAY3), 1271 ICE_PTT(68, IP, IPV4, NOF, IP_GRENAT_MAC, IPV6, NOF, UDP, PAY4), 1272 ICE_PTT_UNUSED_ENTRY(69), 1273 ICE_PTT(70, IP, IPV4, NOF, IP_GRENAT_MAC, IPV6, NOF, TCP, PAY4), 1274 ICE_PTT(71, IP, IPV4, NOF, IP_GRENAT_MAC, IPV6, NOF, SCTP, PAY4), 1275 ICE_PTT(72, IP, IPV4, NOF, IP_GRENAT_MAC, IPV6, NOF, ICMP, PAY4), 1276 1277 /* IPv4 --> GRE/NAT --> MAC/VLAN */ 1278 ICE_PTT(73, IP, IPV4, NOF, IP_GRENAT_MAC_VLAN, NONE, NOF, NONE, PAY3), 1279 1280 /* IPv4 ---> GRE/NAT -> MAC/VLAN --> IPv4 */ 1281 ICE_PTT(74, IP, IPV4, NOF, IP_GRENAT_MAC_VLAN, IPV4, FRG, NONE, PAY3), 1282 ICE_PTT(75, IP, IPV4, NOF, IP_GRENAT_MAC_VLAN, IPV4, NOF, NONE, PAY3), 1283 ICE_PTT(76, IP, IPV4, NOF, IP_GRENAT_MAC_VLAN, IPV4, NOF, UDP, PAY4), 1284 ICE_PTT_UNUSED_ENTRY(77), 1285 ICE_PTT(78, IP, IPV4, NOF, IP_GRENAT_MAC_VLAN, IPV4, NOF, TCP, PAY4), 1286 ICE_PTT(79, IP, IPV4, NOF, IP_GRENAT_MAC_VLAN, IPV4, NOF, SCTP, PAY4), 1287 ICE_PTT(80, IP, IPV4, NOF, IP_GRENAT_MAC_VLAN, IPV4, NOF, ICMP, PAY4), 1288 1289 /* IPv4 -> GRE/NAT -> MAC/VLAN --> IPv6 */ 1290 ICE_PTT(81, IP, IPV4, NOF, IP_GRENAT_MAC_VLAN, IPV6, FRG, NONE, PAY3), 1291 ICE_PTT(82, IP, IPV4, NOF, IP_GRENAT_MAC_VLAN, IPV6, NOF, NONE, PAY3), 1292 ICE_PTT(83, IP, IPV4, NOF, IP_GRENAT_MAC_VLAN, IPV6, NOF, UDP, PAY4), 1293 ICE_PTT_UNUSED_ENTRY(84), 1294 ICE_PTT(85, IP, IPV4, NOF, IP_GRENAT_MAC_VLAN, IPV6, NOF, TCP, PAY4), 1295 ICE_PTT(86, IP, IPV4, NOF, IP_GRENAT_MAC_VLAN, IPV6, NOF, SCTP, PAY4), 1296 ICE_PTT(87, IP, IPV4, NOF, IP_GRENAT_MAC_VLAN, IPV6, NOF, ICMP, PAY4), 1297 1298 /* Non Tunneled IPv6 */ 1299 ICE_PTT(88, IP, IPV6, FRG, NONE, NONE, NOF, NONE, PAY3), 1300 ICE_PTT(89, IP, IPV6, NOF, NONE, NONE, NOF, NONE, PAY3), 1301 ICE_PTT(90, IP, IPV6, NOF, NONE, NONE, NOF, UDP, PAY4), 1302 ICE_PTT_UNUSED_ENTRY(91), 1303 ICE_PTT(92, IP, IPV6, NOF, NONE, NONE, NOF, TCP, PAY4), 1304 ICE_PTT(93, IP, IPV6, NOF, NONE, NONE, NOF, SCTP, PAY4), 1305 ICE_PTT(94, IP, IPV6, NOF, NONE, NONE, NOF, ICMP, PAY4), 1306 1307 /* IPv6 --> IPv4 */ 1308 ICE_PTT(95, IP, IPV6, NOF, IP_IP, IPV4, FRG, NONE, PAY3), 1309 ICE_PTT(96, IP, IPV6, NOF, IP_IP, IPV4, NOF, NONE, PAY3), 1310 ICE_PTT(97, IP, IPV6, NOF, IP_IP, IPV4, NOF, UDP, PAY4), 1311 ICE_PTT_UNUSED_ENTRY(98), 1312 ICE_PTT(99, IP, IPV6, NOF, IP_IP, IPV4, NOF, TCP, PAY4), 1313 ICE_PTT(100, IP, IPV6, NOF, IP_IP, IPV4, NOF, SCTP, PAY4), 1314 ICE_PTT(101, IP, IPV6, NOF, IP_IP, IPV4, NOF, ICMP, PAY4), 1315 1316 /* IPv6 --> IPv6 */ 1317 ICE_PTT(102, IP, IPV6, NOF, IP_IP, IPV6, FRG, NONE, PAY3), 1318 ICE_PTT(103, IP, IPV6, NOF, IP_IP, IPV6, NOF, NONE, PAY3), 1319 ICE_PTT(104, IP, IPV6, NOF, IP_IP, IPV6, NOF, UDP, PAY4), 1320 ICE_PTT_UNUSED_ENTRY(105), 1321 ICE_PTT(106, IP, IPV6, NOF, IP_IP, IPV6, NOF, TCP, PAY4), 1322 ICE_PTT(107, IP, IPV6, NOF, IP_IP, IPV6, NOF, SCTP, PAY4), 1323 ICE_PTT(108, IP, IPV6, NOF, IP_IP, IPV6, NOF, ICMP, PAY4), 1324 1325 /* IPv6 --> GRE/NAT */ 1326 ICE_PTT(109, IP, IPV6, NOF, IP_GRENAT, NONE, NOF, NONE, PAY3), 1327 1328 /* IPv6 --> GRE/NAT -> IPv4 */ 1329 ICE_PTT(110, IP, IPV6, NOF, IP_GRENAT, IPV4, FRG, NONE, PAY3), 1330 ICE_PTT(111, IP, IPV6, NOF, IP_GRENAT, IPV4, NOF, NONE, PAY3), 1331 ICE_PTT(112, IP, IPV6, NOF, IP_GRENAT, IPV4, NOF, UDP, PAY4), 1332 ICE_PTT_UNUSED_ENTRY(113), 1333 ICE_PTT(114, IP, IPV6, NOF, IP_GRENAT, IPV4, NOF, TCP, PAY4), 1334 ICE_PTT(115, IP, IPV6, NOF, IP_GRENAT, IPV4, NOF, SCTP, PAY4), 1335 ICE_PTT(116, IP, IPV6, NOF, IP_GRENAT, IPV4, NOF, ICMP, PAY4), 1336 1337 /* IPv6 --> GRE/NAT -> IPv6 */ 1338 ICE_PTT(117, IP, IPV6, NOF, IP_GRENAT, IPV6, FRG, NONE, PAY3), 1339 ICE_PTT(118, IP, IPV6, NOF, IP_GRENAT, IPV6, NOF, NONE, PAY3), 1340 ICE_PTT(119, IP, IPV6, NOF, IP_GRENAT, IPV6, NOF, UDP, PAY4), 1341 ICE_PTT_UNUSED_ENTRY(120), 1342 ICE_PTT(121, IP, IPV6, NOF, IP_GRENAT, IPV6, NOF, TCP, PAY4), 1343 ICE_PTT(122, IP, IPV6, NOF, IP_GRENAT, IPV6, NOF, SCTP, PAY4), 1344 ICE_PTT(123, IP, IPV6, NOF, IP_GRENAT, IPV6, NOF, ICMP, PAY4), 1345 1346 /* IPv6 --> GRE/NAT -> MAC */ 1347 ICE_PTT(124, IP, IPV6, NOF, IP_GRENAT_MAC, NONE, NOF, NONE, PAY3), 1348 1349 /* IPv6 --> GRE/NAT -> MAC -> IPv4 */ 1350 ICE_PTT(125, IP, IPV6, NOF, IP_GRENAT_MAC, IPV4, FRG, NONE, PAY3), 1351 ICE_PTT(126, IP, IPV6, NOF, IP_GRENAT_MAC, IPV4, NOF, NONE, PAY3), 1352 ICE_PTT(127, IP, IPV6, NOF, IP_GRENAT_MAC, IPV4, NOF, UDP, PAY4), 1353 ICE_PTT_UNUSED_ENTRY(128), 1354 ICE_PTT(129, IP, IPV6, NOF, IP_GRENAT_MAC, IPV4, NOF, TCP, PAY4), 1355 ICE_PTT(130, IP, IPV6, NOF, IP_GRENAT_MAC, IPV4, NOF, SCTP, PAY4), 1356 ICE_PTT(131, IP, IPV6, NOF, IP_GRENAT_MAC, IPV4, NOF, ICMP, PAY4), 1357 1358 /* IPv6 --> GRE/NAT -> MAC -> IPv6 */ 1359 ICE_PTT(132, IP, IPV6, NOF, IP_GRENAT_MAC, IPV6, FRG, NONE, PAY3), 1360 ICE_PTT(133, IP, IPV6, NOF, IP_GRENAT_MAC, IPV6, NOF, NONE, PAY3), 1361 ICE_PTT(134, IP, IPV6, NOF, IP_GRENAT_MAC, IPV6, NOF, UDP, PAY4), 1362 ICE_PTT_UNUSED_ENTRY(135), 1363 ICE_PTT(136, IP, IPV6, NOF, IP_GRENAT_MAC, IPV6, NOF, TCP, PAY4), 1364 ICE_PTT(137, IP, IPV6, NOF, IP_GRENAT_MAC, IPV6, NOF, SCTP, PAY4), 1365 ICE_PTT(138, IP, IPV6, NOF, IP_GRENAT_MAC, IPV6, NOF, ICMP, PAY4), 1366 1367 /* IPv6 --> GRE/NAT -> MAC/VLAN */ 1368 ICE_PTT(139, IP, IPV6, NOF, IP_GRENAT_MAC_VLAN, NONE, NOF, NONE, PAY3), 1369 1370 /* IPv6 --> GRE/NAT -> MAC/VLAN --> IPv4 */ 1371 ICE_PTT(140, IP, IPV6, NOF, IP_GRENAT_MAC_VLAN, IPV4, FRG, NONE, PAY3), 1372 ICE_PTT(141, IP, IPV6, NOF, IP_GRENAT_MAC_VLAN, IPV4, NOF, NONE, PAY3), 1373 ICE_PTT(142, IP, IPV6, NOF, IP_GRENAT_MAC_VLAN, IPV4, NOF, UDP, PAY4), 1374 ICE_PTT_UNUSED_ENTRY(143), 1375 ICE_PTT(144, IP, IPV6, NOF, IP_GRENAT_MAC_VLAN, IPV4, NOF, TCP, PAY4), 1376 ICE_PTT(145, IP, IPV6, NOF, IP_GRENAT_MAC_VLAN, IPV4, NOF, SCTP, PAY4), 1377 ICE_PTT(146, IP, IPV6, NOF, IP_GRENAT_MAC_VLAN, IPV4, NOF, ICMP, PAY4), 1378 1379 /* IPv6 --> GRE/NAT -> MAC/VLAN --> IPv6 */ 1380 ICE_PTT(147, IP, IPV6, NOF, IP_GRENAT_MAC_VLAN, IPV6, FRG, NONE, PAY3), 1381 ICE_PTT(148, IP, IPV6, NOF, IP_GRENAT_MAC_VLAN, IPV6, NOF, NONE, PAY3), 1382 ICE_PTT(149, IP, IPV6, NOF, IP_GRENAT_MAC_VLAN, IPV6, NOF, UDP, PAY4), 1383 ICE_PTT_UNUSED_ENTRY(150), 1384 ICE_PTT(151, IP, IPV6, NOF, IP_GRENAT_MAC_VLAN, IPV6, NOF, TCP, PAY4), 1385 ICE_PTT(152, IP, IPV6, NOF, IP_GRENAT_MAC_VLAN, IPV6, NOF, SCTP, PAY4), 1386 ICE_PTT(153, IP, IPV6, NOF, IP_GRENAT_MAC_VLAN, IPV6, NOF, ICMP, PAY4), 1387 1388 /* unused entries */ 1389 ICE_PTT_UNUSED_ENTRY(154), 1390 ICE_PTT_UNUSED_ENTRY(155), 1391 ICE_PTT_UNUSED_ENTRY(156), 1392 ICE_PTT_UNUSED_ENTRY(157), 1393 ICE_PTT_UNUSED_ENTRY(158), 1394 ICE_PTT_UNUSED_ENTRY(159), 1395 1396 ICE_PTT_UNUSED_ENTRY(160), 1397 ICE_PTT_UNUSED_ENTRY(161), 1398 ICE_PTT_UNUSED_ENTRY(162), 1399 ICE_PTT_UNUSED_ENTRY(163), 1400 ICE_PTT_UNUSED_ENTRY(164), 1401 ICE_PTT_UNUSED_ENTRY(165), 1402 ICE_PTT_UNUSED_ENTRY(166), 1403 ICE_PTT_UNUSED_ENTRY(167), 1404 ICE_PTT_UNUSED_ENTRY(168), 1405 ICE_PTT_UNUSED_ENTRY(169), 1406 1407 ICE_PTT_UNUSED_ENTRY(170), 1408 ICE_PTT_UNUSED_ENTRY(171), 1409 ICE_PTT_UNUSED_ENTRY(172), 1410 ICE_PTT_UNUSED_ENTRY(173), 1411 ICE_PTT_UNUSED_ENTRY(174), 1412 ICE_PTT_UNUSED_ENTRY(175), 1413 ICE_PTT_UNUSED_ENTRY(176), 1414 ICE_PTT_UNUSED_ENTRY(177), 1415 ICE_PTT_UNUSED_ENTRY(178), 1416 ICE_PTT_UNUSED_ENTRY(179), 1417 1418 ICE_PTT_UNUSED_ENTRY(180), 1419 ICE_PTT_UNUSED_ENTRY(181), 1420 ICE_PTT_UNUSED_ENTRY(182), 1421 ICE_PTT_UNUSED_ENTRY(183), 1422 ICE_PTT_UNUSED_ENTRY(184), 1423 ICE_PTT_UNUSED_ENTRY(185), 1424 ICE_PTT_UNUSED_ENTRY(186), 1425 ICE_PTT_UNUSED_ENTRY(187), 1426 ICE_PTT_UNUSED_ENTRY(188), 1427 ICE_PTT_UNUSED_ENTRY(189), 1428 1429 ICE_PTT_UNUSED_ENTRY(190), 1430 ICE_PTT_UNUSED_ENTRY(191), 1431 ICE_PTT_UNUSED_ENTRY(192), 1432 ICE_PTT_UNUSED_ENTRY(193), 1433 ICE_PTT_UNUSED_ENTRY(194), 1434 ICE_PTT_UNUSED_ENTRY(195), 1435 ICE_PTT_UNUSED_ENTRY(196), 1436 ICE_PTT_UNUSED_ENTRY(197), 1437 ICE_PTT_UNUSED_ENTRY(198), 1438 ICE_PTT_UNUSED_ENTRY(199), 1439 1440 ICE_PTT_UNUSED_ENTRY(200), 1441 ICE_PTT_UNUSED_ENTRY(201), 1442 ICE_PTT_UNUSED_ENTRY(202), 1443 ICE_PTT_UNUSED_ENTRY(203), 1444 ICE_PTT_UNUSED_ENTRY(204), 1445 ICE_PTT_UNUSED_ENTRY(205), 1446 ICE_PTT_UNUSED_ENTRY(206), 1447 ICE_PTT_UNUSED_ENTRY(207), 1448 ICE_PTT_UNUSED_ENTRY(208), 1449 ICE_PTT_UNUSED_ENTRY(209), 1450 1451 ICE_PTT_UNUSED_ENTRY(210), 1452 ICE_PTT_UNUSED_ENTRY(211), 1453 ICE_PTT_UNUSED_ENTRY(212), 1454 ICE_PTT_UNUSED_ENTRY(213), 1455 ICE_PTT_UNUSED_ENTRY(214), 1456 ICE_PTT_UNUSED_ENTRY(215), 1457 ICE_PTT_UNUSED_ENTRY(216), 1458 ICE_PTT_UNUSED_ENTRY(217), 1459 ICE_PTT_UNUSED_ENTRY(218), 1460 ICE_PTT_UNUSED_ENTRY(219), 1461 1462 ICE_PTT_UNUSED_ENTRY(220), 1463 ICE_PTT_UNUSED_ENTRY(221), 1464 ICE_PTT_UNUSED_ENTRY(222), 1465 ICE_PTT_UNUSED_ENTRY(223), 1466 ICE_PTT_UNUSED_ENTRY(224), 1467 ICE_PTT_UNUSED_ENTRY(225), 1468 ICE_PTT_UNUSED_ENTRY(226), 1469 ICE_PTT_UNUSED_ENTRY(227), 1470 ICE_PTT_UNUSED_ENTRY(228), 1471 ICE_PTT_UNUSED_ENTRY(229), 1472 1473 ICE_PTT_UNUSED_ENTRY(230), 1474 ICE_PTT_UNUSED_ENTRY(231), 1475 ICE_PTT_UNUSED_ENTRY(232), 1476 ICE_PTT_UNUSED_ENTRY(233), 1477 ICE_PTT_UNUSED_ENTRY(234), 1478 ICE_PTT_UNUSED_ENTRY(235), 1479 ICE_PTT_UNUSED_ENTRY(236), 1480 ICE_PTT_UNUSED_ENTRY(237), 1481 ICE_PTT_UNUSED_ENTRY(238), 1482 ICE_PTT_UNUSED_ENTRY(239), 1483 1484 ICE_PTT_UNUSED_ENTRY(240), 1485 ICE_PTT_UNUSED_ENTRY(241), 1486 ICE_PTT_UNUSED_ENTRY(242), 1487 ICE_PTT_UNUSED_ENTRY(243), 1488 ICE_PTT_UNUSED_ENTRY(244), 1489 ICE_PTT_UNUSED_ENTRY(245), 1490 ICE_PTT_UNUSED_ENTRY(246), 1491 ICE_PTT_UNUSED_ENTRY(247), 1492 ICE_PTT_UNUSED_ENTRY(248), 1493 ICE_PTT_UNUSED_ENTRY(249), 1494 1495 ICE_PTT_UNUSED_ENTRY(250), 1496 ICE_PTT_UNUSED_ENTRY(251), 1497 ICE_PTT_UNUSED_ENTRY(252), 1498 ICE_PTT_UNUSED_ENTRY(253), 1499 ICE_PTT_UNUSED_ENTRY(254), 1500 ICE_PTT_UNUSED_ENTRY(255), 1501 ICE_PTT_UNUSED_ENTRY(256), 1502 ICE_PTT_UNUSED_ENTRY(257), 1503 ICE_PTT_UNUSED_ENTRY(258), 1504 ICE_PTT_UNUSED_ENTRY(259), 1505 1506 ICE_PTT_UNUSED_ENTRY(260), 1507 ICE_PTT_UNUSED_ENTRY(261), 1508 ICE_PTT_UNUSED_ENTRY(262), 1509 ICE_PTT_UNUSED_ENTRY(263), 1510 ICE_PTT_UNUSED_ENTRY(264), 1511 ICE_PTT_UNUSED_ENTRY(265), 1512 ICE_PTT_UNUSED_ENTRY(266), 1513 ICE_PTT_UNUSED_ENTRY(267), 1514 ICE_PTT_UNUSED_ENTRY(268), 1515 ICE_PTT_UNUSED_ENTRY(269), 1516 1517 ICE_PTT_UNUSED_ENTRY(270), 1518 ICE_PTT_UNUSED_ENTRY(271), 1519 ICE_PTT_UNUSED_ENTRY(272), 1520 ICE_PTT_UNUSED_ENTRY(273), 1521 ICE_PTT_UNUSED_ENTRY(274), 1522 ICE_PTT_UNUSED_ENTRY(275), 1523 ICE_PTT_UNUSED_ENTRY(276), 1524 ICE_PTT_UNUSED_ENTRY(277), 1525 ICE_PTT_UNUSED_ENTRY(278), 1526 ICE_PTT_UNUSED_ENTRY(279), 1527 1528 ICE_PTT_UNUSED_ENTRY(280), 1529 ICE_PTT_UNUSED_ENTRY(281), 1530 ICE_PTT_UNUSED_ENTRY(282), 1531 ICE_PTT_UNUSED_ENTRY(283), 1532 ICE_PTT_UNUSED_ENTRY(284), 1533 ICE_PTT_UNUSED_ENTRY(285), 1534 ICE_PTT_UNUSED_ENTRY(286), 1535 ICE_PTT_UNUSED_ENTRY(287), 1536 ICE_PTT_UNUSED_ENTRY(288), 1537 ICE_PTT_UNUSED_ENTRY(289), 1538 1539 ICE_PTT_UNUSED_ENTRY(290), 1540 ICE_PTT_UNUSED_ENTRY(291), 1541 ICE_PTT_UNUSED_ENTRY(292), 1542 ICE_PTT_UNUSED_ENTRY(293), 1543 ICE_PTT_UNUSED_ENTRY(294), 1544 ICE_PTT_UNUSED_ENTRY(295), 1545 ICE_PTT_UNUSED_ENTRY(296), 1546 ICE_PTT_UNUSED_ENTRY(297), 1547 ICE_PTT_UNUSED_ENTRY(298), 1548 ICE_PTT_UNUSED_ENTRY(299), 1549 1550 ICE_PTT_UNUSED_ENTRY(300), 1551 ICE_PTT_UNUSED_ENTRY(301), 1552 ICE_PTT_UNUSED_ENTRY(302), 1553 ICE_PTT_UNUSED_ENTRY(303), 1554 ICE_PTT_UNUSED_ENTRY(304), 1555 ICE_PTT_UNUSED_ENTRY(305), 1556 ICE_PTT_UNUSED_ENTRY(306), 1557 ICE_PTT_UNUSED_ENTRY(307), 1558 ICE_PTT_UNUSED_ENTRY(308), 1559 ICE_PTT_UNUSED_ENTRY(309), 1560 1561 ICE_PTT_UNUSED_ENTRY(310), 1562 ICE_PTT_UNUSED_ENTRY(311), 1563 ICE_PTT_UNUSED_ENTRY(312), 1564 ICE_PTT_UNUSED_ENTRY(313), 1565 ICE_PTT_UNUSED_ENTRY(314), 1566 ICE_PTT_UNUSED_ENTRY(315), 1567 ICE_PTT_UNUSED_ENTRY(316), 1568 ICE_PTT_UNUSED_ENTRY(317), 1569 ICE_PTT_UNUSED_ENTRY(318), 1570 ICE_PTT_UNUSED_ENTRY(319), 1571 1572 ICE_PTT_UNUSED_ENTRY(320), 1573 ICE_PTT_UNUSED_ENTRY(321), 1574 ICE_PTT_UNUSED_ENTRY(322), 1575 ICE_PTT_UNUSED_ENTRY(323), 1576 ICE_PTT_UNUSED_ENTRY(324), 1577 ICE_PTT_UNUSED_ENTRY(325), 1578 ICE_PTT_UNUSED_ENTRY(326), 1579 ICE_PTT_UNUSED_ENTRY(327), 1580 ICE_PTT_UNUSED_ENTRY(328), 1581 ICE_PTT_UNUSED_ENTRY(329), 1582 1583 ICE_PTT_UNUSED_ENTRY(330), 1584 ICE_PTT_UNUSED_ENTRY(331), 1585 ICE_PTT_UNUSED_ENTRY(332), 1586 ICE_PTT_UNUSED_ENTRY(333), 1587 ICE_PTT_UNUSED_ENTRY(334), 1588 ICE_PTT_UNUSED_ENTRY(335), 1589 ICE_PTT_UNUSED_ENTRY(336), 1590 ICE_PTT_UNUSED_ENTRY(337), 1591 ICE_PTT_UNUSED_ENTRY(338), 1592 ICE_PTT_UNUSED_ENTRY(339), 1593 1594 ICE_PTT_UNUSED_ENTRY(340), 1595 ICE_PTT_UNUSED_ENTRY(341), 1596 ICE_PTT_UNUSED_ENTRY(342), 1597 ICE_PTT_UNUSED_ENTRY(343), 1598 ICE_PTT_UNUSED_ENTRY(344), 1599 ICE_PTT_UNUSED_ENTRY(345), 1600 ICE_PTT_UNUSED_ENTRY(346), 1601 ICE_PTT_UNUSED_ENTRY(347), 1602 ICE_PTT_UNUSED_ENTRY(348), 1603 ICE_PTT_UNUSED_ENTRY(349), 1604 1605 ICE_PTT_UNUSED_ENTRY(350), 1606 ICE_PTT_UNUSED_ENTRY(351), 1607 ICE_PTT_UNUSED_ENTRY(352), 1608 ICE_PTT_UNUSED_ENTRY(353), 1609 ICE_PTT_UNUSED_ENTRY(354), 1610 ICE_PTT_UNUSED_ENTRY(355), 1611 ICE_PTT_UNUSED_ENTRY(356), 1612 ICE_PTT_UNUSED_ENTRY(357), 1613 ICE_PTT_UNUSED_ENTRY(358), 1614 ICE_PTT_UNUSED_ENTRY(359), 1615 1616 ICE_PTT_UNUSED_ENTRY(360), 1617 ICE_PTT_UNUSED_ENTRY(361), 1618 ICE_PTT_UNUSED_ENTRY(362), 1619 ICE_PTT_UNUSED_ENTRY(363), 1620 ICE_PTT_UNUSED_ENTRY(364), 1621 ICE_PTT_UNUSED_ENTRY(365), 1622 ICE_PTT_UNUSED_ENTRY(366), 1623 ICE_PTT_UNUSED_ENTRY(367), 1624 ICE_PTT_UNUSED_ENTRY(368), 1625 ICE_PTT_UNUSED_ENTRY(369), 1626 1627 ICE_PTT_UNUSED_ENTRY(370), 1628 ICE_PTT_UNUSED_ENTRY(371), 1629 ICE_PTT_UNUSED_ENTRY(372), 1630 ICE_PTT_UNUSED_ENTRY(373), 1631 ICE_PTT_UNUSED_ENTRY(374), 1632 ICE_PTT_UNUSED_ENTRY(375), 1633 ICE_PTT_UNUSED_ENTRY(376), 1634 ICE_PTT_UNUSED_ENTRY(377), 1635 ICE_PTT_UNUSED_ENTRY(378), 1636 ICE_PTT_UNUSED_ENTRY(379), 1637 1638 ICE_PTT_UNUSED_ENTRY(380), 1639 ICE_PTT_UNUSED_ENTRY(381), 1640 ICE_PTT_UNUSED_ENTRY(382), 1641 ICE_PTT_UNUSED_ENTRY(383), 1642 ICE_PTT_UNUSED_ENTRY(384), 1643 ICE_PTT_UNUSED_ENTRY(385), 1644 ICE_PTT_UNUSED_ENTRY(386), 1645 ICE_PTT_UNUSED_ENTRY(387), 1646 ICE_PTT_UNUSED_ENTRY(388), 1647 ICE_PTT_UNUSED_ENTRY(389), 1648 1649 ICE_PTT_UNUSED_ENTRY(390), 1650 ICE_PTT_UNUSED_ENTRY(391), 1651 ICE_PTT_UNUSED_ENTRY(392), 1652 ICE_PTT_UNUSED_ENTRY(393), 1653 ICE_PTT_UNUSED_ENTRY(394), 1654 ICE_PTT_UNUSED_ENTRY(395), 1655 ICE_PTT_UNUSED_ENTRY(396), 1656 ICE_PTT_UNUSED_ENTRY(397), 1657 ICE_PTT_UNUSED_ENTRY(398), 1658 ICE_PTT_UNUSED_ENTRY(399), 1659 1660 ICE_PTT_UNUSED_ENTRY(400), 1661 ICE_PTT_UNUSED_ENTRY(401), 1662 ICE_PTT_UNUSED_ENTRY(402), 1663 ICE_PTT_UNUSED_ENTRY(403), 1664 ICE_PTT_UNUSED_ENTRY(404), 1665 ICE_PTT_UNUSED_ENTRY(405), 1666 ICE_PTT_UNUSED_ENTRY(406), 1667 ICE_PTT_UNUSED_ENTRY(407), 1668 ICE_PTT_UNUSED_ENTRY(408), 1669 ICE_PTT_UNUSED_ENTRY(409), 1670 1671 ICE_PTT_UNUSED_ENTRY(410), 1672 ICE_PTT_UNUSED_ENTRY(411), 1673 ICE_PTT_UNUSED_ENTRY(412), 1674 ICE_PTT_UNUSED_ENTRY(413), 1675 ICE_PTT_UNUSED_ENTRY(414), 1676 ICE_PTT_UNUSED_ENTRY(415), 1677 ICE_PTT_UNUSED_ENTRY(416), 1678 ICE_PTT_UNUSED_ENTRY(417), 1679 ICE_PTT_UNUSED_ENTRY(418), 1680 ICE_PTT_UNUSED_ENTRY(419), 1681 1682 ICE_PTT_UNUSED_ENTRY(420), 1683 ICE_PTT_UNUSED_ENTRY(421), 1684 ICE_PTT_UNUSED_ENTRY(422), 1685 ICE_PTT_UNUSED_ENTRY(423), 1686 ICE_PTT_UNUSED_ENTRY(424), 1687 ICE_PTT_UNUSED_ENTRY(425), 1688 ICE_PTT_UNUSED_ENTRY(426), 1689 ICE_PTT_UNUSED_ENTRY(427), 1690 ICE_PTT_UNUSED_ENTRY(428), 1691 ICE_PTT_UNUSED_ENTRY(429), 1692 1693 ICE_PTT_UNUSED_ENTRY(430), 1694 ICE_PTT_UNUSED_ENTRY(431), 1695 ICE_PTT_UNUSED_ENTRY(432), 1696 ICE_PTT_UNUSED_ENTRY(433), 1697 ICE_PTT_UNUSED_ENTRY(434), 1698 ICE_PTT_UNUSED_ENTRY(435), 1699 ICE_PTT_UNUSED_ENTRY(436), 1700 ICE_PTT_UNUSED_ENTRY(437), 1701 ICE_PTT_UNUSED_ENTRY(438), 1702 ICE_PTT_UNUSED_ENTRY(439), 1703 1704 ICE_PTT_UNUSED_ENTRY(440), 1705 ICE_PTT_UNUSED_ENTRY(441), 1706 ICE_PTT_UNUSED_ENTRY(442), 1707 ICE_PTT_UNUSED_ENTRY(443), 1708 ICE_PTT_UNUSED_ENTRY(444), 1709 ICE_PTT_UNUSED_ENTRY(445), 1710 ICE_PTT_UNUSED_ENTRY(446), 1711 ICE_PTT_UNUSED_ENTRY(447), 1712 ICE_PTT_UNUSED_ENTRY(448), 1713 ICE_PTT_UNUSED_ENTRY(449), 1714 1715 ICE_PTT_UNUSED_ENTRY(450), 1716 ICE_PTT_UNUSED_ENTRY(451), 1717 ICE_PTT_UNUSED_ENTRY(452), 1718 ICE_PTT_UNUSED_ENTRY(453), 1719 ICE_PTT_UNUSED_ENTRY(454), 1720 ICE_PTT_UNUSED_ENTRY(455), 1721 ICE_PTT_UNUSED_ENTRY(456), 1722 ICE_PTT_UNUSED_ENTRY(457), 1723 ICE_PTT_UNUSED_ENTRY(458), 1724 ICE_PTT_UNUSED_ENTRY(459), 1725 1726 ICE_PTT_UNUSED_ENTRY(460), 1727 ICE_PTT_UNUSED_ENTRY(461), 1728 ICE_PTT_UNUSED_ENTRY(462), 1729 ICE_PTT_UNUSED_ENTRY(463), 1730 ICE_PTT_UNUSED_ENTRY(464), 1731 ICE_PTT_UNUSED_ENTRY(465), 1732 ICE_PTT_UNUSED_ENTRY(466), 1733 ICE_PTT_UNUSED_ENTRY(467), 1734 ICE_PTT_UNUSED_ENTRY(468), 1735 ICE_PTT_UNUSED_ENTRY(469), 1736 1737 ICE_PTT_UNUSED_ENTRY(470), 1738 ICE_PTT_UNUSED_ENTRY(471), 1739 ICE_PTT_UNUSED_ENTRY(472), 1740 ICE_PTT_UNUSED_ENTRY(473), 1741 ICE_PTT_UNUSED_ENTRY(474), 1742 ICE_PTT_UNUSED_ENTRY(475), 1743 ICE_PTT_UNUSED_ENTRY(476), 1744 ICE_PTT_UNUSED_ENTRY(477), 1745 ICE_PTT_UNUSED_ENTRY(478), 1746 ICE_PTT_UNUSED_ENTRY(479), 1747 1748 ICE_PTT_UNUSED_ENTRY(480), 1749 ICE_PTT_UNUSED_ENTRY(481), 1750 ICE_PTT_UNUSED_ENTRY(482), 1751 ICE_PTT_UNUSED_ENTRY(483), 1752 ICE_PTT_UNUSED_ENTRY(484), 1753 ICE_PTT_UNUSED_ENTRY(485), 1754 ICE_PTT_UNUSED_ENTRY(486), 1755 ICE_PTT_UNUSED_ENTRY(487), 1756 ICE_PTT_UNUSED_ENTRY(488), 1757 ICE_PTT_UNUSED_ENTRY(489), 1758 1759 ICE_PTT_UNUSED_ENTRY(490), 1760 ICE_PTT_UNUSED_ENTRY(491), 1761 ICE_PTT_UNUSED_ENTRY(492), 1762 ICE_PTT_UNUSED_ENTRY(493), 1763 ICE_PTT_UNUSED_ENTRY(494), 1764 ICE_PTT_UNUSED_ENTRY(495), 1765 ICE_PTT_UNUSED_ENTRY(496), 1766 ICE_PTT_UNUSED_ENTRY(497), 1767 ICE_PTT_UNUSED_ENTRY(498), 1768 ICE_PTT_UNUSED_ENTRY(499), 1769 1770 ICE_PTT_UNUSED_ENTRY(500), 1771 ICE_PTT_UNUSED_ENTRY(501), 1772 ICE_PTT_UNUSED_ENTRY(502), 1773 ICE_PTT_UNUSED_ENTRY(503), 1774 ICE_PTT_UNUSED_ENTRY(504), 1775 ICE_PTT_UNUSED_ENTRY(505), 1776 ICE_PTT_UNUSED_ENTRY(506), 1777 ICE_PTT_UNUSED_ENTRY(507), 1778 ICE_PTT_UNUSED_ENTRY(508), 1779 ICE_PTT_UNUSED_ENTRY(509), 1780 1781 ICE_PTT_UNUSED_ENTRY(510), 1782 ICE_PTT_UNUSED_ENTRY(511), 1783 ICE_PTT_UNUSED_ENTRY(512), 1784 ICE_PTT_UNUSED_ENTRY(513), 1785 ICE_PTT_UNUSED_ENTRY(514), 1786 ICE_PTT_UNUSED_ENTRY(515), 1787 ICE_PTT_UNUSED_ENTRY(516), 1788 ICE_PTT_UNUSED_ENTRY(517), 1789 ICE_PTT_UNUSED_ENTRY(518), 1790 ICE_PTT_UNUSED_ENTRY(519), 1791 1792 ICE_PTT_UNUSED_ENTRY(520), 1793 ICE_PTT_UNUSED_ENTRY(521), 1794 ICE_PTT_UNUSED_ENTRY(522), 1795 ICE_PTT_UNUSED_ENTRY(523), 1796 ICE_PTT_UNUSED_ENTRY(524), 1797 ICE_PTT_UNUSED_ENTRY(525), 1798 ICE_PTT_UNUSED_ENTRY(526), 1799 ICE_PTT_UNUSED_ENTRY(527), 1800 ICE_PTT_UNUSED_ENTRY(528), 1801 ICE_PTT_UNUSED_ENTRY(529), 1802 1803 ICE_PTT_UNUSED_ENTRY(530), 1804 ICE_PTT_UNUSED_ENTRY(531), 1805 ICE_PTT_UNUSED_ENTRY(532), 1806 ICE_PTT_UNUSED_ENTRY(533), 1807 ICE_PTT_UNUSED_ENTRY(534), 1808 ICE_PTT_UNUSED_ENTRY(535), 1809 ICE_PTT_UNUSED_ENTRY(536), 1810 ICE_PTT_UNUSED_ENTRY(537), 1811 ICE_PTT_UNUSED_ENTRY(538), 1812 ICE_PTT_UNUSED_ENTRY(539), 1813 1814 ICE_PTT_UNUSED_ENTRY(540), 1815 ICE_PTT_UNUSED_ENTRY(541), 1816 ICE_PTT_UNUSED_ENTRY(542), 1817 ICE_PTT_UNUSED_ENTRY(543), 1818 ICE_PTT_UNUSED_ENTRY(544), 1819 ICE_PTT_UNUSED_ENTRY(545), 1820 ICE_PTT_UNUSED_ENTRY(546), 1821 ICE_PTT_UNUSED_ENTRY(547), 1822 ICE_PTT_UNUSED_ENTRY(548), 1823 ICE_PTT_UNUSED_ENTRY(549), 1824 1825 ICE_PTT_UNUSED_ENTRY(550), 1826 ICE_PTT_UNUSED_ENTRY(551), 1827 ICE_PTT_UNUSED_ENTRY(552), 1828 ICE_PTT_UNUSED_ENTRY(553), 1829 ICE_PTT_UNUSED_ENTRY(554), 1830 ICE_PTT_UNUSED_ENTRY(555), 1831 ICE_PTT_UNUSED_ENTRY(556), 1832 ICE_PTT_UNUSED_ENTRY(557), 1833 ICE_PTT_UNUSED_ENTRY(558), 1834 ICE_PTT_UNUSED_ENTRY(559), 1835 1836 ICE_PTT_UNUSED_ENTRY(560), 1837 ICE_PTT_UNUSED_ENTRY(561), 1838 ICE_PTT_UNUSED_ENTRY(562), 1839 ICE_PTT_UNUSED_ENTRY(563), 1840 ICE_PTT_UNUSED_ENTRY(564), 1841 ICE_PTT_UNUSED_ENTRY(565), 1842 ICE_PTT_UNUSED_ENTRY(566), 1843 ICE_PTT_UNUSED_ENTRY(567), 1844 ICE_PTT_UNUSED_ENTRY(568), 1845 ICE_PTT_UNUSED_ENTRY(569), 1846 1847 ICE_PTT_UNUSED_ENTRY(570), 1848 ICE_PTT_UNUSED_ENTRY(571), 1849 ICE_PTT_UNUSED_ENTRY(572), 1850 ICE_PTT_UNUSED_ENTRY(573), 1851 ICE_PTT_UNUSED_ENTRY(574), 1852 ICE_PTT_UNUSED_ENTRY(575), 1853 ICE_PTT_UNUSED_ENTRY(576), 1854 ICE_PTT_UNUSED_ENTRY(577), 1855 ICE_PTT_UNUSED_ENTRY(578), 1856 ICE_PTT_UNUSED_ENTRY(579), 1857 1858 ICE_PTT_UNUSED_ENTRY(580), 1859 ICE_PTT_UNUSED_ENTRY(581), 1860 ICE_PTT_UNUSED_ENTRY(582), 1861 ICE_PTT_UNUSED_ENTRY(583), 1862 ICE_PTT_UNUSED_ENTRY(584), 1863 ICE_PTT_UNUSED_ENTRY(585), 1864 ICE_PTT_UNUSED_ENTRY(586), 1865 ICE_PTT_UNUSED_ENTRY(587), 1866 ICE_PTT_UNUSED_ENTRY(588), 1867 ICE_PTT_UNUSED_ENTRY(589), 1868 1869 ICE_PTT_UNUSED_ENTRY(590), 1870 ICE_PTT_UNUSED_ENTRY(591), 1871 ICE_PTT_UNUSED_ENTRY(592), 1872 ICE_PTT_UNUSED_ENTRY(593), 1873 ICE_PTT_UNUSED_ENTRY(594), 1874 ICE_PTT_UNUSED_ENTRY(595), 1875 ICE_PTT_UNUSED_ENTRY(596), 1876 ICE_PTT_UNUSED_ENTRY(597), 1877 ICE_PTT_UNUSED_ENTRY(598), 1878 ICE_PTT_UNUSED_ENTRY(599), 1879 1880 ICE_PTT_UNUSED_ENTRY(600), 1881 ICE_PTT_UNUSED_ENTRY(601), 1882 ICE_PTT_UNUSED_ENTRY(602), 1883 ICE_PTT_UNUSED_ENTRY(603), 1884 ICE_PTT_UNUSED_ENTRY(604), 1885 ICE_PTT_UNUSED_ENTRY(605), 1886 ICE_PTT_UNUSED_ENTRY(606), 1887 ICE_PTT_UNUSED_ENTRY(607), 1888 ICE_PTT_UNUSED_ENTRY(608), 1889 ICE_PTT_UNUSED_ENTRY(609), 1890 1891 ICE_PTT_UNUSED_ENTRY(610), 1892 ICE_PTT_UNUSED_ENTRY(611), 1893 ICE_PTT_UNUSED_ENTRY(612), 1894 ICE_PTT_UNUSED_ENTRY(613), 1895 ICE_PTT_UNUSED_ENTRY(614), 1896 ICE_PTT_UNUSED_ENTRY(615), 1897 ICE_PTT_UNUSED_ENTRY(616), 1898 ICE_PTT_UNUSED_ENTRY(617), 1899 ICE_PTT_UNUSED_ENTRY(618), 1900 ICE_PTT_UNUSED_ENTRY(619), 1901 1902 ICE_PTT_UNUSED_ENTRY(620), 1903 ICE_PTT_UNUSED_ENTRY(621), 1904 ICE_PTT_UNUSED_ENTRY(622), 1905 ICE_PTT_UNUSED_ENTRY(623), 1906 ICE_PTT_UNUSED_ENTRY(624), 1907 ICE_PTT_UNUSED_ENTRY(625), 1908 ICE_PTT_UNUSED_ENTRY(626), 1909 ICE_PTT_UNUSED_ENTRY(627), 1910 ICE_PTT_UNUSED_ENTRY(628), 1911 ICE_PTT_UNUSED_ENTRY(629), 1912 1913 ICE_PTT_UNUSED_ENTRY(630), 1914 ICE_PTT_UNUSED_ENTRY(631), 1915 ICE_PTT_UNUSED_ENTRY(632), 1916 ICE_PTT_UNUSED_ENTRY(633), 1917 ICE_PTT_UNUSED_ENTRY(634), 1918 ICE_PTT_UNUSED_ENTRY(635), 1919 ICE_PTT_UNUSED_ENTRY(636), 1920 ICE_PTT_UNUSED_ENTRY(637), 1921 ICE_PTT_UNUSED_ENTRY(638), 1922 ICE_PTT_UNUSED_ENTRY(639), 1923 1924 ICE_PTT_UNUSED_ENTRY(640), 1925 ICE_PTT_UNUSED_ENTRY(641), 1926 ICE_PTT_UNUSED_ENTRY(642), 1927 ICE_PTT_UNUSED_ENTRY(643), 1928 ICE_PTT_UNUSED_ENTRY(644), 1929 ICE_PTT_UNUSED_ENTRY(645), 1930 ICE_PTT_UNUSED_ENTRY(646), 1931 ICE_PTT_UNUSED_ENTRY(647), 1932 ICE_PTT_UNUSED_ENTRY(648), 1933 ICE_PTT_UNUSED_ENTRY(649), 1934 1935 ICE_PTT_UNUSED_ENTRY(650), 1936 ICE_PTT_UNUSED_ENTRY(651), 1937 ICE_PTT_UNUSED_ENTRY(652), 1938 ICE_PTT_UNUSED_ENTRY(653), 1939 ICE_PTT_UNUSED_ENTRY(654), 1940 ICE_PTT_UNUSED_ENTRY(655), 1941 ICE_PTT_UNUSED_ENTRY(656), 1942 ICE_PTT_UNUSED_ENTRY(657), 1943 ICE_PTT_UNUSED_ENTRY(658), 1944 ICE_PTT_UNUSED_ENTRY(659), 1945 1946 ICE_PTT_UNUSED_ENTRY(660), 1947 ICE_PTT_UNUSED_ENTRY(661), 1948 ICE_PTT_UNUSED_ENTRY(662), 1949 ICE_PTT_UNUSED_ENTRY(663), 1950 ICE_PTT_UNUSED_ENTRY(664), 1951 ICE_PTT_UNUSED_ENTRY(665), 1952 ICE_PTT_UNUSED_ENTRY(666), 1953 ICE_PTT_UNUSED_ENTRY(667), 1954 ICE_PTT_UNUSED_ENTRY(668), 1955 ICE_PTT_UNUSED_ENTRY(669), 1956 1957 ICE_PTT_UNUSED_ENTRY(670), 1958 ICE_PTT_UNUSED_ENTRY(671), 1959 ICE_PTT_UNUSED_ENTRY(672), 1960 ICE_PTT_UNUSED_ENTRY(673), 1961 ICE_PTT_UNUSED_ENTRY(674), 1962 ICE_PTT_UNUSED_ENTRY(675), 1963 ICE_PTT_UNUSED_ENTRY(676), 1964 ICE_PTT_UNUSED_ENTRY(677), 1965 ICE_PTT_UNUSED_ENTRY(678), 1966 ICE_PTT_UNUSED_ENTRY(679), 1967 1968 ICE_PTT_UNUSED_ENTRY(680), 1969 ICE_PTT_UNUSED_ENTRY(681), 1970 ICE_PTT_UNUSED_ENTRY(682), 1971 ICE_PTT_UNUSED_ENTRY(683), 1972 ICE_PTT_UNUSED_ENTRY(684), 1973 ICE_PTT_UNUSED_ENTRY(685), 1974 ICE_PTT_UNUSED_ENTRY(686), 1975 ICE_PTT_UNUSED_ENTRY(687), 1976 ICE_PTT_UNUSED_ENTRY(688), 1977 ICE_PTT_UNUSED_ENTRY(689), 1978 1979 ICE_PTT_UNUSED_ENTRY(690), 1980 ICE_PTT_UNUSED_ENTRY(691), 1981 ICE_PTT_UNUSED_ENTRY(692), 1982 ICE_PTT_UNUSED_ENTRY(693), 1983 ICE_PTT_UNUSED_ENTRY(694), 1984 ICE_PTT_UNUSED_ENTRY(695), 1985 ICE_PTT_UNUSED_ENTRY(696), 1986 ICE_PTT_UNUSED_ENTRY(697), 1987 ICE_PTT_UNUSED_ENTRY(698), 1988 ICE_PTT_UNUSED_ENTRY(699), 1989 1990 ICE_PTT_UNUSED_ENTRY(700), 1991 ICE_PTT_UNUSED_ENTRY(701), 1992 ICE_PTT_UNUSED_ENTRY(702), 1993 ICE_PTT_UNUSED_ENTRY(703), 1994 ICE_PTT_UNUSED_ENTRY(704), 1995 ICE_PTT_UNUSED_ENTRY(705), 1996 ICE_PTT_UNUSED_ENTRY(706), 1997 ICE_PTT_UNUSED_ENTRY(707), 1998 ICE_PTT_UNUSED_ENTRY(708), 1999 ICE_PTT_UNUSED_ENTRY(709), 2000 2001 ICE_PTT_UNUSED_ENTRY(710), 2002 ICE_PTT_UNUSED_ENTRY(711), 2003 ICE_PTT_UNUSED_ENTRY(712), 2004 ICE_PTT_UNUSED_ENTRY(713), 2005 ICE_PTT_UNUSED_ENTRY(714), 2006 ICE_PTT_UNUSED_ENTRY(715), 2007 ICE_PTT_UNUSED_ENTRY(716), 2008 ICE_PTT_UNUSED_ENTRY(717), 2009 ICE_PTT_UNUSED_ENTRY(718), 2010 ICE_PTT_UNUSED_ENTRY(719), 2011 2012 ICE_PTT_UNUSED_ENTRY(720), 2013 ICE_PTT_UNUSED_ENTRY(721), 2014 ICE_PTT_UNUSED_ENTRY(722), 2015 ICE_PTT_UNUSED_ENTRY(723), 2016 ICE_PTT_UNUSED_ENTRY(724), 2017 ICE_PTT_UNUSED_ENTRY(725), 2018 ICE_PTT_UNUSED_ENTRY(726), 2019 ICE_PTT_UNUSED_ENTRY(727), 2020 ICE_PTT_UNUSED_ENTRY(728), 2021 ICE_PTT_UNUSED_ENTRY(729), 2022 2023 ICE_PTT_UNUSED_ENTRY(730), 2024 ICE_PTT_UNUSED_ENTRY(731), 2025 ICE_PTT_UNUSED_ENTRY(732), 2026 ICE_PTT_UNUSED_ENTRY(733), 2027 ICE_PTT_UNUSED_ENTRY(734), 2028 ICE_PTT_UNUSED_ENTRY(735), 2029 ICE_PTT_UNUSED_ENTRY(736), 2030 ICE_PTT_UNUSED_ENTRY(737), 2031 ICE_PTT_UNUSED_ENTRY(738), 2032 ICE_PTT_UNUSED_ENTRY(739), 2033 2034 ICE_PTT_UNUSED_ENTRY(740), 2035 ICE_PTT_UNUSED_ENTRY(741), 2036 ICE_PTT_UNUSED_ENTRY(742), 2037 ICE_PTT_UNUSED_ENTRY(743), 2038 ICE_PTT_UNUSED_ENTRY(744), 2039 ICE_PTT_UNUSED_ENTRY(745), 2040 ICE_PTT_UNUSED_ENTRY(746), 2041 ICE_PTT_UNUSED_ENTRY(747), 2042 ICE_PTT_UNUSED_ENTRY(748), 2043 ICE_PTT_UNUSED_ENTRY(749), 2044 2045 ICE_PTT_UNUSED_ENTRY(750), 2046 ICE_PTT_UNUSED_ENTRY(751), 2047 ICE_PTT_UNUSED_ENTRY(752), 2048 ICE_PTT_UNUSED_ENTRY(753), 2049 ICE_PTT_UNUSED_ENTRY(754), 2050 ICE_PTT_UNUSED_ENTRY(755), 2051 ICE_PTT_UNUSED_ENTRY(756), 2052 ICE_PTT_UNUSED_ENTRY(757), 2053 ICE_PTT_UNUSED_ENTRY(758), 2054 ICE_PTT_UNUSED_ENTRY(759), 2055 2056 ICE_PTT_UNUSED_ENTRY(760), 2057 ICE_PTT_UNUSED_ENTRY(761), 2058 ICE_PTT_UNUSED_ENTRY(762), 2059 ICE_PTT_UNUSED_ENTRY(763), 2060 ICE_PTT_UNUSED_ENTRY(764), 2061 ICE_PTT_UNUSED_ENTRY(765), 2062 ICE_PTT_UNUSED_ENTRY(766), 2063 ICE_PTT_UNUSED_ENTRY(767), 2064 ICE_PTT_UNUSED_ENTRY(768), 2065 ICE_PTT_UNUSED_ENTRY(769), 2066 2067 ICE_PTT_UNUSED_ENTRY(770), 2068 ICE_PTT_UNUSED_ENTRY(771), 2069 ICE_PTT_UNUSED_ENTRY(772), 2070 ICE_PTT_UNUSED_ENTRY(773), 2071 ICE_PTT_UNUSED_ENTRY(774), 2072 ICE_PTT_UNUSED_ENTRY(775), 2073 ICE_PTT_UNUSED_ENTRY(776), 2074 ICE_PTT_UNUSED_ENTRY(777), 2075 ICE_PTT_UNUSED_ENTRY(778), 2076 ICE_PTT_UNUSED_ENTRY(779), 2077 2078 ICE_PTT_UNUSED_ENTRY(780), 2079 ICE_PTT_UNUSED_ENTRY(781), 2080 ICE_PTT_UNUSED_ENTRY(782), 2081 ICE_PTT_UNUSED_ENTRY(783), 2082 ICE_PTT_UNUSED_ENTRY(784), 2083 ICE_PTT_UNUSED_ENTRY(785), 2084 ICE_PTT_UNUSED_ENTRY(786), 2085 ICE_PTT_UNUSED_ENTRY(787), 2086 ICE_PTT_UNUSED_ENTRY(788), 2087 ICE_PTT_UNUSED_ENTRY(789), 2088 2089 ICE_PTT_UNUSED_ENTRY(790), 2090 ICE_PTT_UNUSED_ENTRY(791), 2091 ICE_PTT_UNUSED_ENTRY(792), 2092 ICE_PTT_UNUSED_ENTRY(793), 2093 ICE_PTT_UNUSED_ENTRY(794), 2094 ICE_PTT_UNUSED_ENTRY(795), 2095 ICE_PTT_UNUSED_ENTRY(796), 2096 ICE_PTT_UNUSED_ENTRY(797), 2097 ICE_PTT_UNUSED_ENTRY(798), 2098 ICE_PTT_UNUSED_ENTRY(799), 2099 2100 ICE_PTT_UNUSED_ENTRY(800), 2101 ICE_PTT_UNUSED_ENTRY(801), 2102 ICE_PTT_UNUSED_ENTRY(802), 2103 ICE_PTT_UNUSED_ENTRY(803), 2104 ICE_PTT_UNUSED_ENTRY(804), 2105 ICE_PTT_UNUSED_ENTRY(805), 2106 ICE_PTT_UNUSED_ENTRY(806), 2107 ICE_PTT_UNUSED_ENTRY(807), 2108 ICE_PTT_UNUSED_ENTRY(808), 2109 ICE_PTT_UNUSED_ENTRY(809), 2110 2111 ICE_PTT_UNUSED_ENTRY(810), 2112 ICE_PTT_UNUSED_ENTRY(811), 2113 ICE_PTT_UNUSED_ENTRY(812), 2114 ICE_PTT_UNUSED_ENTRY(813), 2115 ICE_PTT_UNUSED_ENTRY(814), 2116 ICE_PTT_UNUSED_ENTRY(815), 2117 ICE_PTT_UNUSED_ENTRY(816), 2118 ICE_PTT_UNUSED_ENTRY(817), 2119 ICE_PTT_UNUSED_ENTRY(818), 2120 ICE_PTT_UNUSED_ENTRY(819), 2121 2122 ICE_PTT_UNUSED_ENTRY(820), 2123 ICE_PTT_UNUSED_ENTRY(821), 2124 ICE_PTT_UNUSED_ENTRY(822), 2125 ICE_PTT_UNUSED_ENTRY(823), 2126 ICE_PTT_UNUSED_ENTRY(824), 2127 ICE_PTT_UNUSED_ENTRY(825), 2128 ICE_PTT_UNUSED_ENTRY(826), 2129 ICE_PTT_UNUSED_ENTRY(827), 2130 ICE_PTT_UNUSED_ENTRY(828), 2131 ICE_PTT_UNUSED_ENTRY(829), 2132 2133 ICE_PTT_UNUSED_ENTRY(830), 2134 ICE_PTT_UNUSED_ENTRY(831), 2135 ICE_PTT_UNUSED_ENTRY(832), 2136 ICE_PTT_UNUSED_ENTRY(833), 2137 ICE_PTT_UNUSED_ENTRY(834), 2138 ICE_PTT_UNUSED_ENTRY(835), 2139 ICE_PTT_UNUSED_ENTRY(836), 2140 ICE_PTT_UNUSED_ENTRY(837), 2141 ICE_PTT_UNUSED_ENTRY(838), 2142 ICE_PTT_UNUSED_ENTRY(839), 2143 2144 ICE_PTT_UNUSED_ENTRY(840), 2145 ICE_PTT_UNUSED_ENTRY(841), 2146 ICE_PTT_UNUSED_ENTRY(842), 2147 ICE_PTT_UNUSED_ENTRY(843), 2148 ICE_PTT_UNUSED_ENTRY(844), 2149 ICE_PTT_UNUSED_ENTRY(845), 2150 ICE_PTT_UNUSED_ENTRY(846), 2151 ICE_PTT_UNUSED_ENTRY(847), 2152 ICE_PTT_UNUSED_ENTRY(848), 2153 ICE_PTT_UNUSED_ENTRY(849), 2154 2155 ICE_PTT_UNUSED_ENTRY(850), 2156 ICE_PTT_UNUSED_ENTRY(851), 2157 ICE_PTT_UNUSED_ENTRY(852), 2158 ICE_PTT_UNUSED_ENTRY(853), 2159 ICE_PTT_UNUSED_ENTRY(854), 2160 ICE_PTT_UNUSED_ENTRY(855), 2161 ICE_PTT_UNUSED_ENTRY(856), 2162 ICE_PTT_UNUSED_ENTRY(857), 2163 ICE_PTT_UNUSED_ENTRY(858), 2164 ICE_PTT_UNUSED_ENTRY(859), 2165 2166 ICE_PTT_UNUSED_ENTRY(860), 2167 ICE_PTT_UNUSED_ENTRY(861), 2168 ICE_PTT_UNUSED_ENTRY(862), 2169 ICE_PTT_UNUSED_ENTRY(863), 2170 ICE_PTT_UNUSED_ENTRY(864), 2171 ICE_PTT_UNUSED_ENTRY(865), 2172 ICE_PTT_UNUSED_ENTRY(866), 2173 ICE_PTT_UNUSED_ENTRY(867), 2174 ICE_PTT_UNUSED_ENTRY(868), 2175 ICE_PTT_UNUSED_ENTRY(869), 2176 2177 ICE_PTT_UNUSED_ENTRY(870), 2178 ICE_PTT_UNUSED_ENTRY(871), 2179 ICE_PTT_UNUSED_ENTRY(872), 2180 ICE_PTT_UNUSED_ENTRY(873), 2181 ICE_PTT_UNUSED_ENTRY(874), 2182 ICE_PTT_UNUSED_ENTRY(875), 2183 ICE_PTT_UNUSED_ENTRY(876), 2184 ICE_PTT_UNUSED_ENTRY(877), 2185 ICE_PTT_UNUSED_ENTRY(878), 2186 ICE_PTT_UNUSED_ENTRY(879), 2187 2188 ICE_PTT_UNUSED_ENTRY(880), 2189 ICE_PTT_UNUSED_ENTRY(881), 2190 ICE_PTT_UNUSED_ENTRY(882), 2191 ICE_PTT_UNUSED_ENTRY(883), 2192 ICE_PTT_UNUSED_ENTRY(884), 2193 ICE_PTT_UNUSED_ENTRY(885), 2194 ICE_PTT_UNUSED_ENTRY(886), 2195 ICE_PTT_UNUSED_ENTRY(887), 2196 ICE_PTT_UNUSED_ENTRY(888), 2197 ICE_PTT_UNUSED_ENTRY(889), 2198 2199 ICE_PTT_UNUSED_ENTRY(890), 2200 ICE_PTT_UNUSED_ENTRY(891), 2201 ICE_PTT_UNUSED_ENTRY(892), 2202 ICE_PTT_UNUSED_ENTRY(893), 2203 ICE_PTT_UNUSED_ENTRY(894), 2204 ICE_PTT_UNUSED_ENTRY(895), 2205 ICE_PTT_UNUSED_ENTRY(896), 2206 ICE_PTT_UNUSED_ENTRY(897), 2207 ICE_PTT_UNUSED_ENTRY(898), 2208 ICE_PTT_UNUSED_ENTRY(899), 2209 2210 ICE_PTT_UNUSED_ENTRY(900), 2211 ICE_PTT_UNUSED_ENTRY(901), 2212 ICE_PTT_UNUSED_ENTRY(902), 2213 ICE_PTT_UNUSED_ENTRY(903), 2214 ICE_PTT_UNUSED_ENTRY(904), 2215 ICE_PTT_UNUSED_ENTRY(905), 2216 ICE_PTT_UNUSED_ENTRY(906), 2217 ICE_PTT_UNUSED_ENTRY(907), 2218 ICE_PTT_UNUSED_ENTRY(908), 2219 ICE_PTT_UNUSED_ENTRY(909), 2220 2221 ICE_PTT_UNUSED_ENTRY(910), 2222 ICE_PTT_UNUSED_ENTRY(911), 2223 ICE_PTT_UNUSED_ENTRY(912), 2224 ICE_PTT_UNUSED_ENTRY(913), 2225 ICE_PTT_UNUSED_ENTRY(914), 2226 ICE_PTT_UNUSED_ENTRY(915), 2227 ICE_PTT_UNUSED_ENTRY(916), 2228 ICE_PTT_UNUSED_ENTRY(917), 2229 ICE_PTT_UNUSED_ENTRY(918), 2230 ICE_PTT_UNUSED_ENTRY(919), 2231 2232 ICE_PTT_UNUSED_ENTRY(920), 2233 ICE_PTT_UNUSED_ENTRY(921), 2234 ICE_PTT_UNUSED_ENTRY(922), 2235 ICE_PTT_UNUSED_ENTRY(923), 2236 ICE_PTT_UNUSED_ENTRY(924), 2237 ICE_PTT_UNUSED_ENTRY(925), 2238 ICE_PTT_UNUSED_ENTRY(926), 2239 ICE_PTT_UNUSED_ENTRY(927), 2240 ICE_PTT_UNUSED_ENTRY(928), 2241 ICE_PTT_UNUSED_ENTRY(929), 2242 2243 ICE_PTT_UNUSED_ENTRY(930), 2244 ICE_PTT_UNUSED_ENTRY(931), 2245 ICE_PTT_UNUSED_ENTRY(932), 2246 ICE_PTT_UNUSED_ENTRY(933), 2247 ICE_PTT_UNUSED_ENTRY(934), 2248 ICE_PTT_UNUSED_ENTRY(935), 2249 ICE_PTT_UNUSED_ENTRY(936), 2250 ICE_PTT_UNUSED_ENTRY(937), 2251 ICE_PTT_UNUSED_ENTRY(938), 2252 ICE_PTT_UNUSED_ENTRY(939), 2253 2254 ICE_PTT_UNUSED_ENTRY(940), 2255 ICE_PTT_UNUSED_ENTRY(941), 2256 ICE_PTT_UNUSED_ENTRY(942), 2257 ICE_PTT_UNUSED_ENTRY(943), 2258 ICE_PTT_UNUSED_ENTRY(944), 2259 ICE_PTT_UNUSED_ENTRY(945), 2260 ICE_PTT_UNUSED_ENTRY(946), 2261 ICE_PTT_UNUSED_ENTRY(947), 2262 ICE_PTT_UNUSED_ENTRY(948), 2263 ICE_PTT_UNUSED_ENTRY(949), 2264 2265 ICE_PTT_UNUSED_ENTRY(950), 2266 ICE_PTT_UNUSED_ENTRY(951), 2267 ICE_PTT_UNUSED_ENTRY(952), 2268 ICE_PTT_UNUSED_ENTRY(953), 2269 ICE_PTT_UNUSED_ENTRY(954), 2270 ICE_PTT_UNUSED_ENTRY(955), 2271 ICE_PTT_UNUSED_ENTRY(956), 2272 ICE_PTT_UNUSED_ENTRY(957), 2273 ICE_PTT_UNUSED_ENTRY(958), 2274 ICE_PTT_UNUSED_ENTRY(959), 2275 2276 ICE_PTT_UNUSED_ENTRY(960), 2277 ICE_PTT_UNUSED_ENTRY(961), 2278 ICE_PTT_UNUSED_ENTRY(962), 2279 ICE_PTT_UNUSED_ENTRY(963), 2280 ICE_PTT_UNUSED_ENTRY(964), 2281 ICE_PTT_UNUSED_ENTRY(965), 2282 ICE_PTT_UNUSED_ENTRY(966), 2283 ICE_PTT_UNUSED_ENTRY(967), 2284 ICE_PTT_UNUSED_ENTRY(968), 2285 ICE_PTT_UNUSED_ENTRY(969), 2286 2287 ICE_PTT_UNUSED_ENTRY(970), 2288 ICE_PTT_UNUSED_ENTRY(971), 2289 ICE_PTT_UNUSED_ENTRY(972), 2290 ICE_PTT_UNUSED_ENTRY(973), 2291 ICE_PTT_UNUSED_ENTRY(974), 2292 ICE_PTT_UNUSED_ENTRY(975), 2293 ICE_PTT_UNUSED_ENTRY(976), 2294 ICE_PTT_UNUSED_ENTRY(977), 2295 ICE_PTT_UNUSED_ENTRY(978), 2296 ICE_PTT_UNUSED_ENTRY(979), 2297 2298 ICE_PTT_UNUSED_ENTRY(980), 2299 ICE_PTT_UNUSED_ENTRY(981), 2300 ICE_PTT_UNUSED_ENTRY(982), 2301 ICE_PTT_UNUSED_ENTRY(983), 2302 ICE_PTT_UNUSED_ENTRY(984), 2303 ICE_PTT_UNUSED_ENTRY(985), 2304 ICE_PTT_UNUSED_ENTRY(986), 2305 ICE_PTT_UNUSED_ENTRY(987), 2306 ICE_PTT_UNUSED_ENTRY(988), 2307 ICE_PTT_UNUSED_ENTRY(989), 2308 2309 ICE_PTT_UNUSED_ENTRY(990), 2310 ICE_PTT_UNUSED_ENTRY(991), 2311 ICE_PTT_UNUSED_ENTRY(992), 2312 ICE_PTT_UNUSED_ENTRY(993), 2313 ICE_PTT_UNUSED_ENTRY(994), 2314 ICE_PTT_UNUSED_ENTRY(995), 2315 ICE_PTT_UNUSED_ENTRY(996), 2316 ICE_PTT_UNUSED_ENTRY(997), 2317 ICE_PTT_UNUSED_ENTRY(998), 2318 ICE_PTT_UNUSED_ENTRY(999), 2319 2320 ICE_PTT_UNUSED_ENTRY(1000), 2321 ICE_PTT_UNUSED_ENTRY(1001), 2322 ICE_PTT_UNUSED_ENTRY(1002), 2323 ICE_PTT_UNUSED_ENTRY(1003), 2324 ICE_PTT_UNUSED_ENTRY(1004), 2325 ICE_PTT_UNUSED_ENTRY(1005), 2326 ICE_PTT_UNUSED_ENTRY(1006), 2327 ICE_PTT_UNUSED_ENTRY(1007), 2328 ICE_PTT_UNUSED_ENTRY(1008), 2329 ICE_PTT_UNUSED_ENTRY(1009), 2330 2331 ICE_PTT_UNUSED_ENTRY(1010), 2332 ICE_PTT_UNUSED_ENTRY(1011), 2333 ICE_PTT_UNUSED_ENTRY(1012), 2334 ICE_PTT_UNUSED_ENTRY(1013), 2335 ICE_PTT_UNUSED_ENTRY(1014), 2336 ICE_PTT_UNUSED_ENTRY(1015), 2337 ICE_PTT_UNUSED_ENTRY(1016), 2338 ICE_PTT_UNUSED_ENTRY(1017), 2339 ICE_PTT_UNUSED_ENTRY(1018), 2340 ICE_PTT_UNUSED_ENTRY(1019), 2341 2342 ICE_PTT_UNUSED_ENTRY(1020), 2343 ICE_PTT_UNUSED_ENTRY(1021), 2344 ICE_PTT_UNUSED_ENTRY(1022), 2345 ICE_PTT_UNUSED_ENTRY(1023), 2346 }; 2347 2348 static inline struct ice_rx_ptype_decoded ice_decode_rx_desc_ptype(u16 ptype) 2349 { 2350 return ice_ptype_lkup[ptype]; 2351 } 2352 2353 #define ICE_LINK_SPEED_UNKNOWN 0 2354 #define ICE_LINK_SPEED_10MBPS 10 2355 #define ICE_LINK_SPEED_100MBPS 100 2356 #define ICE_LINK_SPEED_1000MBPS 1000 2357 #define ICE_LINK_SPEED_2500MBPS 2500 2358 #define ICE_LINK_SPEED_5000MBPS 5000 2359 #define ICE_LINK_SPEED_10000MBPS 10000 2360 #define ICE_LINK_SPEED_20000MBPS 20000 2361 #define ICE_LINK_SPEED_25000MBPS 25000 2362 #define ICE_LINK_SPEED_40000MBPS 40000 2363 #define ICE_LINK_SPEED_50000MBPS 50000 2364 #define ICE_LINK_SPEED_100000MBPS 100000 2365 2366 #endif /* _ICE_LAN_TX_RX_H_ */ 2367