diff options
author | Anirudh Venkataramanan <anirudh.venkataramanan@intel.com> | 2019-02-19 18:04:13 -0500 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2019-04-18 11:38:47 -0400 |
commit | f9867df6d96593fe678a138230379cda78403429 (patch) | |
tree | c1c6136d1d91b0bcdded6e4fc63804986d51b776 /drivers/net/ethernet/intel/ice/ice_lib.c | |
parent | 94c4441b5a80f38d203432a4389d2dd349403ae5 (diff) |
ice: Fix incorrect use of abbreviations
Capitalize abbreviations and spell out some that aren't obvious.
Reviewed-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_lib.c')
-rw-r--r-- | drivers/net/ethernet/intel/ice/ice_lib.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_lib.c b/drivers/net/ethernet/intel/ice/ice_lib.c index 45e361f72057..d24da511b775 100644 --- a/drivers/net/ethernet/intel/ice/ice_lib.c +++ b/drivers/net/ethernet/intel/ice/ice_lib.c | |||
@@ -73,7 +73,7 @@ static int ice_setup_rx_ctx(struct ice_ring *ring) | |||
73 | regval |= (rxdid << QRXFLXP_CNTXT_RXDID_IDX_S) & | 73 | regval |= (rxdid << QRXFLXP_CNTXT_RXDID_IDX_S) & |
74 | QRXFLXP_CNTXT_RXDID_IDX_M; | 74 | QRXFLXP_CNTXT_RXDID_IDX_M; |
75 | 75 | ||
76 | /* increasing context priority to pick up profile id; | 76 | /* increasing context priority to pick up profile ID; |
77 | * default is 0x01; setting to 0x03 to ensure profile | 77 | * default is 0x01; setting to 0x03 to ensure profile |
78 | * is programming if prev context is of same priority | 78 | * is programming if prev context is of same priority |
79 | */ | 79 | */ |
@@ -138,7 +138,7 @@ ice_setup_tx_ctx(struct ice_ring *ring, struct ice_tlan_ctx *tlan_ctx, u16 pf_q) | |||
138 | tlan_ctx->vmvf_type = ICE_TLAN_CTX_VMVF_TYPE_PF; | 138 | tlan_ctx->vmvf_type = ICE_TLAN_CTX_VMVF_TYPE_PF; |
139 | break; | 139 | break; |
140 | case ICE_VSI_VF: | 140 | case ICE_VSI_VF: |
141 | /* Firmware expects vmvf_num to be absolute VF id */ | 141 | /* Firmware expects vmvf_num to be absolute VF ID */ |
142 | tlan_ctx->vmvf_num = hw->func_caps.vf_base_id + vsi->vf_id; | 142 | tlan_ctx->vmvf_num = hw->func_caps.vf_base_id + vsi->vf_id; |
143 | tlan_ctx->vmvf_type = ICE_TLAN_CTX_VMVF_TYPE_VF; | 143 | tlan_ctx->vmvf_type = ICE_TLAN_CTX_VMVF_TYPE_VF; |
144 | break; | 144 | break; |
@@ -297,7 +297,7 @@ static void ice_vsi_set_num_desc(struct ice_vsi *vsi) | |||
297 | /** | 297 | /** |
298 | * ice_vsi_set_num_qs - Set number of queues, descriptors and vectors for a VSI | 298 | * ice_vsi_set_num_qs - Set number of queues, descriptors and vectors for a VSI |
299 | * @vsi: the VSI being configured | 299 | * @vsi: the VSI being configured |
300 | * @vf_id: Id of the VF being configured | 300 | * @vf_id: ID of the VF being configured |
301 | * | 301 | * |
302 | * Return 0 on success and a negative value on error | 302 | * Return 0 on success and a negative value on error |
303 | */ | 303 | */ |
@@ -479,7 +479,7 @@ static irqreturn_t ice_msix_clean_rings(int __always_unused irq, void *data) | |||
479 | * ice_vsi_alloc - Allocates the next available struct VSI in the PF | 479 | * ice_vsi_alloc - Allocates the next available struct VSI in the PF |
480 | * @pf: board private structure | 480 | * @pf: board private structure |
481 | * @type: type of VSI | 481 | * @type: type of VSI |
482 | * @vf_id: Id of the VF being configured | 482 | * @vf_id: ID of the VF being configured |
483 | * | 483 | * |
484 | * returns a pointer to a VSI on success, NULL on failure. | 484 | * returns a pointer to a VSI on success, NULL on failure. |
485 | */ | 485 | */ |
@@ -1445,12 +1445,12 @@ ice_vsi_cfg_rss_exit: | |||
1445 | } | 1445 | } |
1446 | 1446 | ||
1447 | /** | 1447 | /** |
1448 | * ice_add_mac_to_list - Add a mac address filter entry to the list | 1448 | * ice_add_mac_to_list - Add a MAC address filter entry to the list |
1449 | * @vsi: the VSI to be forwarded to | 1449 | * @vsi: the VSI to be forwarded to |
1450 | * @add_list: pointer to the list which contains MAC filter entries | 1450 | * @add_list: pointer to the list which contains MAC filter entries |
1451 | * @macaddr: the MAC address to be added. | 1451 | * @macaddr: the MAC address to be added. |
1452 | * | 1452 | * |
1453 | * Adds mac address filter entry to the temp list | 1453 | * Adds MAC address filter entry to the temp list |
1454 | * | 1454 | * |
1455 | * Returns 0 on success or ENOMEM on failure. | 1455 | * Returns 0 on success or ENOMEM on failure. |
1456 | */ | 1456 | */ |
@@ -1552,7 +1552,7 @@ void ice_free_fltr_list(struct device *dev, struct list_head *h) | |||
1552 | /** | 1552 | /** |
1553 | * ice_vsi_add_vlan - Add VSI membership for given VLAN | 1553 | * ice_vsi_add_vlan - Add VSI membership for given VLAN |
1554 | * @vsi: the VSI being configured | 1554 | * @vsi: the VSI being configured |
1555 | * @vid: VLAN id to be added | 1555 | * @vid: VLAN ID to be added |
1556 | */ | 1556 | */ |
1557 | int ice_vsi_add_vlan(struct ice_vsi *vsi, u16 vid) | 1557 | int ice_vsi_add_vlan(struct ice_vsi *vsi, u16 vid) |
1558 | { | 1558 | { |
@@ -1590,7 +1590,7 @@ int ice_vsi_add_vlan(struct ice_vsi *vsi, u16 vid) | |||
1590 | /** | 1590 | /** |
1591 | * ice_vsi_kill_vlan - Remove VSI membership for a given VLAN | 1591 | * ice_vsi_kill_vlan - Remove VSI membership for a given VLAN |
1592 | * @vsi: the VSI being configured | 1592 | * @vsi: the VSI being configured |
1593 | * @vid: VLAN id to be removed | 1593 | * @vid: VLAN ID to be removed |
1594 | * | 1594 | * |
1595 | * Returns 0 on success and negative on failure | 1595 | * Returns 0 on success and negative on failure |
1596 | */ | 1596 | */ |
@@ -2016,7 +2016,7 @@ int ice_vsi_stop_rx_rings(struct ice_vsi *vsi) | |||
2016 | * ice_vsi_stop_tx_rings - Disable Tx rings | 2016 | * ice_vsi_stop_tx_rings - Disable Tx rings |
2017 | * @vsi: the VSI being configured | 2017 | * @vsi: the VSI being configured |
2018 | * @rst_src: reset source | 2018 | * @rst_src: reset source |
2019 | * @rel_vmvf_num: Relative id of VF/VM | 2019 | * @rel_vmvf_num: Relative ID of VF/VM |
2020 | * @rings: Tx ring array to be stopped | 2020 | * @rings: Tx ring array to be stopped |
2021 | * @offset: offset within vsi->txq_map | 2021 | * @offset: offset within vsi->txq_map |
2022 | */ | 2022 | */ |
@@ -2102,7 +2102,7 @@ err_alloc_q_ids: | |||
2102 | * ice_vsi_stop_lan_tx_rings - Disable LAN Tx rings | 2102 | * ice_vsi_stop_lan_tx_rings - Disable LAN Tx rings |
2103 | * @vsi: the VSI being configured | 2103 | * @vsi: the VSI being configured |
2104 | * @rst_src: reset source | 2104 | * @rst_src: reset source |
2105 | * @rel_vmvf_num: Relative id of VF/VM | 2105 | * @rel_vmvf_num: Relative ID of VF/VM |
2106 | */ | 2106 | */ |
2107 | int | 2107 | int |
2108 | ice_vsi_stop_lan_tx_rings(struct ice_vsi *vsi, enum ice_disq_rst_src rst_src, | 2108 | ice_vsi_stop_lan_tx_rings(struct ice_vsi *vsi, enum ice_disq_rst_src rst_src, |
@@ -2177,7 +2177,7 @@ err_out: | |||
2177 | * @pf: board private structure | 2177 | * @pf: board private structure |
2178 | * @pi: pointer to the port_info instance | 2178 | * @pi: pointer to the port_info instance |
2179 | * @type: VSI type | 2179 | * @type: VSI type |
2180 | * @vf_id: defines VF id to which this VSI connects. This field is meant to be | 2180 | * @vf_id: defines VF ID to which this VSI connects. This field is meant to be |
2181 | * used only for ICE_VSI_VF VSI type. For other VSI types, should | 2181 | * used only for ICE_VSI_VF VSI type. For other VSI types, should |
2182 | * fill-in ICE_INVAL_VFID as input. | 2182 | * fill-in ICE_INVAL_VFID as input. |
2183 | * | 2183 | * |
@@ -2219,7 +2219,7 @@ ice_vsi_setup(struct ice_pf *pf, struct ice_port_info *pi, | |||
2219 | /* set RSS capabilities */ | 2219 | /* set RSS capabilities */ |
2220 | ice_vsi_set_rss_params(vsi); | 2220 | ice_vsi_set_rss_params(vsi); |
2221 | 2221 | ||
2222 | /* set tc configuration */ | 2222 | /* set TC configuration */ |
2223 | ice_vsi_set_tc_cfg(vsi); | 2223 | ice_vsi_set_tc_cfg(vsi); |
2224 | 2224 | ||
2225 | /* create the VSI */ | 2225 | /* create the VSI */ |