Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1329819ybg; Thu, 4 Jun 2020 07:06:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdIBKAAR/UXuzsXA7HofTtESeUxN6gRdSZctO9sVM27cUEPkiG3cy2YEaYPb2KkQFE7br8 X-Received: by 2002:aa7:db51:: with SMTP id n17mr4315200edt.241.1591279612060; Thu, 04 Jun 2020 07:06:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591279612; cv=none; d=google.com; s=arc-20160816; b=bwU3uPcZQ0A3O9j03WQrvp2iL+dN6HeIH3rPdmCxoFiH3/p/VjiKEO5N5EOJJsIveC nIiY04fub/3vWj7v64Yyi9yfKsikvoEVy27s4jH+TRK0IhihgCmZOsxcg4fVt80rkGzs LOKzcc3eYdxFGa0iyggiUh16cQqhtggILA+MqEsMf0/Td1OCITu4485hrGnJ0SJDEuvT 79BC+LyJITwsjvgTrACmeEU9PpOniu3XNUV9IDUPxGaZ1MTX59UFpsRLpruXDfYCWAQS myGb/U6CB7v7W8kyiRqO2v+VqUmsMn+Upg+2tMOOU+IgMWQX/TNJU7jb3xu+kXUoAP1Z yYOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Tl0h/kdXWRtW6bYHOco9EZrWOe2X2I4gvcmGo1j2MyQ=; b=r6xHgDGh6aE+FSXkrVwssz8PapK6ZBFf4TQQhlulrxiFaPJOtHa4pa+UKyy182kAjJ Pod8haANwsmt5/kLvsZ2kHIdv2ExERdSzvhqRY8MOHJNWaVV0TU55QDEIv+aB9w40WeN hcU0pq4q0XMXuGuyuz+PfCXql9KwIkWon1+NgL3Gy5yIXmU0ddxpr0a7RbOtWIS7pACA Xn1HTVLaDA6+RGKkpIGjX5Ew/2+xzEMxA9lZO3GPYQhzXMDlia2OvYlt5Wff/5+tR8Xa 940AEwVxk17fQ2LxCCsZolslb473cfHAFoNgMi5gWkWMvcKG/dbolPxdEIoRs0M9J812 fTbw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s7si1668289ejo.438.2020.06.04.07.06.26; Thu, 04 Jun 2020 07:06:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728865AbgFDODk (ORCPT + 99 others); Thu, 4 Jun 2020 10:03:40 -0400 Received: from mx2.suse.de ([195.135.220.15]:36468 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728496AbgFDODk (ORCPT ); Thu, 4 Jun 2020 10:03:40 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id CE82BAC6C; Thu, 4 Jun 2020 14:03:42 +0000 (UTC) Subject: Re: [PATCH 1/1] nvme-fcloop: verify wwnn and wwpn format To: Chaitanya Kulkarni , Dongli Zhang , "linux-nvme@lists.infradead.org" , "james.smart@broadcom.com" Cc: "linux-kernel@vger.kernel.org" , "hch@lst.de" , "sagi@grimberg.me" References: <20200526042118.17836-1-dongli.zhang@oracle.com> <38a2cfb9-df2a-c5cb-6797-2b96ef049c7c@oracle.com> From: Hannes Reinecke Message-ID: <6c646a1e-ab40-63a1-01cb-6cc2548a3853@suse.de> Date: Thu, 4 Jun 2020 16:03:38 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/4/20 8:54 AM, Chaitanya Kulkarni wrote: > On 6/3/20 11:46 PM, Dongli Zhang wrote: >> May I get feedback for this? >> >> For the first time I use fcloop, I set: >> >> # echo "wwnn=0x3,wwpn=0x1" > /sys/class/fcloop/ctl/add_target_port >> >> However, I would not be able to move forward if I use "0x3" or "0x1" for nvme-fc >> target or host further. Instead, the address and port should be >> 0x0000000000000003 and 0x0000000000000001. >> >> This patch would sync the requirements of input format for nvme-fc and >> nvme-fcloop, unless this would break existing test suite (e.g., blktest). > If I remember correctly I don't think we have fc-loop testcases (correct > me if I'm wrong). > Well, I sent some testcases a while back (cf 'fcloop and ANA fixes'). Should I resend them? > Not an fc expert, but having uniform format for the input make sense to > me (unless there is an explicit reason). I'll let James have a final say. > I would stick to use the full 64bit number for both wwpn and wwnn; one gets into too many arguments otherwise (big-endian? little-endian?). And one could argue that '0x0000000000000001' is invalid anyway as per FC-FS3 a '0' in word 0 byte 0 means 'Name not present' :-) Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer