Lines Matching +full:async +full:- +full:prefix

1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 2013 - 2018 Intel Corporation. */
11 * iavf_aq_str - convert AQ err code to a string
66 snprintf(hw->err_str, sizeof(hw->err_str), "%d", aq_err); in iavf_aq_str()
67 return hw->err_str; in iavf_aq_str()
71 * iavf_stat_str - convert status err code to a string
214 snprintf(hw->err_str, sizeof(hw->err_str), "%d", stat_err); in iavf_stat_str()
215 return hw->err_str; in iavf_stat_str()
234 if ((!(mask & hw->debug_mask)) || !desc) in iavf_debug_aq()
239 le16_to_cpu(aq_desc->opcode), in iavf_debug_aq()
240 le16_to_cpu(aq_desc->flags), in iavf_debug_aq()
241 le16_to_cpu(aq_desc->datalen), in iavf_debug_aq()
242 le16_to_cpu(aq_desc->retval)); in iavf_debug_aq()
244 le32_to_cpu(aq_desc->cookie_high), in iavf_debug_aq()
245 le32_to_cpu(aq_desc->cookie_low)); in iavf_debug_aq()
247 le32_to_cpu(aq_desc->params.internal.param0), in iavf_debug_aq()
248 le32_to_cpu(aq_desc->params.internal.param1)); in iavf_debug_aq()
250 le32_to_cpu(aq_desc->params.external.addr_high), in iavf_debug_aq()
251 le32_to_cpu(aq_desc->params.external.addr_low)); in iavf_debug_aq()
253 if (buffer && aq_desc->datalen) { in iavf_debug_aq()
254 u16 len = le16_to_cpu(aq_desc->datalen); in iavf_debug_aq()
259 /* write the full 16-byte chunks */ in iavf_debug_aq()
260 if (hw->debug_mask & mask) { in iavf_debug_aq()
261 char prefix[27]; in iavf_debug_aq() local
263 snprintf(prefix, sizeof(prefix), in iavf_debug_aq()
265 hw->bus.bus_id, in iavf_debug_aq()
266 hw->bus.device, in iavf_debug_aq()
267 hw->bus.func); in iavf_debug_aq()
269 print_hex_dump(KERN_INFO, prefix, DUMP_PREFIX_OFFSET, in iavf_debug_aq()
284 if (!hw->aq.asq.count) in iavf_check_asq_alive()
308 cmd->driver_unloading = cpu_to_le32(IAVF_AQ_DRIVER_UNLOADING); in iavf_aq_queue_shutdown()
349 cmd_resp->vsi_id = cpu_to_le16(vsi_id); in iavf_aq_get_set_rss_lut()
358 cmd_resp->flags = cpu_to_le16(flags); in iavf_aq_get_set_rss_lut()
414 cmd_resp->vsi_id = cpu_to_le16(vsi_id); in iavf_aq_get_set_rss_key()
435 /* The iavf_ptype_lookup table is used to convert from the 8-bit ptype in the
436 * hardware to a bit-field that can be used by SW to more easily determine the
442 * We store the PTYPE in the top byte of the bit field - this is just so that
478 /* Lookup table mapping the 8-bit HW PTYPE to the bit field for decoding */
513 /* IPv4 --> IPv4 */
522 /* IPv4 --> IPv6 */
531 /* IPv4 --> GRE/NAT */
534 /* IPv4 --> GRE/NAT --> IPv4 */
543 /* IPv4 --> GRE/NAT --> IPv6 */
552 /* IPv4 --> GRE/NAT --> MAC */
555 /* IPv4 --> GRE/NAT --> MAC --> IPv4 */
564 /* IPv4 --> GRE/NAT -> MAC --> IPv6 */
573 /* IPv4 --> GRE/NAT --> MAC/VLAN */
576 /* IPv4 ---> GRE/NAT -> MAC/VLAN --> IPv4 */
585 /* IPv4 -> GRE/NAT -> MAC/VLAN --> IPv6 */
603 /* IPv6 --> IPv4 */
612 /* IPv6 --> IPv6 */
621 /* IPv6 --> GRE/NAT */
624 /* IPv6 --> GRE/NAT -> IPv4 */
633 /* IPv6 --> GRE/NAT -> IPv6 */
642 /* IPv6 --> GRE/NAT -> MAC */
645 /* IPv6 --> GRE/NAT -> MAC -> IPv4 */
654 /* IPv6 --> GRE/NAT -> MAC -> IPv6 */
663 /* IPv6 --> GRE/NAT -> MAC/VLAN */
666 /* IPv6 --> GRE/NAT -> MAC/VLAN --> IPv4 */
675 /* IPv6 --> GRE/NAT -> MAC/VLAN --> IPv6 */
691 * @v_opcode: opcodes for VF-PF communication
724 details.async = true; in iavf_aq_send_msg_to_pf()
745 vsi_res = &msg->vsi_res[0]; in iavf_vf_parse_hw_config()
747 hw->dev_caps.num_vsis = msg->num_vsis; in iavf_vf_parse_hw_config()
748 hw->dev_caps.num_rx_qp = msg->num_queue_pairs; in iavf_vf_parse_hw_config()
749 hw->dev_caps.num_tx_qp = msg->num_queue_pairs; in iavf_vf_parse_hw_config()
750 hw->dev_caps.num_msix_vectors_vf = msg->max_vectors; in iavf_vf_parse_hw_config()
751 hw->dev_caps.dcb = msg->vf_cap_flags & in iavf_vf_parse_hw_config()
753 hw->dev_caps.fcoe = 0; in iavf_vf_parse_hw_config()
754 for (i = 0; i < msg->num_vsis; i++) { in iavf_vf_parse_hw_config()
755 if (vsi_res->vsi_type == VIRTCHNL_VSI_SRIOV) { in iavf_vf_parse_hw_config()
756 ether_addr_copy(hw->mac.perm_addr, in iavf_vf_parse_hw_config()
757 vsi_res->default_mac_addr); in iavf_vf_parse_hw_config()
758 ether_addr_copy(hw->mac.addr, in iavf_vf_parse_hw_config()
759 vsi_res->default_mac_addr); in iavf_vf_parse_hw_config()