/* This function processes the FC header to retrieve the VFI from the VF header, if one exists. This function will return the VFI if one exists or 0 if no VSAN Header exists.  */
static uint32_t lpfc_fc_hdr_get_vfi(struct fc_frame_header *fc_hdr)
/* This function processes the FC header to retrieve the VFI from the VF header, if one exists. This function will return the VFI if one exists or 0 if no VSAN Header exists.  */
static uint32_t lpfc_fc_hdr_get_vfi(struct fc_frame_header *fc_hdr)
{
	struct fc_vft_header *fc_vft_hdr = (struct fc_vft_header *)fc_hdr;
	if (fc_hdr->fh_r_ctl != FC_RCTL_VFTH)
		return 0;
	return bf_get(fc_vft_hdr_vf_id, fc_vft_hdr);
}