src/dpdk/drivers/common/octeontx2/otx2_dev.c
int
otx2_dev_active_vfs(void *otx2_dev)
{
	struct otx2_dev *dev = otx2_dev;
	int i, count = 0;

	for (i = 0; i < MAX_VFPF_DWORD_BITS; i++)
		count += __builtin_popcount(dev->active_vfs[i]);

	return count;
}
/**
 * @internal
 * Get number of active VFs for the given PF device.
 */
@internal
Get number of active VFs for the given PF device.
@internal Get number of active VFs for the given PF device .
int
otx2_dev_active_vfs(void *otx2_dev)
{
	struct otx2_dev *dev = otx2_dev;
	int i, count = 0;
	for (i = 0; i < MAX_VFPF_DWORD_BITS; i++)
		count += __builtin_popcount(dev->active_vfs[i]);
	return count;
}
int otx2_dev_active_vfs ( void * otx2_dev ) { struct otx2_dev * dev = otx2_dev ; int i , count = 0 ; for ( i = 0 ; i < MAX_VFPF_DWORD_BITS ; i ++ ) count += __builtin_popcount ( dev -> active_vfs [ i ] ) ; return count ; }
@internal
 Get number of active VFs for the given PF device.
@internal Get number of active VFs for the given PF device .