From patchwork Tue Nov 3 07:18:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Muneendra Kumar X-Patchwork-Id: 315368 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.2 required=3.0 tests=BAYES_00, DATE_IN_PAST_06_12, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MIME_HEADER_CTYPE_ONLY,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, T_TVD_MIME_NO_HEADERS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8D0E8C55178 for ; Tue, 3 Nov 2020 14:12:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 40820223AB for ; Tue, 3 Nov 2020 14:12:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="cCzmcIYc" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729612AbgKCOMk (ORCPT ); Tue, 3 Nov 2020 09:12:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729429AbgKCOML (ORCPT ); Tue, 3 Nov 2020 09:12:11 -0500 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C615C0613D1 for ; Tue, 3 Nov 2020 06:12:11 -0800 (PST) Received: by mail-pf1-x441.google.com with SMTP id z3so7914353pfz.6 for ; Tue, 03 Nov 2020 06:12:11 -0800 (PST) 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=MGgexGhFFtI686jxaiBmnSO4jBkuhzzDm6lAoXYk2oE=; b=cCzmcIYcEQ3D3GurrOR0a5wkZd49qbbX5vd8lLqaf5upYOC7o+iEiHHmn8taX1j9Ml 12UMHOZzJejPEKSjGkHPgkI5CBLrAO4mmqNjb8PrdiswzD9gOqaak+PiHY9gn3nfDWib BP+2QtY/0inKDW8k9N23UlL9NLKUi1nxLQRk4= 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=MGgexGhFFtI686jxaiBmnSO4jBkuhzzDm6lAoXYk2oE=; b=OqIJPbBWkImqOH7PJDpeJuly8QdimHgkEiAodYSR5241YQEswoLLIe9ZJnI2BMyMr2 M3XYGaLhh6tDNFkcVauwYrWXr1U1P/YG3PiGM1mLZlyoNTL+agXhu8m43mVVr+wpinZY UzbA4Y5/ljVXp1S+uWma4krxkaU+/KMYdm9RUlEifVvN48WSptwb5YyLj+p8DUFHqQxs aHFfCvuTV4lGph7rNVJfmnra7l2U+AlSIfe7EfOTmkPj218W6Rd9inNS3Ud4+lyjjDV3 twuhqBhOvxtIZBGo9AxuRj7MWiNbkpWrhFDqKyye3cMfmttZO1Bv2PPGwk+Yhr02Qb6c KzDA== X-Gm-Message-State: AOAM531aKNOry1ICnpRR687WmuCNUbo73XcPZI9oe0FFbIB0DWWfV1IQ KeId3IBFoLCEpAiyf/in86O6lA== X-Google-Smtp-Source: ABdhPJxFZ5ZgvIw6G8fi8DFWscxSU5GoNnKlNZFxqFE+jF6J7Zaw2LpdLYUbG7AhbxCkB6DGs94z6Q== X-Received: by 2002:a17:90a:1903:: with SMTP id 3mr4185753pjg.74.1604412730982; Tue, 03 Nov 2020 06:12:10 -0800 (PST) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id t19sm3596691pgv.37.2020.11.03.06.12.07 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Nov 2020 06:12:10 -0800 (PST) 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: [PATCH v3 07/19] lpfc: vmid: Forward declarations for APIs Date: Tue, 3 Nov 2020 12:48:11 +0530 Message-Id: <1604387903-20006-8-git-send-email-muneendra.kumar@broadcom.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1604387903-20006-1-git-send-email-muneendra.kumar@broadcom.com> References: <1604387903-20006-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 --- v3: No change 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);