src/dpdk/drivers/net/sfc/sfc_tx.c
static void
sfc_tx_fini_queues(struct sfc_adapter *sa, unsigned int nb_tx_queues)
{
	struct sfc_adapter_shared * const sas = sfc_sa2shared(sa);
	int sw_index;

	SFC_ASSERT(nb_tx_queues <= sas->txq_count);

	sw_index = sas->txq_count;
	while (--sw_index >= (int)nb_tx_queues) {
		if (sas->txq_info[sw_index].state & SFC_TXQ_INITIALIZED)
			sfc_tx_qfini(sa, sw_index);
	}

	sas->txq_count = nb_tx_queues;
}
/**
 * Destroy excess queues that are no longer needed after reconfiguration
 * or complete close.
 */
Destroy excess queues that are no longer needed after reconfiguration
or complete close.
Destroy excess queues that are no longer needed after reconfiguration or complete close .
static void
sfc_tx_fini_queues(struct sfc_adapter *sa, unsigned int nb_tx_queues)
{
	struct sfc_adapter_shared * const sas = sfc_sa2shared(sa);
	int sw_index;
	SFC_ASSERT(nb_tx_queues <= sas->txq_count);
	sw_index = sas->txq_count;
	while (--sw_index >= (int)nb_tx_queues) {
		if (sas->txq_info[sw_index].state & SFC_TXQ_INITIALIZED)
			sfc_tx_qfini(sa, sw_index);
	}
	sas->txq_count = nb_tx_queues;
}
static void sfc_tx_fini_queues ( struct sfc_adapter * sa , unsigned int nb_tx_queues ) { struct sfc_adapter_shared * const sas = sfc_sa2shared ( sa ) ; int sw_index ; SFC_ASSERT ( nb_tx_queues <= sas -> txq_count ) ; sw_index = sas -> txq_count ; while ( -- sw_index >= ( int ) nb_tx_queues ) { if ( sas -> txq_info [ sw_index ] . state & SFC_TXQ_INITIALIZED ) sfc_tx_qfini ( sa , sw_index ) ; } sas -> txq_count = nb_tx_queues ; }
Destroy excess queues that are no longer needed after reconfiguration
 or complete close.
Destroy excess queues that are no longer needed after reconfiguration or complete close .