return 0;
 }
 
-enum ice_container_type {
-       ICE_RX_CONTAINER,
-       ICE_TX_CONTAINER,
-};
-
 /**
  * ice_get_rc_coalesce - get ITR values for specific ring container
  * @ec: ethtool structure to fill with driver's coalesce settings
- * @c_type: container type, Rx or Tx
  * @rc: ring container that the ITR values will come from
  *
  * Query the device for ice_ring_container specific ITR values. This is
  * Returns 0 on success, negative otherwise.
  */
 static int
-ice_get_rc_coalesce(struct ethtool_coalesce *ec, enum ice_container_type c_type,
-                   struct ice_ring_container *rc)
+ice_get_rc_coalesce(struct ethtool_coalesce *ec, struct ice_ring_container *rc)
 {
        if (!rc->ring)
                return -EINVAL;
 
-       switch (c_type) {
+       switch (rc->type) {
        case ICE_RX_CONTAINER:
                ec->use_adaptive_rx_coalesce = ITR_IS_DYNAMIC(rc);
                ec->rx_coalesce_usecs = rc->itr_setting;
                ec->tx_coalesce_usecs = rc->itr_setting;
                break;
        default:
-               dev_dbg(ice_pf_to_dev(rc->ring->vsi->back), "Invalid c_type %d\n", c_type);
+               dev_dbg(ice_pf_to_dev(rc->ring->vsi->back), "Invalid c_type %d\n", rc->type);
                return -EINVAL;
        }
 
 ice_get_q_coalesce(struct ice_vsi *vsi, struct ethtool_coalesce *ec, int q_num)
 {
        if (q_num < vsi->num_rxq && q_num < vsi->num_txq) {
-               if (ice_get_rc_coalesce(ec, ICE_RX_CONTAINER,
+               if (ice_get_rc_coalesce(ec,
                                        &vsi->rx_rings[q_num]->q_vector->rx))
                        return -EINVAL;
-               if (ice_get_rc_coalesce(ec, ICE_TX_CONTAINER,
+               if (ice_get_rc_coalesce(ec,
                                        &vsi->tx_rings[q_num]->q_vector->tx))
                        return -EINVAL;
        } else if (q_num < vsi->num_rxq) {
-               if (ice_get_rc_coalesce(ec, ICE_RX_CONTAINER,
+               if (ice_get_rc_coalesce(ec,
                                        &vsi->rx_rings[q_num]->q_vector->rx))
                        return -EINVAL;
        } else if (q_num < vsi->num_txq) {
-               if (ice_get_rc_coalesce(ec, ICE_TX_CONTAINER,
+               if (ice_get_rc_coalesce(ec,
                                        &vsi->tx_rings[q_num]->q_vector->tx))
                        return -EINVAL;
        } else {
 
 /**
  * ice_set_rc_coalesce - set ITR values for specific ring container
- * @c_type: container type, Rx or Tx
  * @ec: ethtool structure from user to update ITR settings
  * @rc: ring container that the ITR values will come from
  * @vsi: VSI associated to the ring container
  * Returns 0 on success, negative otherwise.
  */
 static int
-ice_set_rc_coalesce(enum ice_container_type c_type, struct ethtool_coalesce *ec,
+ice_set_rc_coalesce(struct ethtool_coalesce *ec,
                    struct ice_ring_container *rc, struct ice_vsi *vsi)
 {
-       const char *c_type_str = (c_type == ICE_RX_CONTAINER) ? "rx" : "tx";
+       const char *c_type_str = (rc->type == ICE_RX_CONTAINER) ? "rx" : "tx";
        u32 use_adaptive_coalesce, coalesce_usecs;
        struct ice_pf *pf = vsi->back;
        u16 itr_setting;
        if (!rc->ring)
                return -EINVAL;
 
-       switch (c_type) {
+       switch (rc->type) {
        case ICE_RX_CONTAINER:
                if (ec->rx_coalesce_usecs_high > ICE_MAX_INTRL ||
                    (ec->rx_coalesce_usecs_high &&
                break;
        default:
                dev_dbg(ice_pf_to_dev(pf), "Invalid container type %d\n",
-                       c_type);
+                       rc->type);
                return -EINVAL;
        }
 
 ice_set_q_coalesce(struct ice_vsi *vsi, struct ethtool_coalesce *ec, int q_num)
 {
        if (q_num < vsi->num_rxq && q_num < vsi->num_txq) {
-               if (ice_set_rc_coalesce(ICE_RX_CONTAINER, ec,
+               if (ice_set_rc_coalesce(ec,
                                        &vsi->rx_rings[q_num]->q_vector->rx,
                                        vsi))
                        return -EINVAL;
 
-               if (ice_set_rc_coalesce(ICE_TX_CONTAINER, ec,
+               if (ice_set_rc_coalesce(ec,
                                        &vsi->tx_rings[q_num]->q_vector->tx,
                                        vsi))
                        return -EINVAL;
        } else if (q_num < vsi->num_rxq) {
-               if (ice_set_rc_coalesce(ICE_RX_CONTAINER, ec,
+               if (ice_set_rc_coalesce(ec,
                                        &vsi->rx_rings[q_num]->q_vector->rx,
                                        vsi))
                        return -EINVAL;
        } else if (q_num < vsi->num_txq) {
-               if (ice_set_rc_coalesce(ICE_TX_CONTAINER, ec,
+               if (ice_set_rc_coalesce(ec,
                                        &vsi->tx_rings[q_num]->q_vector->tx,
                                        vsi))
                        return -EINVAL;