aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_lib.h
diff options
context:
space:
mode:
authorAnirudh Venkataramanan <anirudh.venkataramanan@intel.com>2018-09-19 20:23:10 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2018-10-01 15:50:30 -0400
commit37bb839012865a4cafc038ec7ee183b873583a7d (patch)
tree6e4aa3fa3db04d1f3698897f50a4f4f2532d4557 /drivers/net/ethernet/intel/ice/ice_lib.h
parentdf0f847915b4311fc107e8e803c69b9f426c4f7b (diff)
ice: Move common functions out of ice_main.c part 7/7
This patch completes the code move out of ice_main.c The following top level functions and related dependency functions) were moved to ice_lib.c: ice_vsi_setup ice_vsi_cfg_tc The following functions were made static again: ice_vsi_setup_vector_base ice_vsi_alloc_q_vectors ice_vsi_get_qs void ice_vsi_map_rings_to_vectors ice_vsi_alloc_rings ice_vsi_set_rss_params ice_vsi_set_num_qs ice_get_free_slot ice_vsi_init ice_vsi_alloc_arrays 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.h')
-rw-r--r--drivers/net/ethernet/intel/ice/ice_lib.h26
1 files changed, 6 insertions, 20 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_lib.h b/drivers/net/ethernet/intel/ice/ice_lib.h
index aaab3fc4b018..a76cde895bf3 100644
--- a/drivers/net/ethernet/intel/ice/ice_lib.h
+++ b/drivers/net/ethernet/intel/ice/ice_lib.h
@@ -6,26 +6,6 @@
6 6
7#include "ice.h" 7#include "ice.h"
8 8
9int ice_vsi_setup_vector_base(struct ice_vsi *vsi);
10
11int ice_vsi_alloc_q_vectors(struct ice_vsi *vsi);
12
13int ice_vsi_get_qs(struct ice_vsi *vsi);
14
15void ice_vsi_map_rings_to_vectors(struct ice_vsi *vsi);
16
17int ice_vsi_alloc_rings(struct ice_vsi *vsi);
18
19void ice_vsi_set_rss_params(struct ice_vsi *vsi);
20
21void ice_vsi_set_num_qs(struct ice_vsi *vsi);
22
23int ice_get_free_slot(void *array, int size, int curr);
24
25int ice_vsi_init(struct ice_vsi *vsi);
26
27int ice_vsi_alloc_arrays(struct ice_vsi *vsi, bool alloc_qvectors);
28
29int ice_add_mac_to_list(struct ice_vsi *vsi, struct list_head *add_list, 9int ice_add_mac_to_list(struct ice_vsi *vsi, struct list_head *add_list,
30 const u8 *macaddr); 10 const u8 *macaddr);
31 11
@@ -59,6 +39,10 @@ void ice_vsi_delete(struct ice_vsi *vsi);
59 39
60int ice_vsi_clear(struct ice_vsi *vsi); 40int ice_vsi_clear(struct ice_vsi *vsi);
61 41
42struct ice_vsi *
43ice_vsi_setup(struct ice_pf *pf, struct ice_port_info *pi,
44 enum ice_vsi_type type, u16 vf_id);
45
62int ice_vsi_release(struct ice_vsi *vsi); 46int ice_vsi_release(struct ice_vsi *vsi);
63 47
64void ice_vsi_close(struct ice_vsi *vsi); 48void ice_vsi_close(struct ice_vsi *vsi);
@@ -84,5 +68,7 @@ void ice_vsi_free_rx_rings(struct ice_vsi *vsi);
84 68
85void ice_vsi_free_tx_rings(struct ice_vsi *vsi); 69void ice_vsi_free_tx_rings(struct ice_vsi *vsi);
86 70
71int ice_vsi_cfg_tc(struct ice_vsi *vsi, u8 ena_tc);
72
87irqreturn_t ice_msix_clean_rings(int __always_unused irq, void *data); 73irqreturn_t ice_msix_clean_rings(int __always_unused irq, void *data);
88#endif /* !_ICE_LIB_H_ */ 74#endif /* !_ICE_LIB_H_ */