diff options
author | Anirudh Venkataramanan <anirudh.venkataramanan@intel.com> | 2018-09-19 20:23:04 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2018-10-01 15:39:40 -0400 |
commit | 45d3d428eafcbb18027c419624ce950b4db3a4b4 (patch) | |
tree | c33223eb6b3dca3b909a32fc09b284a0eee61ba4 /drivers/net/ethernet/intel/ice/ice_common.h | |
parent | 3b6bf296c44f2b1233b7622c847a6ac5b1aeba0f (diff) |
ice: Move common functions out of ice_main.c part 1/7
The functions that are used for PF VSI/netdev setup will also be used
for SR-IOV support. To allow reuse of these functions, move these
functions out of ice_main.c to ice_common.c/ice_lib.c
This move is done across multiple patches. Each patch moves a few
functions and may have minor adjustments. For example, a function that was
previously static in ice_main.c will be made non-static temporarily in
its new location to allow the driver to build cleanly. These adjustments
will be removed in subsequent patches where more code is moved out of
ice_main.c
In this particular patch, the following functions were moved out of
ice_main.c:
int ice_add_mac_to_list
ice_free_fltr_list
ice_stat_update40
ice_stat_update32
ice_update_eth_stats
ice_vsi_add_vlan
ice_vsi_kill_vlan
ice_vsi_manage_vlan_insertion
ice_vsi_manage_vlan_stripping
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_common.h')
-rw-r--r-- | drivers/net/ethernet/intel/ice/ice_common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_common.h b/drivers/net/ethernet/intel/ice/ice_common.h index aac2d6cadaaf..80d288a07731 100644 --- a/drivers/net/ethernet/intel/ice/ice_common.h +++ b/drivers/net/ethernet/intel/ice/ice_common.h | |||
@@ -96,4 +96,8 @@ ice_ena_vsi_txq(struct ice_port_info *pi, u16 vsi_id, u8 tc, u8 num_qgrps, | |||
96 | struct ice_aqc_add_tx_qgrp *buf, u16 buf_size, | 96 | struct ice_aqc_add_tx_qgrp *buf, u16 buf_size, |
97 | struct ice_sq_cd *cd); | 97 | struct ice_sq_cd *cd); |
98 | void ice_output_fw_log(struct ice_hw *hw, struct ice_aq_desc *desc, void *buf); | 98 | void ice_output_fw_log(struct ice_hw *hw, struct ice_aq_desc *desc, void *buf); |
99 | void ice_stat_update40(struct ice_hw *hw, u32 hireg, u32 loreg, | ||
100 | bool prev_stat_loaded, u64 *prev_stat, u64 *cur_stat); | ||
101 | void ice_stat_update32(struct ice_hw *hw, u32 reg, bool prev_stat_loaded, | ||
102 | u64 *prev_stat, u64 *cur_stat); | ||
99 | #endif /* _ICE_COMMON_H_ */ | 103 | #endif /* _ICE_COMMON_H_ */ |