From owner-freebsd-scsi@FreeBSD.ORG Mon Dec 9 20:23:08 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 1C6D0141 for ; Mon, 9 Dec 2013 20:23:08 +0000 (UTC) Received: from nargothrond.kdm.org (nargothrond.kdm.org [70.56.43.81]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D78DD1DD8 for ; Mon, 9 Dec 2013 20:23:07 +0000 (UTC) Received: from nargothrond.kdm.org (localhost [127.0.0.1]) by nargothrond.kdm.org (8.14.2/8.14.2) with ESMTP id rB9KN6YK079525; Mon, 9 Dec 2013 13:23:06 -0700 (MST) (envelope-from ken@nargothrond.kdm.org) Received: (from ken@localhost) by nargothrond.kdm.org (8.14.2/8.14.2/Submit) id rB9KN6b3079524; Mon, 9 Dec 2013 13:23:06 -0700 (MST) (envelope-from ken) Date: Mon, 9 Dec 2013 13:23:06 -0700 From: "Kenneth D. Merry" To: Bharat Singh Subject: Re: NPIV support in freebsd Message-ID: <20131209202306.GA78605@nargothrond.kdm.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2i 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: Mon, 09 Dec 2013 20:23:08 -0000 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