X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fiavf%2Fbase%2Fiavf_common.c;h=a8c252825ff287f06e3abecde06a01714e6e597d;hb=03ef7d47f7bbf441000691105bfd411aa6929a4b;hp=53e8777326efb4dbe256e7353a44f6133cd59dfe;hpb=9e54112f822a241ccf14c05a5ffe720d85f32214;p=dpdk.git diff --git a/drivers/net/iavf/base/iavf_common.c b/drivers/net/iavf/base/iavf_common.c index 53e8777326..a8c252825f 100644 --- a/drivers/net/iavf/base/iavf_common.c +++ b/drivers/net/iavf/base/iavf_common.c @@ -1,5 +1,5 @@ /* SPDX-License-Identifier: BSD-3-Clause - * Copyright(c) 2013 - 2015 Intel Corporation + * Copyright(c) 2001-2019 */ #include "iavf_type.h" @@ -7,7 +7,6 @@ #include "iavf_prototype.h" #include "virtchnl.h" - /** * iavf_set_mac_type - Sets MAC type * @hw: pointer to the HW structure @@ -346,7 +345,7 @@ bool iavf_check_asq_alive(struct iavf_hw *hw) * or not the driver is unloading as well. **/ enum iavf_status iavf_aq_queue_shutdown(struct iavf_hw *hw, - bool unloading) + bool unloading) { struct iavf_aq_desc desc; struct iavf_aqc_queue_shutdown *cmd = @@ -375,9 +374,9 @@ enum iavf_status iavf_aq_queue_shutdown(struct iavf_hw *hw, * Internal function to get or set RSS look up table **/ STATIC enum iavf_status iavf_aq_get_set_rss_lut(struct iavf_hw *hw, - u16 vsi_id, bool pf_lut, - u8 *lut, u16 lut_size, - bool set) + u16 vsi_id, bool pf_lut, + u8 *lut, u16 lut_size, + bool set) { enum iavf_status status; struct iavf_aq_desc desc; @@ -428,7 +427,7 @@ STATIC enum iavf_status iavf_aq_get_set_rss_lut(struct iavf_hw *hw, * get the RSS lookup table, PF or VSI type **/ enum iavf_status iavf_aq_get_rss_lut(struct iavf_hw *hw, u16 vsi_id, - bool pf_lut, u8 *lut, u16 lut_size) + bool pf_lut, u8 *lut, u16 lut_size) { return iavf_aq_get_set_rss_lut(hw, vsi_id, pf_lut, lut, lut_size, false); @@ -445,7 +444,7 @@ enum iavf_status iavf_aq_get_rss_lut(struct iavf_hw *hw, u16 vsi_id, * set the RSS lookup table, PF or VSI type **/ enum iavf_status iavf_aq_set_rss_lut(struct iavf_hw *hw, u16 vsi_id, - bool pf_lut, u8 *lut, u16 lut_size) + bool pf_lut, u8 *lut, u16 lut_size) { return iavf_aq_get_set_rss_lut(hw, vsi_id, pf_lut, lut, lut_size, true); } @@ -500,8 +499,8 @@ STATIC enum iavf_status iavf_aq_get_set_rss_key(struct iavf_hw *hw, * **/ enum iavf_status iavf_aq_get_rss_key(struct iavf_hw *hw, - u16 vsi_id, - struct iavf_aqc_get_set_rss_key_data *key) + u16 vsi_id, + struct iavf_aqc_get_set_rss_key_data *key) { return iavf_aq_get_set_rss_key(hw, vsi_id, key, false); } @@ -515,8 +514,8 @@ enum iavf_status iavf_aq_get_rss_key(struct iavf_hw *hw, * set the RSS key per VSI **/ enum iavf_status iavf_aq_set_rss_key(struct iavf_hw *hw, - u16 vsi_id, - struct iavf_aqc_get_set_rss_key_data *key) + u16 vsi_id, + struct iavf_aqc_get_set_rss_key_data *key) { return iavf_aq_get_set_rss_key(hw, vsi_id, key, true); } @@ -955,14 +954,14 @@ enum iavf_status iavf_aq_send_msg_to_pf(struct iavf_hw *hw, } /** - * iavf_parse_hw_config + * iavf_vf_parse_hw_config * @hw: pointer to the hardware structure * @msg: pointer to the virtual channel VF resource structure * * Given a VF resource message from the PF, populate the hw struct * with appropriate information. **/ -void iavf_parse_hw_config(struct iavf_hw *hw, +void iavf_vf_parse_hw_config(struct iavf_hw *hw, struct virtchnl_vf_resource *msg) { struct virtchnl_vsi_resource *vsi_res; @@ -991,14 +990,14 @@ void iavf_parse_hw_config(struct iavf_hw *hw, } /** - * iavf_reset + * iavf_vf_reset * @hw: pointer to the hardware structure * * Send a VF_RESET message to the PF. Does not wait for response from PF * as none will be forthcoming. Immediately after calling this function, * the admin queue should be shut down and (optionally) reinitialized. **/ -enum iavf_status iavf_reset(struct iavf_hw *hw) +enum iavf_status iavf_vf_reset(struct iavf_hw *hw) { return iavf_aq_send_msg_to_pf(hw, VIRTCHNL_OP_RESET_VF, IAVF_SUCCESS, NULL, 0, NULL); @@ -1012,7 +1011,7 @@ enum iavf_status iavf_reset(struct iavf_hw *hw) * Get information for the reason of a Wake Up event **/ enum iavf_status iavf_aq_clear_all_wol_filters(struct iavf_hw *hw, - struct iavf_asq_cmd_details *cmd_details) + struct iavf_asq_cmd_details *cmd_details) { struct iavf_aq_desc desc; enum iavf_status status;