src/dpdk/drivers/net/failsafe/failsafe_intr.c
void failsafe_rx_intr_uninstall_subdevice(struct sub_device *sdev)
{
	int qid;
	struct rte_eth_dev *fsdev;
	struct rxq *fsrxq;

	fsdev = fs_dev(sdev);
	for (qid = 0; qid < ETH(sdev)->data->nb_rx_queues; qid++) {
		if (qid < fsdev->data->nb_rx_queues) {
			fsrxq = fsdev->data->rx_queues[qid];
			if (fsrxq != NULL && fsrxq->enable_events)
				rte_eth_dev_rx_intr_disable(PORT_ID(sdev),
							    qid);
		}
	}
	failsafe_eth_rx_intr_ctl_subdevice(sdev, RTE_INTR_EVENT_DEL);
}
/**
 * Uninstall Rx interrupts subsystem for a subdevice.
 * This is a support for dynamically removing subdevices.
 *
 * @param sdev
 *   Pointer to subdevice structure.
 *
 * @return
 *   0 on success, negative errno value otherwise and rte_errno is set.
 */
Uninstall Rx interrupts subsystem for a subdevice.
This is a support for dynamically removing subdevices.

@param sdev
Pointer to subdevice structure.

@return
0 on success, negative errno value otherwise and rte_errno is set.
Uninstall Rx interrupts subsystem for a subdevice . This is a support for dynamically removing subdevices . @param sdev Pointer to subdevice structure . @return 0 on success negative errno value otherwise and rte_errno is set .
void failsafe_rx_intr_uninstall_subdevice(struct sub_device *sdev)
{
	int qid;
	struct rte_eth_dev *fsdev;
	struct rxq *fsrxq;
	fsdev = fs_dev(sdev);
	for (qid = 0; qid < ETH(sdev)->data->nb_rx_queues; qid++) {
		if (qid < fsdev->data->nb_rx_queues) {
			fsrxq = fsdev->data->rx_queues[qid];
			if (fsrxq != NULL && fsrxq->enable_events)
				rte_eth_dev_rx_intr_disable(PORT_ID(sdev),
							    qid);
		}
	}
	failsafe_eth_rx_intr_ctl_subdevice(sdev, RTE_INTR_EVENT_DEL);
}
void failsafe_rx_intr_uninstall_subdevice ( struct sub_device * sdev ) { int qid ; struct rte_eth_dev * fsdev ; struct rxq * fsrxq ; fsdev = fs_dev ( sdev ) ; for ( qid = 0 ; qid < ETH ( sdev ) -> data -> nb_rx_queues ; qid ++ ) { if ( qid < fsdev -> data -> nb_rx_queues ) { fsrxq = fsdev -> data -> rx_queues [ qid ] ; if ( fsrxq != NULL && fsrxq -> enable_events ) rte_eth_dev_rx_intr_disable ( PORT_ID ( sdev ) , qid ) ; } } failsafe_eth_rx_intr_ctl_subdevice ( sdev , RTE_INTR_EVENT_DEL ) ; }
Uninstall Rx interrupts subsystem for a subdevice.
Uninstall Rx interrupts subsystem for a subdevice .