Jesse Brandeburg | 56a62fc | 2013-09-11 08:40:12 +0000 | [diff] [blame] | 1 | /******************************************************************************* |
| 2 | * |
| 3 | * Intel Ethernet Controller XL710 Family Linux Driver |
| 4 | * Copyright(c) 2013 Intel Corporation. |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify it |
| 7 | * under the terms and conditions of the GNU General Public License, |
| 8 | * version 2, as published by the Free Software Foundation. |
| 9 | * |
| 10 | * This program is distributed in the hope it will be useful, but WITHOUT |
| 11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 12 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
| 13 | * more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License along with |
| 16 | * this program; if not, write to the Free Software Foundation, Inc., |
| 17 | * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. |
| 18 | * |
| 19 | * The full GNU General Public License is included in this distribution in |
| 20 | * the file called "COPYING". |
| 21 | * |
| 22 | * Contact Information: |
| 23 | * e1000-devel Mailing List <e1000-devel@lists.sourceforge.net> |
| 24 | * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 |
| 25 | * |
| 26 | ******************************************************************************/ |
| 27 | |
| 28 | #ifndef _I40E_TYPE_H_ |
| 29 | #define _I40E_TYPE_H_ |
| 30 | |
| 31 | #include "i40e_status.h" |
| 32 | #include "i40e_osdep.h" |
| 33 | #include "i40e_register.h" |
| 34 | #include "i40e_adminq.h" |
| 35 | #include "i40e_hmc.h" |
| 36 | #include "i40e_lan_hmc.h" |
| 37 | |
| 38 | /* Device IDs */ |
| 39 | #define I40E_SFP_XL710_DEVICE_ID 0x1572 |
| 40 | #define I40E_SFP_X710_DEVICE_ID 0x1573 |
| 41 | #define I40E_QEMU_DEVICE_ID 0x1574 |
| 42 | #define I40E_KX_A_DEVICE_ID 0x157F |
| 43 | #define I40E_KX_B_DEVICE_ID 0x1580 |
| 44 | #define I40E_KX_C_DEVICE_ID 0x1581 |
| 45 | #define I40E_KX_D_DEVICE_ID 0x1582 |
| 46 | #define I40E_QSFP_A_DEVICE_ID 0x1583 |
| 47 | #define I40E_QSFP_B_DEVICE_ID 0x1584 |
| 48 | #define I40E_QSFP_C_DEVICE_ID 0x1585 |
| 49 | #define I40E_VF_DEVICE_ID 0x154C |
| 50 | #define I40E_VF_HV_DEVICE_ID 0x1571 |
| 51 | |
Jesse Brandeburg | c9a3d47 | 2013-11-26 10:49:10 +0000 | [diff] [blame] | 52 | #define i40e_is_40G_device(d) ((d) == I40E_QSFP_A_DEVICE_ID || \ |
| 53 | (d) == I40E_QSFP_B_DEVICE_ID || \ |
| 54 | (d) == I40E_QSFP_C_DEVICE_ID) |
| 55 | |
Jesse Brandeburg | 56a62fc | 2013-09-11 08:40:12 +0000 | [diff] [blame] | 56 | #define I40E_FW_API_VERSION_MAJOR 0x0001 |
| 57 | #define I40E_FW_API_VERSION_MINOR 0x0000 |
| 58 | |
| 59 | #define I40E_MAX_VSI_QP 16 |
| 60 | #define I40E_MAX_VF_VSI 3 |
| 61 | #define I40E_MAX_CHAINED_RX_BUFFERS 5 |
Jeff Kirsher | a1c9a9d | 2013-12-28 07:32:18 +0000 | [diff] [blame^] | 62 | #define I40E_MAX_PF_UDP_OFFLOAD_PORTS 16 |
Jesse Brandeburg | 56a62fc | 2013-09-11 08:40:12 +0000 | [diff] [blame] | 63 | |
| 64 | /* Max default timeout in ms, */ |
| 65 | #define I40E_MAX_NVM_TIMEOUT 18000 |
| 66 | |
| 67 | /* Check whether address is multicast. This is little-endian specific check.*/ |
| 68 | #define I40E_IS_MULTICAST(address) \ |
| 69 | (bool)(((u8 *)(address))[0] & ((u8)0x01)) |
| 70 | |
| 71 | /* Check whether an address is broadcast. */ |
| 72 | #define I40E_IS_BROADCAST(address) \ |
| 73 | ((((u8 *)(address))[0] == ((u8)0xff)) && \ |
| 74 | (((u8 *)(address))[1] == ((u8)0xff))) |
| 75 | |
| 76 | /* Switch from mc to the 2usec global time (this is the GTIME resolution) */ |
| 77 | #define I40E_MS_TO_GTIME(time) (((time) * 1000) / 2) |
| 78 | |
| 79 | /* forward declaration */ |
| 80 | struct i40e_hw; |
| 81 | typedef void (*I40E_ADMINQ_CALLBACK)(struct i40e_hw *, struct i40e_aq_desc *); |
| 82 | |
| 83 | #define I40E_ETH_LENGTH_OF_ADDRESS 6 |
| 84 | |
| 85 | /* Data type manipulation macros. */ |
| 86 | |
| 87 | #define I40E_DESC_UNUSED(R) \ |
| 88 | ((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->count) + \ |
| 89 | (R)->next_to_clean - (R)->next_to_use - 1) |
| 90 | |
| 91 | /* bitfields for Tx queue mapping in QTX_CTL */ |
| 92 | #define I40E_QTX_CTL_VF_QUEUE 0x0 |
| 93 | #define I40E_QTX_CTL_PF_QUEUE 0x2 |
| 94 | |
| 95 | /* debug masks */ |
| 96 | enum i40e_debug_mask { |
| 97 | I40E_DEBUG_INIT = 0x00000001, |
| 98 | I40E_DEBUG_RELEASE = 0x00000002, |
| 99 | |
| 100 | I40E_DEBUG_LINK = 0x00000010, |
| 101 | I40E_DEBUG_PHY = 0x00000020, |
| 102 | I40E_DEBUG_HMC = 0x00000040, |
| 103 | I40E_DEBUG_NVM = 0x00000080, |
| 104 | I40E_DEBUG_LAN = 0x00000100, |
| 105 | I40E_DEBUG_FLOW = 0x00000200, |
| 106 | I40E_DEBUG_DCB = 0x00000400, |
| 107 | I40E_DEBUG_DIAG = 0x00000800, |
| 108 | |
| 109 | I40E_DEBUG_AQ_MESSAGE = 0x01000000, /* for i40e_debug() */ |
| 110 | I40E_DEBUG_AQ_DESCRIPTOR = 0x02000000, |
| 111 | I40E_DEBUG_AQ_DESC_BUFFER = 0x04000000, |
| 112 | I40E_DEBUG_AQ_COMMAND = 0x06000000, /* for i40e_debug_aq() */ |
| 113 | I40E_DEBUG_AQ = 0x0F000000, |
| 114 | |
| 115 | I40E_DEBUG_USER = 0xF0000000, |
| 116 | |
| 117 | I40E_DEBUG_ALL = 0xFFFFFFFF |
| 118 | }; |
| 119 | |
| 120 | /* These are structs for managing the hardware information and the operations. |
| 121 | * The structures of function pointers are filled out at init time when we |
| 122 | * know for sure exactly which hardware we're working with. This gives us the |
| 123 | * flexibility of using the same main driver code but adapting to slightly |
| 124 | * different hardware needs as new parts are developed. For this architecture, |
| 125 | * the Firmware and AdminQ are intended to insulate the driver from most of the |
| 126 | * future changes, but these structures will also do part of the job. |
| 127 | */ |
| 128 | enum i40e_mac_type { |
| 129 | I40E_MAC_UNKNOWN = 0, |
| 130 | I40E_MAC_X710, |
| 131 | I40E_MAC_XL710, |
| 132 | I40E_MAC_VF, |
| 133 | I40E_MAC_GENERIC, |
| 134 | }; |
| 135 | |
| 136 | enum i40e_media_type { |
| 137 | I40E_MEDIA_TYPE_UNKNOWN = 0, |
| 138 | I40E_MEDIA_TYPE_FIBER, |
| 139 | I40E_MEDIA_TYPE_BASET, |
| 140 | I40E_MEDIA_TYPE_BACKPLANE, |
| 141 | I40E_MEDIA_TYPE_CX4, |
Jesse Brandeburg | be405eb | 2013-11-20 10:02:50 +0000 | [diff] [blame] | 142 | I40E_MEDIA_TYPE_DA, |
Jesse Brandeburg | 56a62fc | 2013-09-11 08:40:12 +0000 | [diff] [blame] | 143 | I40E_MEDIA_TYPE_VIRTUAL |
| 144 | }; |
| 145 | |
| 146 | enum i40e_fc_mode { |
| 147 | I40E_FC_NONE = 0, |
| 148 | I40E_FC_RX_PAUSE, |
| 149 | I40E_FC_TX_PAUSE, |
| 150 | I40E_FC_FULL, |
| 151 | I40E_FC_PFC, |
| 152 | I40E_FC_DEFAULT |
| 153 | }; |
| 154 | |
| 155 | enum i40e_vsi_type { |
| 156 | I40E_VSI_MAIN = 0, |
| 157 | I40E_VSI_VMDQ1, |
| 158 | I40E_VSI_VMDQ2, |
| 159 | I40E_VSI_CTRL, |
| 160 | I40E_VSI_FCOE, |
| 161 | I40E_VSI_MIRROR, |
| 162 | I40E_VSI_SRIOV, |
| 163 | I40E_VSI_FDIR, |
| 164 | I40E_VSI_TYPE_UNKNOWN |
| 165 | }; |
| 166 | |
| 167 | enum i40e_queue_type { |
| 168 | I40E_QUEUE_TYPE_RX = 0, |
| 169 | I40E_QUEUE_TYPE_TX, |
| 170 | I40E_QUEUE_TYPE_PE_CEQ, |
| 171 | I40E_QUEUE_TYPE_UNKNOWN |
| 172 | }; |
| 173 | |
| 174 | struct i40e_link_status { |
| 175 | enum i40e_aq_phy_type phy_type; |
| 176 | enum i40e_aq_link_speed link_speed; |
| 177 | u8 link_info; |
| 178 | u8 an_info; |
| 179 | u8 ext_info; |
Kamil Krawczyk | 639dc37 | 2013-11-20 10:03:07 +0000 | [diff] [blame] | 180 | u8 loopback; |
Jesse Brandeburg | 56a62fc | 2013-09-11 08:40:12 +0000 | [diff] [blame] | 181 | /* is Link Status Event notification to SW enabled */ |
| 182 | bool lse_enable; |
| 183 | }; |
| 184 | |
| 185 | struct i40e_phy_info { |
| 186 | struct i40e_link_status link_info; |
| 187 | struct i40e_link_status link_info_old; |
| 188 | u32 autoneg_advertised; |
| 189 | u32 phy_id; |
| 190 | u32 module_type; |
| 191 | bool get_link_info; |
| 192 | enum i40e_media_type media_type; |
| 193 | }; |
| 194 | |
| 195 | #define I40E_HW_CAP_MAX_GPIO 30 |
| 196 | /* Capabilities of a PF or a VF or the whole device */ |
| 197 | struct i40e_hw_capabilities { |
| 198 | u32 switch_mode; |
| 199 | #define I40E_NVM_IMAGE_TYPE_EVB 0x0 |
| 200 | #define I40E_NVM_IMAGE_TYPE_CLOUD 0x2 |
| 201 | #define I40E_NVM_IMAGE_TYPE_UDP_CLOUD 0x3 |
| 202 | |
| 203 | u32 management_mode; |
| 204 | u32 npar_enable; |
| 205 | u32 os2bmc; |
| 206 | u32 valid_functions; |
| 207 | bool sr_iov_1_1; |
| 208 | bool vmdq; |
| 209 | bool evb_802_1_qbg; /* Edge Virtual Bridging */ |
| 210 | bool evb_802_1_qbh; /* Bridge Port Extension */ |
| 211 | bool dcb; |
| 212 | bool fcoe; |
| 213 | bool mfp_mode_1; |
| 214 | bool mgmt_cem; |
| 215 | bool ieee_1588; |
| 216 | bool iwarp; |
| 217 | bool fd; |
| 218 | u32 fd_filters_guaranteed; |
| 219 | u32 fd_filters_best_effort; |
| 220 | bool rss; |
| 221 | u32 rss_table_size; |
| 222 | u32 rss_table_entry_width; |
| 223 | bool led[I40E_HW_CAP_MAX_GPIO]; |
| 224 | bool sdp[I40E_HW_CAP_MAX_GPIO]; |
| 225 | u32 nvm_image_type; |
| 226 | u32 num_flow_director_filters; |
| 227 | u32 num_vfs; |
| 228 | u32 vf_base_id; |
| 229 | u32 num_vsis; |
| 230 | u32 num_rx_qp; |
| 231 | u32 num_tx_qp; |
| 232 | u32 base_queue; |
| 233 | u32 num_msix_vectors; |
| 234 | u32 num_msix_vectors_vf; |
| 235 | u32 led_pin_num; |
| 236 | u32 sdp_pin_num; |
| 237 | u32 mdio_port_num; |
| 238 | u32 mdio_port_mode; |
| 239 | u8 rx_buf_chain_len; |
| 240 | u32 enabled_tcmap; |
| 241 | u32 maxtc; |
| 242 | }; |
| 243 | |
| 244 | struct i40e_mac_info { |
| 245 | enum i40e_mac_type type; |
| 246 | u8 addr[I40E_ETH_LENGTH_OF_ADDRESS]; |
| 247 | u8 perm_addr[I40E_ETH_LENGTH_OF_ADDRESS]; |
| 248 | u8 san_addr[I40E_ETH_LENGTH_OF_ADDRESS]; |
| 249 | u16 max_fcoeq; |
| 250 | }; |
| 251 | |
| 252 | enum i40e_aq_resources_ids { |
| 253 | I40E_NVM_RESOURCE_ID = 1 |
| 254 | }; |
| 255 | |
| 256 | enum i40e_aq_resource_access_type { |
| 257 | I40E_RESOURCE_READ = 1, |
| 258 | I40E_RESOURCE_WRITE |
| 259 | }; |
| 260 | |
| 261 | struct i40e_nvm_info { |
| 262 | u64 hw_semaphore_timeout; /* 2usec global time (GTIME resolution) */ |
| 263 | u64 hw_semaphore_wait; /* - || - */ |
| 264 | u32 timeout; /* [ms] */ |
| 265 | u16 sr_size; /* Shadow RAM size in words */ |
| 266 | bool blank_nvm_mode; /* is NVM empty (no FW present)*/ |
| 267 | u16 version; /* NVM package version */ |
| 268 | u32 eetrack; /* NVM data version */ |
| 269 | }; |
| 270 | |
| 271 | /* PCI bus types */ |
| 272 | enum i40e_bus_type { |
| 273 | i40e_bus_type_unknown = 0, |
| 274 | i40e_bus_type_pci, |
| 275 | i40e_bus_type_pcix, |
| 276 | i40e_bus_type_pci_express, |
| 277 | i40e_bus_type_reserved |
| 278 | }; |
| 279 | |
| 280 | /* PCI bus speeds */ |
| 281 | enum i40e_bus_speed { |
| 282 | i40e_bus_speed_unknown = 0, |
| 283 | i40e_bus_speed_33 = 33, |
| 284 | i40e_bus_speed_66 = 66, |
| 285 | i40e_bus_speed_100 = 100, |
| 286 | i40e_bus_speed_120 = 120, |
| 287 | i40e_bus_speed_133 = 133, |
| 288 | i40e_bus_speed_2500 = 2500, |
| 289 | i40e_bus_speed_5000 = 5000, |
| 290 | i40e_bus_speed_8000 = 8000, |
| 291 | i40e_bus_speed_reserved |
| 292 | }; |
| 293 | |
| 294 | /* PCI bus widths */ |
| 295 | enum i40e_bus_width { |
| 296 | i40e_bus_width_unknown = 0, |
| 297 | i40e_bus_width_pcie_x1 = 1, |
| 298 | i40e_bus_width_pcie_x2 = 2, |
| 299 | i40e_bus_width_pcie_x4 = 4, |
| 300 | i40e_bus_width_pcie_x8 = 8, |
| 301 | i40e_bus_width_32 = 32, |
| 302 | i40e_bus_width_64 = 64, |
| 303 | i40e_bus_width_reserved |
| 304 | }; |
| 305 | |
| 306 | /* Bus parameters */ |
| 307 | struct i40e_bus_info { |
| 308 | enum i40e_bus_speed speed; |
| 309 | enum i40e_bus_width width; |
| 310 | enum i40e_bus_type type; |
| 311 | |
| 312 | u16 func; |
| 313 | u16 device; |
| 314 | u16 lan_id; |
| 315 | }; |
| 316 | |
| 317 | /* Flow control (FC) parameters */ |
| 318 | struct i40e_fc_info { |
| 319 | enum i40e_fc_mode current_mode; /* FC mode in effect */ |
| 320 | enum i40e_fc_mode requested_mode; /* FC mode requested by caller */ |
| 321 | }; |
| 322 | |
| 323 | #define I40E_MAX_TRAFFIC_CLASS 8 |
| 324 | #define I40E_MAX_USER_PRIORITY 8 |
| 325 | #define I40E_DCBX_MAX_APPS 32 |
| 326 | #define I40E_LLDPDU_SIZE 1500 |
| 327 | |
| 328 | /* IEEE 802.1Qaz ETS Configuration data */ |
| 329 | struct i40e_ieee_ets_config { |
| 330 | u8 willing; |
| 331 | u8 cbs; |
| 332 | u8 maxtcs; |
| 333 | u8 prioritytable[I40E_MAX_TRAFFIC_CLASS]; |
| 334 | u8 tcbwtable[I40E_MAX_TRAFFIC_CLASS]; |
| 335 | u8 tsatable[I40E_MAX_TRAFFIC_CLASS]; |
| 336 | }; |
| 337 | |
| 338 | /* IEEE 802.1Qaz ETS Recommendation data */ |
| 339 | struct i40e_ieee_ets_recommend { |
| 340 | u8 prioritytable[I40E_MAX_TRAFFIC_CLASS]; |
| 341 | u8 tcbwtable[I40E_MAX_TRAFFIC_CLASS]; |
| 342 | u8 tsatable[I40E_MAX_TRAFFIC_CLASS]; |
| 343 | }; |
| 344 | |
| 345 | /* IEEE 802.1Qaz PFC Configuration data */ |
| 346 | struct i40e_ieee_pfc_config { |
| 347 | u8 willing; |
| 348 | u8 mbc; |
| 349 | u8 pfccap; |
| 350 | u8 pfcenable; |
| 351 | }; |
| 352 | |
| 353 | /* IEEE 802.1Qaz Application Priority data */ |
| 354 | struct i40e_ieee_app_priority_table { |
| 355 | u8 priority; |
| 356 | u8 selector; |
| 357 | u16 protocolid; |
| 358 | }; |
| 359 | |
| 360 | struct i40e_dcbx_config { |
| 361 | u32 numapps; |
| 362 | struct i40e_ieee_ets_config etscfg; |
| 363 | struct i40e_ieee_ets_recommend etsrec; |
| 364 | struct i40e_ieee_pfc_config pfc; |
| 365 | struct i40e_ieee_app_priority_table app[I40E_DCBX_MAX_APPS]; |
| 366 | }; |
| 367 | |
| 368 | /* Port hardware description */ |
| 369 | struct i40e_hw { |
| 370 | u8 __iomem *hw_addr; |
| 371 | void *back; |
| 372 | |
| 373 | /* function pointer structs */ |
| 374 | struct i40e_phy_info phy; |
| 375 | struct i40e_mac_info mac; |
| 376 | struct i40e_bus_info bus; |
| 377 | struct i40e_nvm_info nvm; |
| 378 | struct i40e_fc_info fc; |
| 379 | |
| 380 | /* pci info */ |
| 381 | u16 device_id; |
| 382 | u16 vendor_id; |
| 383 | u16 subsystem_device_id; |
| 384 | u16 subsystem_vendor_id; |
| 385 | u8 revision_id; |
| 386 | u8 port; |
| 387 | bool adapter_stopped; |
| 388 | |
| 389 | /* capabilities for entire device and PCI func */ |
| 390 | struct i40e_hw_capabilities dev_caps; |
| 391 | struct i40e_hw_capabilities func_caps; |
| 392 | |
| 393 | /* Flow Director shared filter space */ |
| 394 | u16 fdir_shared_filter_count; |
| 395 | |
| 396 | /* device profile info */ |
| 397 | u8 pf_id; |
| 398 | u16 main_vsi_seid; |
| 399 | |
| 400 | /* Closest numa node to the device */ |
| 401 | u16 numa_node; |
| 402 | |
| 403 | /* Admin Queue info */ |
| 404 | struct i40e_adminq_info aq; |
| 405 | |
| 406 | /* HMC info */ |
| 407 | struct i40e_hmc_info hmc; /* HMC info struct */ |
| 408 | |
| 409 | /* LLDP/DCBX Status */ |
| 410 | u16 dcbx_status; |
| 411 | |
| 412 | /* DCBX info */ |
| 413 | struct i40e_dcbx_config local_dcbx_config; |
| 414 | struct i40e_dcbx_config remote_dcbx_config; |
| 415 | |
| 416 | /* debug mask */ |
| 417 | u32 debug_mask; |
| 418 | }; |
| 419 | |
| 420 | struct i40e_driver_version { |
| 421 | u8 major_version; |
| 422 | u8 minor_version; |
| 423 | u8 build_version; |
| 424 | u8 subbuild_version; |
| 425 | }; |
| 426 | |
| 427 | /* RX Descriptors */ |
| 428 | union i40e_16byte_rx_desc { |
| 429 | struct { |
| 430 | __le64 pkt_addr; /* Packet buffer address */ |
| 431 | __le64 hdr_addr; /* Header buffer address */ |
| 432 | } read; |
| 433 | struct { |
| 434 | struct { |
| 435 | struct { |
| 436 | union { |
| 437 | __le16 mirroring_status; |
| 438 | __le16 fcoe_ctx_id; |
| 439 | } mirr_fcoe; |
| 440 | __le16 l2tag1; |
| 441 | } lo_dword; |
| 442 | union { |
| 443 | __le32 rss; /* RSS Hash */ |
| 444 | __le32 fd_id; /* Flow director filter id */ |
| 445 | __le32 fcoe_param; /* FCoE DDP Context id */ |
| 446 | } hi_dword; |
| 447 | } qword0; |
| 448 | struct { |
| 449 | /* ext status/error/pktype/length */ |
| 450 | __le64 status_error_len; |
| 451 | } qword1; |
| 452 | } wb; /* writeback */ |
| 453 | }; |
| 454 | |
| 455 | union i40e_32byte_rx_desc { |
| 456 | struct { |
| 457 | __le64 pkt_addr; /* Packet buffer address */ |
| 458 | __le64 hdr_addr; /* Header buffer address */ |
| 459 | /* bit 0 of hdr_buffer_addr is DD bit */ |
| 460 | __le64 rsvd1; |
| 461 | __le64 rsvd2; |
| 462 | } read; |
| 463 | struct { |
| 464 | struct { |
| 465 | struct { |
| 466 | union { |
| 467 | __le16 mirroring_status; |
| 468 | __le16 fcoe_ctx_id; |
| 469 | } mirr_fcoe; |
| 470 | __le16 l2tag1; |
| 471 | } lo_dword; |
| 472 | union { |
| 473 | __le32 rss; /* RSS Hash */ |
| 474 | __le32 fcoe_param; /* FCoE DDP Context id */ |
| 475 | } hi_dword; |
| 476 | } qword0; |
| 477 | struct { |
| 478 | /* status/error/pktype/length */ |
| 479 | __le64 status_error_len; |
| 480 | } qword1; |
| 481 | struct { |
| 482 | __le16 ext_status; /* extended status */ |
| 483 | __le16 rsvd; |
| 484 | __le16 l2tag2_1; |
| 485 | __le16 l2tag2_2; |
| 486 | } qword2; |
| 487 | struct { |
| 488 | union { |
| 489 | __le32 flex_bytes_lo; |
| 490 | __le32 pe_status; |
| 491 | } lo_dword; |
| 492 | union { |
| 493 | __le32 flex_bytes_hi; |
| 494 | __le32 fd_id; |
| 495 | } hi_dword; |
| 496 | } qword3; |
| 497 | } wb; /* writeback */ |
| 498 | }; |
| 499 | |
| 500 | #define I40E_RXD_QW1_STATUS_SHIFT 0 |
| 501 | #define I40E_RXD_QW1_STATUS_MASK (0x7FFFUL << I40E_RXD_QW1_STATUS_SHIFT) |
| 502 | |
| 503 | enum i40e_rx_desc_status_bits { |
| 504 | /* Note: These are predefined bit offsets */ |
| 505 | I40E_RX_DESC_STATUS_DD_SHIFT = 0, |
| 506 | I40E_RX_DESC_STATUS_EOF_SHIFT = 1, |
| 507 | I40E_RX_DESC_STATUS_L2TAG1P_SHIFT = 2, |
| 508 | I40E_RX_DESC_STATUS_L3L4P_SHIFT = 3, |
| 509 | I40E_RX_DESC_STATUS_CRCP_SHIFT = 4, |
Jacob Keller | dcf8f55 | 2013-11-20 10:02:48 +0000 | [diff] [blame] | 510 | I40E_RX_DESC_STATUS_TSYNINDX_SHIFT = 5, /* 2 BITS */ |
| 511 | I40E_RX_DESC_STATUS_TSYNVALID_SHIFT = 7, |
Jesse Brandeburg | 56a62fc | 2013-09-11 08:40:12 +0000 | [diff] [blame] | 512 | I40E_RX_DESC_STATUS_PIF_SHIFT = 8, |
| 513 | I40E_RX_DESC_STATUS_UMBCAST_SHIFT = 9, /* 2 BITS */ |
| 514 | I40E_RX_DESC_STATUS_FLM_SHIFT = 11, |
| 515 | I40E_RX_DESC_STATUS_FLTSTAT_SHIFT = 12, /* 2 BITS */ |
| 516 | I40E_RX_DESC_STATUS_LPBK_SHIFT = 14 |
| 517 | }; |
| 518 | |
| 519 | #define I40E_RXD_QW1_STATUS_TSYNINDX_SHIFT I40E_RX_DESC_STATUS_TSYNINDX_SHIFT |
Jacob Keller | dcf8f55 | 2013-11-20 10:02:48 +0000 | [diff] [blame] | 520 | #define I40E_RXD_QW1_STATUS_TSYNINDX_MASK (0x3UL << \ |
Jesse Brandeburg | 56a62fc | 2013-09-11 08:40:12 +0000 | [diff] [blame] | 521 | I40E_RXD_QW1_STATUS_TSYNINDX_SHIFT) |
| 522 | |
Jacob Keller | dcf8f55 | 2013-11-20 10:02:48 +0000 | [diff] [blame] | 523 | #define I40E_RXD_QW1_STATUS_TSYNVALID_SHIFT I40E_RX_DESC_STATUS_TSYNVALID_SHIFT |
| 524 | #define I40E_RXD_QW1_STATUS_TSYNVALID_MASK (0x1UL << \ |
| 525 | I40E_RXD_QW1_STATUS_TSYNVALID_SHIFT) |
| 526 | |
Jesse Brandeburg | 56a62fc | 2013-09-11 08:40:12 +0000 | [diff] [blame] | 527 | enum i40e_rx_desc_fltstat_values { |
| 528 | I40E_RX_DESC_FLTSTAT_NO_DATA = 0, |
| 529 | I40E_RX_DESC_FLTSTAT_RSV_FD_ID = 1, /* 16byte desc? FD_ID : RSV */ |
| 530 | I40E_RX_DESC_FLTSTAT_RSV = 2, |
| 531 | I40E_RX_DESC_FLTSTAT_RSS_HASH = 3, |
| 532 | }; |
| 533 | |
| 534 | #define I40E_RXD_QW1_ERROR_SHIFT 19 |
| 535 | #define I40E_RXD_QW1_ERROR_MASK (0xFFUL << I40E_RXD_QW1_ERROR_SHIFT) |
| 536 | |
| 537 | enum i40e_rx_desc_error_bits { |
| 538 | /* Note: These are predefined bit offsets */ |
| 539 | I40E_RX_DESC_ERROR_RXE_SHIFT = 0, |
| 540 | I40E_RX_DESC_ERROR_RECIPE_SHIFT = 1, |
| 541 | I40E_RX_DESC_ERROR_HBO_SHIFT = 2, |
| 542 | I40E_RX_DESC_ERROR_L3L4E_SHIFT = 3, /* 3 BITS */ |
| 543 | I40E_RX_DESC_ERROR_IPE_SHIFT = 3, |
| 544 | I40E_RX_DESC_ERROR_L4E_SHIFT = 4, |
| 545 | I40E_RX_DESC_ERROR_EIPE_SHIFT = 5, |
| 546 | I40E_RX_DESC_ERROR_OVERSIZE_SHIFT = 6 |
| 547 | }; |
| 548 | |
| 549 | enum i40e_rx_desc_error_l3l4e_fcoe_masks { |
| 550 | I40E_RX_DESC_ERROR_L3L4E_NONE = 0, |
| 551 | I40E_RX_DESC_ERROR_L3L4E_PROT = 1, |
| 552 | I40E_RX_DESC_ERROR_L3L4E_FC = 2, |
| 553 | I40E_RX_DESC_ERROR_L3L4E_DMAC_ERR = 3, |
| 554 | I40E_RX_DESC_ERROR_L3L4E_DMAC_WARN = 4 |
| 555 | }; |
| 556 | |
| 557 | #define I40E_RXD_QW1_PTYPE_SHIFT 30 |
| 558 | #define I40E_RXD_QW1_PTYPE_MASK (0xFFULL << I40E_RXD_QW1_PTYPE_SHIFT) |
| 559 | |
| 560 | /* Packet type non-ip values */ |
| 561 | enum i40e_rx_l2_ptype { |
| 562 | I40E_RX_PTYPE_L2_RESERVED = 0, |
| 563 | I40E_RX_PTYPE_L2_MAC_PAY2 = 1, |
| 564 | I40E_RX_PTYPE_L2_TIMESYNC_PAY2 = 2, |
| 565 | I40E_RX_PTYPE_L2_FIP_PAY2 = 3, |
| 566 | I40E_RX_PTYPE_L2_OUI_PAY2 = 4, |
| 567 | I40E_RX_PTYPE_L2_MACCNTRL_PAY2 = 5, |
| 568 | I40E_RX_PTYPE_L2_LLDP_PAY2 = 6, |
| 569 | I40E_RX_PTYPE_L2_ECP_PAY2 = 7, |
| 570 | I40E_RX_PTYPE_L2_EVB_PAY2 = 8, |
| 571 | I40E_RX_PTYPE_L2_QCN_PAY2 = 9, |
| 572 | I40E_RX_PTYPE_L2_EAPOL_PAY2 = 10, |
| 573 | I40E_RX_PTYPE_L2_ARP = 11, |
| 574 | I40E_RX_PTYPE_L2_FCOE_PAY3 = 12, |
| 575 | I40E_RX_PTYPE_L2_FCOE_FCDATA_PAY3 = 13, |
| 576 | I40E_RX_PTYPE_L2_FCOE_FCRDY_PAY3 = 14, |
| 577 | I40E_RX_PTYPE_L2_FCOE_FCRSP_PAY3 = 15, |
| 578 | I40E_RX_PTYPE_L2_FCOE_FCOTHER_PA = 16, |
| 579 | I40E_RX_PTYPE_L2_FCOE_VFT_PAY3 = 17, |
| 580 | I40E_RX_PTYPE_L2_FCOE_VFT_FCDATA = 18, |
| 581 | I40E_RX_PTYPE_L2_FCOE_VFT_FCRDY = 19, |
| 582 | I40E_RX_PTYPE_L2_FCOE_VFT_FCRSP = 20, |
| 583 | I40E_RX_PTYPE_L2_FCOE_VFT_FCOTHER = 21 |
| 584 | }; |
| 585 | |
| 586 | struct i40e_rx_ptype_decoded { |
| 587 | u32 ptype:8; |
| 588 | u32 known:1; |
| 589 | u32 outer_ip:1; |
| 590 | u32 outer_ip_ver:1; |
| 591 | u32 outer_frag:1; |
| 592 | u32 tunnel_type:3; |
| 593 | u32 tunnel_end_prot:2; |
| 594 | u32 tunnel_end_frag:1; |
| 595 | u32 inner_prot:4; |
| 596 | u32 payload_layer:3; |
| 597 | }; |
| 598 | |
| 599 | enum i40e_rx_ptype_outer_ip { |
| 600 | I40E_RX_PTYPE_OUTER_L2 = 0, |
| 601 | I40E_RX_PTYPE_OUTER_IP = 1 |
| 602 | }; |
| 603 | |
| 604 | enum i40e_rx_ptype_outer_ip_ver { |
| 605 | I40E_RX_PTYPE_OUTER_NONE = 0, |
| 606 | I40E_RX_PTYPE_OUTER_IPV4 = 0, |
| 607 | I40E_RX_PTYPE_OUTER_IPV6 = 1 |
| 608 | }; |
| 609 | |
| 610 | enum i40e_rx_ptype_outer_fragmented { |
| 611 | I40E_RX_PTYPE_NOT_FRAG = 0, |
| 612 | I40E_RX_PTYPE_FRAG = 1 |
| 613 | }; |
| 614 | |
| 615 | enum i40e_rx_ptype_tunnel_type { |
| 616 | I40E_RX_PTYPE_TUNNEL_NONE = 0, |
| 617 | I40E_RX_PTYPE_TUNNEL_IP_IP = 1, |
| 618 | I40E_RX_PTYPE_TUNNEL_IP_GRENAT = 2, |
| 619 | I40E_RX_PTYPE_TUNNEL_IP_GRENAT_MAC = 3, |
| 620 | I40E_RX_PTYPE_TUNNEL_IP_GRENAT_MAC_VLAN = 4, |
| 621 | }; |
| 622 | |
| 623 | enum i40e_rx_ptype_tunnel_end_prot { |
| 624 | I40E_RX_PTYPE_TUNNEL_END_NONE = 0, |
| 625 | I40E_RX_PTYPE_TUNNEL_END_IPV4 = 1, |
| 626 | I40E_RX_PTYPE_TUNNEL_END_IPV6 = 2, |
| 627 | }; |
| 628 | |
| 629 | enum i40e_rx_ptype_inner_prot { |
| 630 | I40E_RX_PTYPE_INNER_PROT_NONE = 0, |
| 631 | I40E_RX_PTYPE_INNER_PROT_UDP = 1, |
| 632 | I40E_RX_PTYPE_INNER_PROT_TCP = 2, |
| 633 | I40E_RX_PTYPE_INNER_PROT_SCTP = 3, |
| 634 | I40E_RX_PTYPE_INNER_PROT_ICMP = 4, |
| 635 | I40E_RX_PTYPE_INNER_PROT_TIMESYNC = 5 |
| 636 | }; |
| 637 | |
| 638 | enum i40e_rx_ptype_payload_layer { |
| 639 | I40E_RX_PTYPE_PAYLOAD_LAYER_NONE = 0, |
| 640 | I40E_RX_PTYPE_PAYLOAD_LAYER_PAY2 = 1, |
| 641 | I40E_RX_PTYPE_PAYLOAD_LAYER_PAY3 = 2, |
| 642 | I40E_RX_PTYPE_PAYLOAD_LAYER_PAY4 = 3, |
| 643 | }; |
| 644 | |
| 645 | #define I40E_RXD_QW1_LENGTH_PBUF_SHIFT 38 |
| 646 | #define I40E_RXD_QW1_LENGTH_PBUF_MASK (0x3FFFULL << \ |
| 647 | I40E_RXD_QW1_LENGTH_PBUF_SHIFT) |
| 648 | |
| 649 | #define I40E_RXD_QW1_LENGTH_HBUF_SHIFT 52 |
| 650 | #define I40E_RXD_QW1_LENGTH_HBUF_MASK (0x7FFULL << \ |
| 651 | I40E_RXD_QW1_LENGTH_HBUF_SHIFT) |
| 652 | |
| 653 | #define I40E_RXD_QW1_LENGTH_SPH_SHIFT 63 |
| 654 | #define I40E_RXD_QW1_LENGTH_SPH_MASK (0x1ULL << \ |
| 655 | I40E_RXD_QW1_LENGTH_SPH_SHIFT) |
| 656 | |
| 657 | enum i40e_rx_desc_ext_status_bits { |
| 658 | /* Note: These are predefined bit offsets */ |
| 659 | I40E_RX_DESC_EXT_STATUS_L2TAG2P_SHIFT = 0, |
| 660 | I40E_RX_DESC_EXT_STATUS_L2TAG3P_SHIFT = 1, |
| 661 | I40E_RX_DESC_EXT_STATUS_FLEXBL_SHIFT = 2, /* 2 BITS */ |
| 662 | I40E_RX_DESC_EXT_STATUS_FLEXBH_SHIFT = 4, /* 2 BITS */ |
| 663 | I40E_RX_DESC_EXT_STATUS_FTYPE_SHIFT = 6, /* 3 BITS */ |
| 664 | I40E_RX_DESC_EXT_STATUS_FDLONGB_SHIFT = 9, |
| 665 | I40E_RX_DESC_EXT_STATUS_FCOELONGB_SHIFT = 10, |
| 666 | I40E_RX_DESC_EXT_STATUS_PELONGB_SHIFT = 11, |
| 667 | }; |
| 668 | |
| 669 | enum i40e_rx_desc_pe_status_bits { |
| 670 | /* Note: These are predefined bit offsets */ |
| 671 | I40E_RX_DESC_PE_STATUS_QPID_SHIFT = 0, /* 18 BITS */ |
| 672 | I40E_RX_DESC_PE_STATUS_L4PORT_SHIFT = 0, /* 16 BITS */ |
| 673 | I40E_RX_DESC_PE_STATUS_IPINDEX_SHIFT = 16, /* 8 BITS */ |
| 674 | I40E_RX_DESC_PE_STATUS_QPIDHIT_SHIFT = 24, |
| 675 | I40E_RX_DESC_PE_STATUS_APBVTHIT_SHIFT = 25, |
| 676 | I40E_RX_DESC_PE_STATUS_PORTV_SHIFT = 26, |
| 677 | I40E_RX_DESC_PE_STATUS_URG_SHIFT = 27, |
| 678 | I40E_RX_DESC_PE_STATUS_IPFRAG_SHIFT = 28, |
| 679 | I40E_RX_DESC_PE_STATUS_IPOPT_SHIFT = 29 |
| 680 | }; |
| 681 | |
| 682 | #define I40E_RX_PROG_STATUS_DESC_LENGTH_SHIFT 38 |
| 683 | #define I40E_RX_PROG_STATUS_DESC_LENGTH 0x2000000 |
| 684 | |
| 685 | #define I40E_RX_PROG_STATUS_DESC_QW1_PROGID_SHIFT 2 |
| 686 | #define I40E_RX_PROG_STATUS_DESC_QW1_PROGID_MASK (0x7UL << \ |
| 687 | I40E_RX_PROG_STATUS_DESC_QW1_PROGID_SHIFT) |
| 688 | |
| 689 | #define I40E_RX_PROG_STATUS_DESC_QW1_ERROR_SHIFT 19 |
| 690 | #define I40E_RX_PROG_STATUS_DESC_QW1_ERROR_MASK (0x3FUL << \ |
| 691 | I40E_RX_PROG_STATUS_DESC_QW1_ERROR_SHIFT) |
| 692 | |
| 693 | enum i40e_rx_prog_status_desc_status_bits { |
| 694 | /* Note: These are predefined bit offsets */ |
| 695 | I40E_RX_PROG_STATUS_DESC_DD_SHIFT = 0, |
| 696 | I40E_RX_PROG_STATUS_DESC_PROG_ID_SHIFT = 2 /* 3 BITS */ |
| 697 | }; |
| 698 | |
| 699 | enum i40e_rx_prog_status_desc_prog_id_masks { |
| 700 | I40E_RX_PROG_STATUS_DESC_FD_FILTER_STATUS = 1, |
| 701 | I40E_RX_PROG_STATUS_DESC_FCOE_CTXT_PROG_STATUS = 2, |
| 702 | I40E_RX_PROG_STATUS_DESC_FCOE_CTXT_INVL_STATUS = 4, |
| 703 | }; |
| 704 | |
| 705 | enum i40e_rx_prog_status_desc_error_bits { |
| 706 | /* Note: These are predefined bit offsets */ |
| 707 | I40E_RX_PROG_STATUS_DESC_FD_TBL_FULL_SHIFT = 0, |
| 708 | I40E_RX_PROG_STATUS_DESC_NO_FD_QUOTA_SHIFT = 1, |
| 709 | I40E_RX_PROG_STATUS_DESC_FCOE_TBL_FULL_SHIFT = 2, |
| 710 | I40E_RX_PROG_STATUS_DESC_FCOE_CONFLICT_SHIFT = 3 |
| 711 | }; |
| 712 | |
| 713 | /* TX Descriptor */ |
| 714 | struct i40e_tx_desc { |
| 715 | __le64 buffer_addr; /* Address of descriptor's data buf */ |
| 716 | __le64 cmd_type_offset_bsz; |
| 717 | }; |
| 718 | |
| 719 | #define I40E_TXD_QW1_DTYPE_SHIFT 0 |
| 720 | #define I40E_TXD_QW1_DTYPE_MASK (0xFUL << I40E_TXD_QW1_DTYPE_SHIFT) |
| 721 | |
| 722 | enum i40e_tx_desc_dtype_value { |
| 723 | I40E_TX_DESC_DTYPE_DATA = 0x0, |
| 724 | I40E_TX_DESC_DTYPE_NOP = 0x1, /* same as Context desc */ |
| 725 | I40E_TX_DESC_DTYPE_CONTEXT = 0x1, |
| 726 | I40E_TX_DESC_DTYPE_FCOE_CTX = 0x2, |
| 727 | I40E_TX_DESC_DTYPE_FILTER_PROG = 0x8, |
| 728 | I40E_TX_DESC_DTYPE_DDP_CTX = 0x9, |
| 729 | I40E_TX_DESC_DTYPE_FLEX_DATA = 0xB, |
| 730 | I40E_TX_DESC_DTYPE_FLEX_CTX_1 = 0xC, |
| 731 | I40E_TX_DESC_DTYPE_FLEX_CTX_2 = 0xD, |
| 732 | I40E_TX_DESC_DTYPE_DESC_DONE = 0xF |
| 733 | }; |
| 734 | |
| 735 | #define I40E_TXD_QW1_CMD_SHIFT 4 |
| 736 | #define I40E_TXD_QW1_CMD_MASK (0x3FFUL << I40E_TXD_QW1_CMD_SHIFT) |
| 737 | |
| 738 | enum i40e_tx_desc_cmd_bits { |
| 739 | I40E_TX_DESC_CMD_EOP = 0x0001, |
| 740 | I40E_TX_DESC_CMD_RS = 0x0002, |
| 741 | I40E_TX_DESC_CMD_ICRC = 0x0004, |
| 742 | I40E_TX_DESC_CMD_IL2TAG1 = 0x0008, |
| 743 | I40E_TX_DESC_CMD_DUMMY = 0x0010, |
| 744 | I40E_TX_DESC_CMD_IIPT_NONIP = 0x0000, /* 2 BITS */ |
| 745 | I40E_TX_DESC_CMD_IIPT_IPV6 = 0x0020, /* 2 BITS */ |
| 746 | I40E_TX_DESC_CMD_IIPT_IPV4 = 0x0040, /* 2 BITS */ |
| 747 | I40E_TX_DESC_CMD_IIPT_IPV4_CSUM = 0x0060, /* 2 BITS */ |
| 748 | I40E_TX_DESC_CMD_FCOET = 0x0080, |
| 749 | I40E_TX_DESC_CMD_L4T_EOFT_UNK = 0x0000, /* 2 BITS */ |
| 750 | I40E_TX_DESC_CMD_L4T_EOFT_TCP = 0x0100, /* 2 BITS */ |
| 751 | I40E_TX_DESC_CMD_L4T_EOFT_SCTP = 0x0200, /* 2 BITS */ |
| 752 | I40E_TX_DESC_CMD_L4T_EOFT_UDP = 0x0300, /* 2 BITS */ |
| 753 | I40E_TX_DESC_CMD_L4T_EOFT_EOF_N = 0x0000, /* 2 BITS */ |
| 754 | I40E_TX_DESC_CMD_L4T_EOFT_EOF_T = 0x0100, /* 2 BITS */ |
| 755 | I40E_TX_DESC_CMD_L4T_EOFT_EOF_NI = 0x0200, /* 2 BITS */ |
| 756 | I40E_TX_DESC_CMD_L4T_EOFT_EOF_A = 0x0300, /* 2 BITS */ |
| 757 | }; |
| 758 | |
| 759 | #define I40E_TXD_QW1_OFFSET_SHIFT 16 |
| 760 | #define I40E_TXD_QW1_OFFSET_MASK (0x3FFFFULL << \ |
| 761 | I40E_TXD_QW1_OFFSET_SHIFT) |
| 762 | |
| 763 | enum i40e_tx_desc_length_fields { |
| 764 | /* Note: These are predefined bit offsets */ |
| 765 | I40E_TX_DESC_LENGTH_MACLEN_SHIFT = 0, /* 7 BITS */ |
| 766 | I40E_TX_DESC_LENGTH_IPLEN_SHIFT = 7, /* 7 BITS */ |
| 767 | I40E_TX_DESC_LENGTH_L4_FC_LEN_SHIFT = 14 /* 4 BITS */ |
| 768 | }; |
| 769 | |
| 770 | #define I40E_TXD_QW1_TX_BUF_SZ_SHIFT 34 |
| 771 | #define I40E_TXD_QW1_TX_BUF_SZ_MASK (0x3FFFULL << \ |
| 772 | I40E_TXD_QW1_TX_BUF_SZ_SHIFT) |
| 773 | |
| 774 | #define I40E_TXD_QW1_L2TAG1_SHIFT 48 |
| 775 | #define I40E_TXD_QW1_L2TAG1_MASK (0xFFFFULL << I40E_TXD_QW1_L2TAG1_SHIFT) |
| 776 | |
| 777 | /* Context descriptors */ |
| 778 | struct i40e_tx_context_desc { |
| 779 | __le32 tunneling_params; |
| 780 | __le16 l2tag2; |
| 781 | __le16 rsvd; |
| 782 | __le64 type_cmd_tso_mss; |
| 783 | }; |
| 784 | |
| 785 | #define I40E_TXD_CTX_QW1_DTYPE_SHIFT 0 |
| 786 | #define I40E_TXD_CTX_QW1_DTYPE_MASK (0xFUL << I40E_TXD_CTX_QW1_DTYPE_SHIFT) |
| 787 | |
| 788 | #define I40E_TXD_CTX_QW1_CMD_SHIFT 4 |
| 789 | #define I40E_TXD_CTX_QW1_CMD_MASK (0xFFFFUL << I40E_TXD_CTX_QW1_CMD_SHIFT) |
| 790 | |
| 791 | enum i40e_tx_ctx_desc_cmd_bits { |
| 792 | I40E_TX_CTX_DESC_TSO = 0x01, |
| 793 | I40E_TX_CTX_DESC_TSYN = 0x02, |
| 794 | I40E_TX_CTX_DESC_IL2TAG2 = 0x04, |
| 795 | I40E_TX_CTX_DESC_IL2TAG2_IL2H = 0x08, |
| 796 | I40E_TX_CTX_DESC_SWTCH_NOTAG = 0x00, |
| 797 | I40E_TX_CTX_DESC_SWTCH_UPLINK = 0x10, |
| 798 | I40E_TX_CTX_DESC_SWTCH_LOCAL = 0x20, |
| 799 | I40E_TX_CTX_DESC_SWTCH_VSI = 0x30, |
| 800 | I40E_TX_CTX_DESC_SWPE = 0x40 |
| 801 | }; |
| 802 | |
| 803 | #define I40E_TXD_CTX_QW1_TSO_LEN_SHIFT 30 |
| 804 | #define I40E_TXD_CTX_QW1_TSO_LEN_MASK (0x3FFFFULL << \ |
| 805 | I40E_TXD_CTX_QW1_TSO_LEN_SHIFT) |
| 806 | |
| 807 | #define I40E_TXD_CTX_QW1_MSS_SHIFT 50 |
| 808 | #define I40E_TXD_CTX_QW1_MSS_MASK (0x3FFFULL << \ |
| 809 | I40E_TXD_CTX_QW1_MSS_SHIFT) |
| 810 | |
| 811 | #define I40E_TXD_CTX_QW1_VSI_SHIFT 50 |
| 812 | #define I40E_TXD_CTX_QW1_VSI_MASK (0x1FFULL << I40E_TXD_CTX_QW1_VSI_SHIFT) |
| 813 | |
| 814 | #define I40E_TXD_CTX_QW0_EXT_IP_SHIFT 0 |
| 815 | #define I40E_TXD_CTX_QW0_EXT_IP_MASK (0x3ULL << \ |
| 816 | I40E_TXD_CTX_QW0_EXT_IP_SHIFT) |
| 817 | |
| 818 | enum i40e_tx_ctx_desc_eipt_offload { |
| 819 | I40E_TX_CTX_EXT_IP_NONE = 0x0, |
| 820 | I40E_TX_CTX_EXT_IP_IPV6 = 0x1, |
| 821 | I40E_TX_CTX_EXT_IP_IPV4_NO_CSUM = 0x2, |
| 822 | I40E_TX_CTX_EXT_IP_IPV4 = 0x3 |
| 823 | }; |
| 824 | |
| 825 | #define I40E_TXD_CTX_QW0_EXT_IPLEN_SHIFT 2 |
| 826 | #define I40E_TXD_CTX_QW0_EXT_IPLEN_MASK (0x3FULL << \ |
| 827 | I40E_TXD_CTX_QW0_EXT_IPLEN_SHIFT) |
| 828 | |
| 829 | #define I40E_TXD_CTX_QW0_NATT_SHIFT 9 |
| 830 | #define I40E_TXD_CTX_QW0_NATT_MASK (0x3ULL << I40E_TXD_CTX_QW0_NATT_SHIFT) |
| 831 | |
| 832 | #define I40E_TXD_CTX_UDP_TUNNELING (0x1ULL << I40E_TXD_CTX_QW0_NATT_SHIFT) |
| 833 | #define I40E_TXD_CTX_GRE_TUNNELING (0x2ULL << I40E_TXD_CTX_QW0_NATT_SHIFT) |
| 834 | |
| 835 | #define I40E_TXD_CTX_QW0_EIP_NOINC_SHIFT 11 |
| 836 | #define I40E_TXD_CTX_QW0_EIP_NOINC_MASK (0x1ULL << \ |
| 837 | I40E_TXD_CTX_QW0_EIP_NOINC_SHIFT) |
| 838 | |
| 839 | #define I40E_TXD_CTX_EIP_NOINC_IPID_CONST I40E_TXD_CTX_QW0_EIP_NOINC_MASK |
| 840 | |
| 841 | #define I40E_TXD_CTX_QW0_NATLEN_SHIFT 12 |
| 842 | #define I40E_TXD_CTX_QW0_NATLEN_MASK (0X7FULL << \ |
| 843 | I40E_TXD_CTX_QW0_NATLEN_SHIFT) |
| 844 | |
| 845 | #define I40E_TXD_CTX_QW0_DECTTL_SHIFT 19 |
| 846 | #define I40E_TXD_CTX_QW0_DECTTL_MASK (0xFULL << \ |
| 847 | I40E_TXD_CTX_QW0_DECTTL_SHIFT) |
| 848 | |
| 849 | struct i40e_filter_program_desc { |
| 850 | __le32 qindex_flex_ptype_vsi; |
| 851 | __le32 rsvd; |
| 852 | __le32 dtype_cmd_cntindex; |
| 853 | __le32 fd_id; |
| 854 | }; |
| 855 | #define I40E_TXD_FLTR_QW0_QINDEX_SHIFT 0 |
| 856 | #define I40E_TXD_FLTR_QW0_QINDEX_MASK (0x7FFUL << \ |
| 857 | I40E_TXD_FLTR_QW0_QINDEX_SHIFT) |
| 858 | #define I40E_TXD_FLTR_QW0_FLEXOFF_SHIFT 11 |
| 859 | #define I40E_TXD_FLTR_QW0_FLEXOFF_MASK (0x7UL << \ |
| 860 | I40E_TXD_FLTR_QW0_FLEXOFF_SHIFT) |
| 861 | #define I40E_TXD_FLTR_QW0_PCTYPE_SHIFT 17 |
| 862 | #define I40E_TXD_FLTR_QW0_PCTYPE_MASK (0x3FUL << \ |
| 863 | I40E_TXD_FLTR_QW0_PCTYPE_SHIFT) |
| 864 | |
| 865 | /* Packet Classifier Types for filters */ |
| 866 | enum i40e_filter_pctype { |
Anjali Singhai Jain | 91612c3 | 2013-11-16 10:00:47 +0000 | [diff] [blame] | 867 | /* Note: Values 0-28 are reserved for future use */ |
Jesse Brandeburg | 56a62fc | 2013-09-11 08:40:12 +0000 | [diff] [blame] | 868 | I40E_FILTER_PCTYPE_NONF_UNICAST_IPV4_UDP = 29, |
| 869 | I40E_FILTER_PCTYPE_NONF_MULTICAST_IPV4_UDP = 30, |
| 870 | I40E_FILTER_PCTYPE_NONF_IPV4_UDP = 31, |
| 871 | I40E_FILTER_PCTYPE_NONF_IPV4_TCP_SYN = 32, |
| 872 | I40E_FILTER_PCTYPE_NONF_IPV4_TCP = 33, |
| 873 | I40E_FILTER_PCTYPE_NONF_IPV4_SCTP = 34, |
| 874 | I40E_FILTER_PCTYPE_NONF_IPV4_OTHER = 35, |
| 875 | I40E_FILTER_PCTYPE_FRAG_IPV4 = 36, |
Anjali Singhai Jain | 91612c3 | 2013-11-16 10:00:47 +0000 | [diff] [blame] | 876 | /* Note: Values 37-38 are reserved for future use */ |
Jesse Brandeburg | 56a62fc | 2013-09-11 08:40:12 +0000 | [diff] [blame] | 877 | I40E_FILTER_PCTYPE_NONF_UNICAST_IPV6_UDP = 39, |
| 878 | I40E_FILTER_PCTYPE_NONF_MULTICAST_IPV6_UDP = 40, |
| 879 | I40E_FILTER_PCTYPE_NONF_IPV6_UDP = 41, |
| 880 | I40E_FILTER_PCTYPE_NONF_IPV6_TCP_SYN = 42, |
| 881 | I40E_FILTER_PCTYPE_NONF_IPV6_TCP = 43, |
| 882 | I40E_FILTER_PCTYPE_NONF_IPV6_SCTP = 44, |
| 883 | I40E_FILTER_PCTYPE_NONF_IPV6_OTHER = 45, |
| 884 | I40E_FILTER_PCTYPE_FRAG_IPV6 = 46, |
| 885 | /* Note: Value 47 is reserved for future use */ |
| 886 | I40E_FILTER_PCTYPE_FCOE_OX = 48, |
| 887 | I40E_FILTER_PCTYPE_FCOE_RX = 49, |
Anjali Singhai Jain | 91612c3 | 2013-11-16 10:00:47 +0000 | [diff] [blame] | 888 | I40E_FILTER_PCTYPE_FCOE_OTHER = 50, |
| 889 | /* Note: Values 51-62 are reserved for future use */ |
Jesse Brandeburg | 56a62fc | 2013-09-11 08:40:12 +0000 | [diff] [blame] | 890 | I40E_FILTER_PCTYPE_L2_PAYLOAD = 63, |
| 891 | }; |
| 892 | |
| 893 | enum i40e_filter_program_desc_dest { |
| 894 | I40E_FILTER_PROGRAM_DESC_DEST_DROP_PACKET = 0x0, |
| 895 | I40E_FILTER_PROGRAM_DESC_DEST_DIRECT_PACKET_QINDEX = 0x1, |
| 896 | I40E_FILTER_PROGRAM_DESC_DEST_DIRECT_PACKET_OTHER = 0x2, |
| 897 | }; |
| 898 | |
| 899 | enum i40e_filter_program_desc_fd_status { |
| 900 | I40E_FILTER_PROGRAM_DESC_FD_STATUS_NONE = 0x0, |
| 901 | I40E_FILTER_PROGRAM_DESC_FD_STATUS_FD_ID = 0x1, |
| 902 | I40E_FILTER_PROGRAM_DESC_FD_STATUS_FD_ID_4FLEX_BYTES = 0x2, |
| 903 | I40E_FILTER_PROGRAM_DESC_FD_STATUS_8FLEX_BYTES = 0x3, |
| 904 | }; |
| 905 | |
| 906 | #define I40E_TXD_FLTR_QW0_DEST_VSI_SHIFT 23 |
| 907 | #define I40E_TXD_FLTR_QW0_DEST_VSI_MASK (0x1FFUL << \ |
| 908 | I40E_TXD_FLTR_QW0_DEST_VSI_SHIFT) |
| 909 | |
| 910 | #define I40E_TXD_FLTR_QW1_CMD_SHIFT 4 |
| 911 | #define I40E_TXD_FLTR_QW1_CMD_MASK (0xFFFFULL << \ |
| 912 | I40E_TXD_FLTR_QW1_CMD_SHIFT) |
| 913 | |
| 914 | #define I40E_TXD_FLTR_QW1_PCMD_SHIFT (0x0ULL + I40E_TXD_FLTR_QW1_CMD_SHIFT) |
| 915 | #define I40E_TXD_FLTR_QW1_PCMD_MASK (0x7ULL << I40E_TXD_FLTR_QW1_PCMD_SHIFT) |
| 916 | |
| 917 | enum i40e_filter_program_desc_pcmd { |
| 918 | I40E_FILTER_PROGRAM_DESC_PCMD_ADD_UPDATE = 0x1, |
| 919 | I40E_FILTER_PROGRAM_DESC_PCMD_REMOVE = 0x2, |
| 920 | }; |
| 921 | |
| 922 | #define I40E_TXD_FLTR_QW1_DEST_SHIFT (0x3ULL + I40E_TXD_FLTR_QW1_CMD_SHIFT) |
| 923 | #define I40E_TXD_FLTR_QW1_DEST_MASK (0x3ULL << I40E_TXD_FLTR_QW1_DEST_SHIFT) |
| 924 | |
| 925 | #define I40E_TXD_FLTR_QW1_CNT_ENA_SHIFT (0x7ULL + I40E_TXD_FLTR_QW1_CMD_SHIFT) |
| 926 | #define I40E_TXD_FLTR_QW1_CNT_ENA_MASK (0x1ULL << \ |
| 927 | I40E_TXD_FLTR_QW1_CNT_ENA_SHIFT) |
| 928 | |
| 929 | #define I40E_TXD_FLTR_QW1_FD_STATUS_SHIFT (0x9ULL + \ |
| 930 | I40E_TXD_FLTR_QW1_CMD_SHIFT) |
| 931 | #define I40E_TXD_FLTR_QW1_FD_STATUS_MASK (0x3ULL << \ |
| 932 | I40E_TXD_FLTR_QW1_FD_STATUS_SHIFT) |
| 933 | |
| 934 | #define I40E_TXD_FLTR_QW1_CNTINDEX_SHIFT 20 |
| 935 | #define I40E_TXD_FLTR_QW1_CNTINDEX_MASK (0x1FFUL << \ |
| 936 | I40E_TXD_FLTR_QW1_CNTINDEX_SHIFT) |
| 937 | |
| 938 | enum i40e_filter_type { |
| 939 | I40E_FLOW_DIRECTOR_FLTR = 0, |
| 940 | I40E_PE_QUAD_HASH_FLTR = 1, |
| 941 | I40E_ETHERTYPE_FLTR, |
| 942 | I40E_FCOE_CTX_FLTR, |
| 943 | I40E_MAC_VLAN_FLTR, |
| 944 | I40E_HASH_FLTR |
| 945 | }; |
| 946 | |
| 947 | struct i40e_vsi_context { |
| 948 | u16 seid; |
| 949 | u16 uplink_seid; |
| 950 | u16 vsi_number; |
| 951 | u16 vsis_allocated; |
| 952 | u16 vsis_unallocated; |
| 953 | u16 flags; |
| 954 | u8 pf_num; |
| 955 | u8 vf_num; |
| 956 | u8 connection_type; |
| 957 | struct i40e_aqc_vsi_properties_data info; |
| 958 | }; |
| 959 | |
| 960 | /* Statistics collected by each port, VSI, VEB, and S-channel */ |
| 961 | struct i40e_eth_stats { |
| 962 | u64 rx_bytes; /* gorc */ |
| 963 | u64 rx_unicast; /* uprc */ |
| 964 | u64 rx_multicast; /* mprc */ |
| 965 | u64 rx_broadcast; /* bprc */ |
| 966 | u64 rx_discards; /* rdpc */ |
| 967 | u64 rx_errors; /* repc */ |
| 968 | u64 rx_missed; /* rmpc */ |
| 969 | u64 rx_unknown_protocol; /* rupp */ |
| 970 | u64 tx_bytes; /* gotc */ |
| 971 | u64 tx_unicast; /* uptc */ |
| 972 | u64 tx_multicast; /* mptc */ |
| 973 | u64 tx_broadcast; /* bptc */ |
| 974 | u64 tx_discards; /* tdpc */ |
| 975 | u64 tx_errors; /* tepc */ |
| 976 | }; |
| 977 | |
| 978 | /* Statistics collected by the MAC */ |
| 979 | struct i40e_hw_port_stats { |
| 980 | /* eth stats collected by the port */ |
| 981 | struct i40e_eth_stats eth; |
| 982 | |
| 983 | /* additional port specific stats */ |
| 984 | u64 tx_dropped_link_down; /* tdold */ |
| 985 | u64 crc_errors; /* crcerrs */ |
| 986 | u64 illegal_bytes; /* illerrc */ |
| 987 | u64 error_bytes; /* errbc */ |
| 988 | u64 mac_local_faults; /* mlfc */ |
| 989 | u64 mac_remote_faults; /* mrfc */ |
| 990 | u64 rx_length_errors; /* rlec */ |
| 991 | u64 link_xon_rx; /* lxonrxc */ |
| 992 | u64 link_xoff_rx; /* lxoffrxc */ |
| 993 | u64 priority_xon_rx[8]; /* pxonrxc[8] */ |
| 994 | u64 priority_xoff_rx[8]; /* pxoffrxc[8] */ |
| 995 | u64 link_xon_tx; /* lxontxc */ |
| 996 | u64 link_xoff_tx; /* lxofftxc */ |
| 997 | u64 priority_xon_tx[8]; /* pxontxc[8] */ |
| 998 | u64 priority_xoff_tx[8]; /* pxofftxc[8] */ |
| 999 | u64 priority_xon_2_xoff[8]; /* pxon2offc[8] */ |
| 1000 | u64 rx_size_64; /* prc64 */ |
| 1001 | u64 rx_size_127; /* prc127 */ |
| 1002 | u64 rx_size_255; /* prc255 */ |
| 1003 | u64 rx_size_511; /* prc511 */ |
| 1004 | u64 rx_size_1023; /* prc1023 */ |
| 1005 | u64 rx_size_1522; /* prc1522 */ |
| 1006 | u64 rx_size_big; /* prc9522 */ |
| 1007 | u64 rx_undersize; /* ruc */ |
| 1008 | u64 rx_fragments; /* rfc */ |
| 1009 | u64 rx_oversize; /* roc */ |
| 1010 | u64 rx_jabber; /* rjc */ |
| 1011 | u64 tx_size_64; /* ptc64 */ |
| 1012 | u64 tx_size_127; /* ptc127 */ |
| 1013 | u64 tx_size_255; /* ptc255 */ |
| 1014 | u64 tx_size_511; /* ptc511 */ |
| 1015 | u64 tx_size_1023; /* ptc1023 */ |
| 1016 | u64 tx_size_1522; /* ptc1522 */ |
| 1017 | u64 tx_size_big; /* ptc9522 */ |
| 1018 | u64 mac_short_packet_dropped; /* mspdc */ |
| 1019 | u64 checksum_error; /* xec */ |
| 1020 | }; |
| 1021 | |
| 1022 | /* Checksum and Shadow RAM pointers */ |
| 1023 | #define I40E_SR_NVM_CONTROL_WORD 0x00 |
| 1024 | #define I40E_SR_EMP_MODULE_PTR 0x0F |
| 1025 | #define I40E_SR_NVM_IMAGE_VERSION 0x18 |
Shannon Nelson | 8e2773a | 2013-11-28 06:39:22 +0000 | [diff] [blame] | 1026 | #define I40E_SR_NVM_WAKE_ON_LAN 0x19 |
Jesse Brandeburg | 56a62fc | 2013-09-11 08:40:12 +0000 | [diff] [blame] | 1027 | #define I40E_SR_ALTERNATE_SAN_MAC_ADDRESS_PTR 0x27 |
| 1028 | #define I40E_SR_NVM_EETRACK_LO 0x2D |
| 1029 | #define I40E_SR_NVM_EETRACK_HI 0x2E |
| 1030 | #define I40E_SR_VPD_PTR 0x2F |
| 1031 | #define I40E_SR_PCIE_ALT_AUTO_LOAD_PTR 0x3E |
| 1032 | #define I40E_SR_SW_CHECKSUM_WORD 0x3F |
| 1033 | |
| 1034 | /* Auxiliary field, mask and shift definition for Shadow RAM and NVM Flash */ |
| 1035 | #define I40E_SR_VPD_MODULE_MAX_SIZE 1024 |
| 1036 | #define I40E_SR_PCIE_ALT_MODULE_MAX_SIZE 1024 |
| 1037 | #define I40E_SR_CONTROL_WORD_1_SHIFT 0x06 |
| 1038 | #define I40E_SR_CONTROL_WORD_1_MASK (0x03 << I40E_SR_CONTROL_WORD_1_SHIFT) |
| 1039 | |
| 1040 | /* Shadow RAM related */ |
| 1041 | #define I40E_SR_SECTOR_SIZE_IN_WORDS 0x800 |
| 1042 | #define I40E_SR_WORDS_IN_1KB 512 |
| 1043 | /* Checksum should be calculated such that after adding all the words, |
| 1044 | * including the checksum word itself, the sum should be 0xBABA. |
| 1045 | */ |
| 1046 | #define I40E_SR_SW_CHECKSUM_BASE 0xBABA |
| 1047 | |
| 1048 | #define I40E_SRRD_SRCTL_ATTEMPTS 100000 |
| 1049 | |
| 1050 | enum i40e_switch_element_types { |
| 1051 | I40E_SWITCH_ELEMENT_TYPE_MAC = 1, |
| 1052 | I40E_SWITCH_ELEMENT_TYPE_PF = 2, |
| 1053 | I40E_SWITCH_ELEMENT_TYPE_VF = 3, |
| 1054 | I40E_SWITCH_ELEMENT_TYPE_EMP = 4, |
| 1055 | I40E_SWITCH_ELEMENT_TYPE_BMC = 6, |
| 1056 | I40E_SWITCH_ELEMENT_TYPE_PE = 16, |
| 1057 | I40E_SWITCH_ELEMENT_TYPE_VEB = 17, |
| 1058 | I40E_SWITCH_ELEMENT_TYPE_PA = 18, |
| 1059 | I40E_SWITCH_ELEMENT_TYPE_VSI = 19, |
| 1060 | }; |
| 1061 | |
| 1062 | /* Supported EtherType filters */ |
| 1063 | enum i40e_ether_type_index { |
| 1064 | I40E_ETHER_TYPE_1588 = 0, |
| 1065 | I40E_ETHER_TYPE_FIP = 1, |
| 1066 | I40E_ETHER_TYPE_OUI_EXTENDED = 2, |
| 1067 | I40E_ETHER_TYPE_MAC_CONTROL = 3, |
| 1068 | I40E_ETHER_TYPE_LLDP = 4, |
| 1069 | I40E_ETHER_TYPE_EVB_PROTOCOL1 = 5, |
| 1070 | I40E_ETHER_TYPE_EVB_PROTOCOL2 = 6, |
| 1071 | I40E_ETHER_TYPE_QCN_CNM = 7, |
| 1072 | I40E_ETHER_TYPE_8021X = 8, |
| 1073 | I40E_ETHER_TYPE_ARP = 9, |
| 1074 | I40E_ETHER_TYPE_RSV1 = 10, |
| 1075 | I40E_ETHER_TYPE_RSV2 = 11, |
| 1076 | }; |
| 1077 | |
| 1078 | /* Filter context base size is 1K */ |
| 1079 | #define I40E_HASH_FILTER_BASE_SIZE 1024 |
| 1080 | /* Supported Hash filter values */ |
| 1081 | enum i40e_hash_filter_size { |
| 1082 | I40E_HASH_FILTER_SIZE_1K = 0, |
| 1083 | I40E_HASH_FILTER_SIZE_2K = 1, |
| 1084 | I40E_HASH_FILTER_SIZE_4K = 2, |
| 1085 | I40E_HASH_FILTER_SIZE_8K = 3, |
| 1086 | I40E_HASH_FILTER_SIZE_16K = 4, |
| 1087 | I40E_HASH_FILTER_SIZE_32K = 5, |
| 1088 | I40E_HASH_FILTER_SIZE_64K = 6, |
| 1089 | I40E_HASH_FILTER_SIZE_128K = 7, |
| 1090 | I40E_HASH_FILTER_SIZE_256K = 8, |
| 1091 | I40E_HASH_FILTER_SIZE_512K = 9, |
| 1092 | I40E_HASH_FILTER_SIZE_1M = 10, |
| 1093 | }; |
| 1094 | |
| 1095 | /* DMA context base size is 0.5K */ |
| 1096 | #define I40E_DMA_CNTX_BASE_SIZE 512 |
| 1097 | /* Supported DMA context values */ |
| 1098 | enum i40e_dma_cntx_size { |
| 1099 | I40E_DMA_CNTX_SIZE_512 = 0, |
| 1100 | I40E_DMA_CNTX_SIZE_1K = 1, |
| 1101 | I40E_DMA_CNTX_SIZE_2K = 2, |
| 1102 | I40E_DMA_CNTX_SIZE_4K = 3, |
| 1103 | I40E_DMA_CNTX_SIZE_8K = 4, |
| 1104 | I40E_DMA_CNTX_SIZE_16K = 5, |
| 1105 | I40E_DMA_CNTX_SIZE_32K = 6, |
| 1106 | I40E_DMA_CNTX_SIZE_64K = 7, |
| 1107 | I40E_DMA_CNTX_SIZE_128K = 8, |
| 1108 | I40E_DMA_CNTX_SIZE_256K = 9, |
| 1109 | }; |
| 1110 | |
| 1111 | /* Supported Hash look up table (LUT) sizes */ |
| 1112 | enum i40e_hash_lut_size { |
| 1113 | I40E_HASH_LUT_SIZE_128 = 0, |
| 1114 | I40E_HASH_LUT_SIZE_512 = 1, |
| 1115 | }; |
| 1116 | |
| 1117 | /* Structure to hold a per PF filter control settings */ |
| 1118 | struct i40e_filter_control_settings { |
| 1119 | /* number of PE Quad Hash filter buckets */ |
| 1120 | enum i40e_hash_filter_size pe_filt_num; |
| 1121 | /* number of PE Quad Hash contexts */ |
| 1122 | enum i40e_dma_cntx_size pe_cntx_num; |
| 1123 | /* number of FCoE filter buckets */ |
| 1124 | enum i40e_hash_filter_size fcoe_filt_num; |
| 1125 | /* number of FCoE DDP contexts */ |
| 1126 | enum i40e_dma_cntx_size fcoe_cntx_num; |
| 1127 | /* size of the Hash LUT */ |
| 1128 | enum i40e_hash_lut_size hash_lut_size; |
| 1129 | /* enable FDIR filters for PF and its VFs */ |
| 1130 | bool enable_fdir; |
| 1131 | /* enable Ethertype filters for PF and its VFs */ |
| 1132 | bool enable_ethtype; |
| 1133 | /* enable MAC/VLAN filters for PF and its VFs */ |
| 1134 | bool enable_macvlan; |
| 1135 | }; |
| 1136 | |
| 1137 | /* Structure to hold device level control filter counts */ |
| 1138 | struct i40e_control_filter_stats { |
| 1139 | u16 mac_etype_used; /* Used perfect match MAC/EtherType filters */ |
| 1140 | u16 etype_used; /* Used perfect EtherType filters */ |
| 1141 | u16 mac_etype_free; /* Un-used perfect match MAC/EtherType filters */ |
| 1142 | u16 etype_free; /* Un-used perfect EtherType filters */ |
| 1143 | }; |
| 1144 | |
| 1145 | enum i40e_reset_type { |
| 1146 | I40E_RESET_POR = 0, |
| 1147 | I40E_RESET_CORER = 1, |
| 1148 | I40E_RESET_GLOBR = 2, |
| 1149 | I40E_RESET_EMPR = 3, |
| 1150 | }; |
| 1151 | |
| 1152 | /* IEEE 802.1AB LLDP Agent Variables from NVM */ |
| 1153 | #define I40E_NVM_LLDP_CFG_PTR 0xF |
| 1154 | struct i40e_lldp_variables { |
| 1155 | u16 length; |
| 1156 | u16 adminstatus; |
| 1157 | u16 msgfasttx; |
| 1158 | u16 msgtxinterval; |
| 1159 | u16 txparams; |
| 1160 | u16 timers; |
| 1161 | u16 crc8; |
| 1162 | }; |
| 1163 | |
| 1164 | #endif /* _I40E_TYPE_H_ */ |