From patchwork Mon Oct 19 07:43:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Muneendra Kumar M X-Patchwork-Id: 11844497 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 39A061580 for ; Mon, 19 Oct 2020 14:37:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 12A88222EA for ; Mon, 19 Oct 2020 14:37:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="DaXZ3kNg" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729564AbgJSOhG (ORCPT ); Mon, 19 Oct 2020 10:37:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729555AbgJSOhG (ORCPT ); Mon, 19 Oct 2020 10:37:06 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81FD6C0613CE for ; Mon, 19 Oct 2020 07:37:06 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id w11so5067996pll.8 for ; Mon, 19 Oct 2020 07:37:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qIKw3xWux4grN263QBmQ5Vwaiymtx1IFb5AT244PNps=; b=DaXZ3kNgnz+dEN2bFo4QRSIR5tO/AyQdNCLpt/9hyadCV+gkadn4jnGDTURqZU6oXU gxbN7vW7fggNvLtOo3/pl+BK18S2cj0DXqKNXTub5+9raao7DjgXva9l2J5/ZPeUPRlp E6GQtWBwSYOQA9nOgxfYYlrvIDClTlcc6Cbzs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qIKw3xWux4grN263QBmQ5Vwaiymtx1IFb5AT244PNps=; b=s/QIxeG4J0qFzGEXPgM3A4x/DB6SqQA93kr8lzbIzyKBGezRQtrvutXiwcsqerf4Gj I20gxe3qFVW6ypVkQgzYalTuMuD+2l0kGIQHPTaJ2EvjRVZMAYRxsg10/K2CDERV2N5j SBq8JoeYRpVD+j9P6MDEIjneEi7ORJlU0j5fU1lZuqCl31WNvJ/B0RvgnB+OePK2yUWP eyIJYYcwE0/yE2KAZBxaavMRFyecSMnxOyscu0U0DPckHHCnipPkkhEUpVOZ8aVc77KW BOF8BolaOjZlPLgoGAwWijsUuEEbi/mihG/GHpPLzrsUZf/otQf45ENVxQqtg8BLK08S /kqA== X-Gm-Message-State: AOAM5314/GkZOok5c7il1dDELDa2ADPn9W1Nmr4tJkzQZPfpke9VsXJv 6kb9gU5KR3Ok0ivZeqAZ1aO3FR2mfdc/8jGR X-Google-Smtp-Source: ABdhPJxgXaDavsG/KyQxIQaqkA3E7GaYeK6TrQeSY5AjkDPthlcHOnCT3DV7qDFKkVZnGsHXPoZF0g== X-Received: by 2002:a17:90b:3393:: with SMTP id ke19mr86689pjb.3.1603118225892; Mon, 19 Oct 2020 07:37:05 -0700 (PDT) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id kb15sm53377pjb.17.2020.10.19.07.37.02 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Oct 2020 07:37:05 -0700 (PDT) From: Muneendra To: linux-block@vger.kernel.org, linux-scsi@vger.kernel.org, tj@kernel.org, linux-nvme@lists.infradead.org Cc: jsmart2021@gmail.com, emilne@redhat.com, mkumar@redhat.com, pbonzini@redhat.com, Gaurav Srivastava Subject: [RFC v2 07/18] lpfc: vmid: Forward declarations for APIs Date: Mon, 19 Oct 2020 13:13:02 +0530 Message-Id: <1603093393-12875-8-git-send-email-muneendra.kumar@broadcom.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1603093393-12875-1-git-send-email-muneendra.kumar@broadcom.com> References: <1603093393-12875-1-git-send-email-muneendra.kumar@broadcom.com> Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org From: Gaurav Srivastava This patch contains the forward declarations of commonly used APIs which are used outside the scope of the file. Signed-off-by: Gaurav Srivastava Signed-off-by: James Smart --- v2: Ported the patch on top of 5.10/scsi-queue --- drivers/scsi/lpfc/lpfc_crtn.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/scsi/lpfc/lpfc_crtn.h b/drivers/scsi/lpfc/lpfc_crtn.h index 782f6f76f18a..74ca5860ca8e 100644 --- a/drivers/scsi/lpfc/lpfc_crtn.h +++ b/drivers/scsi/lpfc/lpfc_crtn.h @@ -600,3 +600,14 @@ extern int lpfc_enable_nvmet_cnt; extern unsigned long long lpfc_enable_nvmet[]; extern int lpfc_no_hba_reset_cnt; extern unsigned long lpfc_no_hba_reset[]; + +/* vmid interface */ +int lpfc_vmid_uvem(struct lpfc_vport *vport, struct lpfc_vmid *vmid, bool ins); +u32 lpfc_vmid_get_cs_ctl(struct lpfc_vport *vport); +int lpfc_vmid_cmd(struct lpfc_vport *vport, + int cmdcode, struct lpfc_vmid *vmid); +int lpfc_vmid_hash_fn(char *vmid, int len); +struct lpfc_vmid *lpfc_get_vmid_from_hastable(struct lpfc_vport *vport, + u32 hash, u8 *buf); +void lpfc_vmid_vport_cleanup(struct lpfc_vport *vport); +int lpfc_issue_els_qfpa(struct lpfc_vport *vport);