With the introduction of ice_cfg_vsi_agg(), the ice_cfg_agg() and
ice_move_vsi_to_agg() functions are no longer used. Remove them.

Signed-off-by: Jacob Keller <[email protected]>
Reviewed-by: Aleksandr Loktionov <[email protected]>
---
 drivers/net/ethernet/intel/ice/ice_sched.h |  6 ----
 drivers/net/ethernet/intel/ice/ice_sched.c | 50 ------------------------------
 2 files changed, 56 deletions(-)

diff --git a/drivers/net/ethernet/intel/ice/ice_sched.h 
b/drivers/net/ethernet/intel/ice/ice_sched.h
index b9ea9174f3d9..30b55bab09d3 100644
--- a/drivers/net/ethernet/intel/ice/ice_sched.h
+++ b/drivers/net/ethernet/intel/ice/ice_sched.h
@@ -140,12 +140,6 @@ int ice_cfg_vsi_agg(struct ice_port_info *pi, u16 
vsi_handle,
                    u32 min_id, u32 max_id, u8 tc_bitmap,
                    u32 *configured_id);
 int
-ice_cfg_agg(struct ice_port_info *pi, u32 agg_id,
-           enum ice_agg_type agg_type, u8 tc_bitmap);
-int
-ice_move_vsi_to_agg(struct ice_port_info *pi, u32 agg_id, u16 vsi_handle,
-                   u8 tc_bitmap);
-int
 ice_cfg_q_bw_lmt(struct ice_port_info *pi, u16 vsi_handle, u8 tc,
                 u16 q_handle, enum ice_rl_type rl_type, u32 bw);
 int
diff --git a/drivers/net/ethernet/intel/ice/ice_sched.c 
b/drivers/net/ethernet/intel/ice/ice_sched.c
index a7f31e84ee14..c45e9076518d 100644
--- a/drivers/net/ethernet/intel/ice/ice_sched.c
+++ b/drivers/net/ethernet/intel/ice/ice_sched.c
@@ -2798,30 +2798,6 @@ ice_sched_cfg_agg(struct ice_port_info *pi, u32 agg_id,
        return status;
 }
 
-/**
- * ice_cfg_agg - config aggregator node
- * @pi: port information structure
- * @agg_id: aggregator ID
- * @agg_type: aggregator type queue, VSI, or aggregator group
- * @tc_bitmap: bits TC bitmap
- *
- * This function configures aggregator node(s).
- */
-int
-ice_cfg_agg(struct ice_port_info *pi, u32 agg_id, enum ice_agg_type agg_type,
-           u8 tc_bitmap)
-{
-       unsigned long bitmap = tc_bitmap;
-       int status;
-
-       mutex_lock(&pi->sched_lock);
-       status = ice_sched_cfg_agg(pi, agg_id, agg_type, &bitmap);
-       if (!status)
-               status = ice_save_agg_tc_bitmap(pi, agg_id, &bitmap);
-       mutex_unlock(&pi->sched_lock);
-       return status;
-}
-
 /**
  * ice_get_agg_vsi_info - get the aggregator ID
  * @agg_info: aggregator info
@@ -3073,32 +3049,6 @@ ice_sched_cfg_node_bw_alloc(struct ice_hw *hw, struct 
ice_sched_node *node,
        return ice_sched_update_elem(hw, node, &buf);
 }
 
-/**
- * ice_move_vsi_to_agg - moves VSI to new or default aggregator
- * @pi: port information structure
- * @agg_id: aggregator ID
- * @vsi_handle: software VSI handle
- * @tc_bitmap: TC bitmap of enabled TC(s)
- *
- * Move or associate VSI to a new or default aggregator node.
- */
-int
-ice_move_vsi_to_agg(struct ice_port_info *pi, u32 agg_id, u16 vsi_handle,
-                   u8 tc_bitmap)
-{
-       unsigned long bitmap = tc_bitmap;
-       int status;
-
-       mutex_lock(&pi->sched_lock);
-       status = ice_sched_assoc_vsi_to_agg(pi, agg_id, vsi_handle,
-                                           (unsigned long *)&bitmap);
-       if (!status)
-               status = ice_save_agg_vsi_tc_bitmap(pi, agg_id, vsi_handle,
-                                                   (unsigned long *)&bitmap);
-       mutex_unlock(&pi->sched_lock);
-       return status;
-}
-
 /**
  * ice_find_available_agg - Find or create aggregator node
  * @hw: pointer to the HW structure

-- 
2.54.0.1064.gd145956f57df

Reply via email to