/* Cache the descriptor ring offsets for RSS to the assigned rings.  */
static bool ixgbe_cache_ring_rss(struct ixgbe_adapter *adapter)
/* Cache the descriptor ring offsets for RSS to the assigned rings.  */
static bool ixgbe_cache_ring_rss(struct ixgbe_adapter *adapter)
{
	int i;
	bool ret = false;
	if (adapter->flags & IXGBE_FLAG_RSS_ENABLED) {
		for (i = 0; i < adapter->num_rx_queues; i++)
			adapter->rx_ring[i].reg_idx = i;
		for (i = 0; i < adapter->num_tx_queues; i++)
			adapter->tx_ring[i].reg_idx = i;
		ret = true;
	} else {
		ret = false;
	}
	return ret;
}