Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp199152rdb; Thu, 2 Nov 2023 00:26:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFSPgs72SH1GhfNsUQ0OaHt9V5uBfOuF6s41Tqa5DYKvzDIDaYIy/FZxIsAvt02B3h7jpPm X-Received: by 2002:a17:90b:1081:b0:280:a491:abff with SMTP id gj1-20020a17090b108100b00280a491abffmr5908726pjb.5.1698909978747; Thu, 02 Nov 2023 00:26:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698909978; cv=none; d=google.com; s=arc-20160816; b=wjQIGUY3XsbrqbUtOlK93viZnNc9Tr8f4JwCE1XTRqnz+SD7wrUe5fB61BwD2eBMeS y7wn5Z2mYBeZEpKwDCWYn0LewHayKUU1vV6Z2yL/oHDIgS1tixPm+uH9EmlgZT3BmWbV P9ry/WczYrBsODPmziXrgooPRs/B6jznVkN+4XtoAZR7EDDlHbMEo70wN70bonANcrC3 hfyJUt2YqLGCKADWuB4A+aOpjz5zgfAFvuPaiD8MKipQkV2KOdDqjcsSpar2MHtQyy1e pZlR3HRpPMLAWSvMezC+qp+UTYgQU45HPyEW18Ey6OYG3yzQ4K1YwSnKVH8aS4dl2S2J Xl8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=j2fJUx5ZlL0GCbBxsPWv5OxSZiq5J9Xq+Hw295A1mqk=; fh=4ZUM7khSEhjdNbLwQ8q4Wir3bHJm1lctn4k9VbVzS3c=; b=kSu9KfyXMB6I8gBlfSkR5E5qPM/N7KZVp2Ze7/uGjXFMw5xRF9PMzKmiweZoc70ZbH ITh+JTCPDOt7GitKeta7lRC1bS9RDDgRp9JkJMNHIqnOpejsE7/PqoMWfhgXPzsDGJ3D sSXn2JrGSqJbFFs/fOnGgoCBK4ZFR0BUf0XmgBfEMmh7f+NI20SAEl99xzL1d9Ez2GYF 1T5kV7tcm9FI5keiFX5nJk0usaDr47MFy6Zyb373MR1S9iimYLXkNNzpwHYNAWHHO2oq +BCWmr8iSoT3kzYoTMUYBbM0dtjSiFZdT+LESI6SGQGNPwNnBiEnoUtJBB/7MswXcvFw lCIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=CmIk56NN; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id cq16-20020a17090af99000b0026810b074afsi2345288pjb.3.2023.11.02.00.26.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 00:26:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=CmIk56NN; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id B056481CF40B; Thu, 2 Nov 2023 00:26:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233140AbjKBH0B (ORCPT + 99 others); Thu, 2 Nov 2023 03:26:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229675AbjKBH0A (ORCPT ); Thu, 2 Nov 2023 03:26:00 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB380133; Thu, 2 Nov 2023 00:25:54 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 9E4962187D; Thu, 2 Nov 2023 07:25:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1698909953; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=j2fJUx5ZlL0GCbBxsPWv5OxSZiq5J9Xq+Hw295A1mqk=; b=CmIk56NNfv5e+ppr1EJvVgMcOBQFwqtHrYQxWuPcA6niNshV0r/VQGKqT51GrRDuHhQph7 BFwJ317/bVE3XzEig27ye+C+m1zBfTzH6KfNqI5/stHQW1+UzaKadI4mrkat4C7fHQF+EF FJkNzS41gq0Utt8OoGelNhs61GqhzOo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1698909953; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=j2fJUx5ZlL0GCbBxsPWv5OxSZiq5J9Xq+Hw295A1mqk=; b=cIMWBLQfbvf1+rnzXG73PC6//kQtGeZmkquKlcVg3cQCwT1I7+aOaVZR2X2jM7t9muhuTb 1OPmjjnuiFWa+hDw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 516ED138EC; Thu, 2 Nov 2023 07:25:53 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id HTwxEgFPQ2URMAAAMHmgww (envelope-from ); Thu, 02 Nov 2023 07:25:53 +0000 Message-ID: <7526d690-1deb-4611-92ef-a3707ebd60a5@suse.de> Date: Thu, 2 Nov 2023 08:25:52 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 02/13] scsi: fnic: Add and use fnic number Content-Language: en-US To: Karan Tilak Kumar , sebaddel@cisco.com Cc: arulponn@cisco.com, djhawar@cisco.com, gcboffa@cisco.com, mkai2@cisco.com, satishkh@cisco.com, jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231027180302.418676-1-kartilak@cisco.com> <20231027180302.418676-3-kartilak@cisco.com> From: Hannes Reinecke In-Reply-To: <20231027180302.418676-3-kartilak@cisco.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 02 Nov 2023 00:26:13 -0700 (PDT) On 10/27/23 20:02, Karan Tilak Kumar wrote: > Add fnic_num in fnic.h to identify fnic in a multi-fnic environment. > Increment and set the fnic number during driver load in fnic_probe. > Replace the host number with fnic number in debugfs. > > Reviewed-by: Sesidhar Baddela > Reviewed-by: Arulprabhu Ponnusamy > Signed-off-by: Karan Tilak Kumar > --- > drivers/scsi/fnic/fnic.h | 1 + > drivers/scsi/fnic/fnic_debugfs.c | 2 +- > drivers/scsi/fnic/fnic_main.c | 6 +++++- > 3 files changed, 7 insertions(+), 2 deletions(-) > Why? The scsi host number gives you a perfectly good enumeration. And really all you do is replacing the scsi host number with an internal number, with no change in functionality. Why? Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Ivo Totev, Andrew Myers, Andrew McDonald, Martje Boudien Moerman