_to_vnic_res_type
cnt = vnic_dev_get_res_count(vnic->vdev, _to_vnic_res_type(type));
_to_vnic_res_type(type), i);