src/dpdk/drivers/common/octeontx2/otx2_common.c
int
otx2_npa_lf_active(void *otx2_dev)
{
	struct otx2_dev *dev = otx2_dev;
	struct otx2_idev_cfg *idev;

	/* Check if npalf is actively used on this dev */
	idev = otx2_intra_dev_get_cfg();
	if (!idev || !idev->npa_lf || idev->npa_lf->mbox != dev->mbox)
		return 0;

	return rte_atomic16_read(&idev->npa_refcnt);
}
/**
 * @internal
 * Is NPA lf active for the given device?.
 */
@internal
Is NPA lf active for the given device?.
@internal Is NPA lf active for the given device? .
int
otx2_npa_lf_active(void *otx2_dev)
{
	struct otx2_dev *dev = otx2_dev;
	struct otx2_idev_cfg *idev;
	idev = otx2_intra_dev_get_cfg();
	if (!idev || !idev->npa_lf || idev->npa_lf->mbox != dev->mbox)
		return 0;
	return rte_atomic16_read(&idev->npa_refcnt);
}
int otx2_npa_lf_active ( void * otx2_dev ) { struct otx2_dev * dev = otx2_dev ; struct otx2_idev_cfg * idev ; idev = otx2_intra_dev_get_cfg ( ) ; if ( ! idev || ! idev -> npa_lf || idev -> npa_lf -> mbox != dev -> mbox ) return 0 ; return rte_atomic16_read ( & idev -> npa_refcnt ) ; }
@internal
 Is NPA lf active for the given device?.
@internal Is NPA lf active for the given device? .
/* Check if npalf is actively used on this dev */