From owner-freebsd-scsi@FreeBSD.ORG Tue Dec 10 02:06:51 2013 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5457FBF9; Tue, 10 Dec 2013 02:06:51 +0000 (UTC) Received: from mail-ve0-x233.google.com (mail-ve0-x233.google.com [IPv6:2607:f8b0:400c:c01::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id F0DE816FF; Tue, 10 Dec 2013 02:06:50 +0000 (UTC) Received: by mail-ve0-f179.google.com with SMTP id jw12so4404994veb.10 for ; Mon, 09 Dec 2013 18:06:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=eK5njQsveflU1z8PNrgDgcMJBZLakiP08AZY01Mdmxc=; b=UrIU/NTuQfKf9PygIlXf1eKQj27o28CD2wdnoSP2oeokXD43KAKdJRWWionOmHkiBZ g/0fmPyuv9uP4tEouC4O8XLl/krDsD4IZ6ClJ8gxN1jIRirlcXx1tLKZFZHl0J/aG2Xd OXVWVSfNdWYDev/Etj3kWdovixsOzg07MTXymgM3wMPDAlWPzW1zPMqbyfnE9OKidkws x3pkMFNflFNxI6w72tp/O05Xkvgu1S5IR6AcuaP42s4cXGGNod+Bfnd3j16g1/X8WYqI ul+Ll3gbnyaguhlDyKeJTCP3L4JSAs8oKfMGCHzt8Z/Obj/I76WycpWzkR/ntLJN5uYK mMlw== X-Received: by 10.220.79.136 with SMTP id p8mr277442vck.54.1386641210167; Mon, 09 Dec 2013 18:06:50 -0800 (PST) MIME-Version: 1.0 Received: by 10.58.200.35 with HTTP; Mon, 9 Dec 2013 18:06:30 -0800 (PST) In-Reply-To: <20131209202306.GA78605@nargothrond.kdm.org> References: <20131209202306.GA78605@nargothrond.kdm.org> From: bharat singh Date: Tue, 10 Dec 2013 07:36:30 +0530 Message-ID: Subject: Re: NPIV support in freebsd To: "Kenneth D. Merry" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: freebsd-scsi@freebsd.org X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Dec 2013 02:06:51 -0000 Hi Ken, root@FCNode1:~ # tail -1 /boot/loader.conf hint.isp.0.vports=4 root@FCNode1:~ # ctladm port -l Port Online Type Name pp vp WWNN WWPN Speed Vendor 0 YES IOCTL CTL ioctl 0 0 0 0 0 1 YES INTERNAL ctl2cam 0 0 0x5000000aa3c77b00 0x5000000aa3c77b02 0 2 YES INTERNAL CTL internal 0 0 0 0 0 3 YES FC isp0 0 0 0x2000001b32118e22 0x2100001b32118e22 4000000 Qlogic <<<<< no vports enabled after reboot I tried to add the hint to /boot/device.hints also but still no success. @Matt any comments ? On Tue, Dec 10, 2013 at 1:53 AM, Kenneth D. Merry wrote: > On Mon, Dec 09, 2013 at 15:33:46 +0530, Bharat Singh wrote: > > Hi, > > > > Is there a support for node port_id virtualization (NPIV) in freebsd. > > I see a lot of other implementations for IBM/Vmware/Solaris, but couldn't > > find for freebsd. > > So is it supported in CTL, if not any plans to for the same. > > The Qlogic driver (isp(4)) supports NPIV to some extent, but the > firmware currently in the tree for the 8Gb cards at least doesn't > seem to support multiple IDs: > > isp0: port 0xa400-0xa4ff mem > 0xfb9b8000-0xfb9bbfff irq 16 at device 0.0 on pci3 > isp0: non-MULTIID f/w loaded, only can enable 1 of 5 channels > isp1: port 0xa800-0xa8ff mem > 0xfb9bc000-0xfb9bffff irq 17 at device 0.1 on pci3 > isp1: setting role to 0x1 > isp1: setting role to 0x1 > isp1: setting role to 0x1 > isp1: setting role to 0x1 > isp1: setting role to 0x1 > isp1: non-MULTIID f/w loaded, only can enable 1 of 5 channels > > It is pretty much transparent to CTL when it is turned on, because it just > looks like there are more frontend ports to CTL. > > The way you turn it on is setting the number of virtual ports like this > in /boot/loader.conf: > > hint.isp.0.vports=4 > hint.isp.1.vports=4 > > I did some testing with NPIV successfully a few years ago (2009), but I > haven't done anything with it since. > > Matt Jacob probably knows more about the current state. > > Ken > -- > Kenneth Merry > ken@FreeBSD.ORG > -- Bharat Singh Member Technical Staff, NetApp