All of lore.kernel.org
 help / color / mirror / Atom feed
From: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
To: nab@linux-iscsi.org
Cc: fujita.tomonori@lab.ntt.co.jp, linux-scsi@vger.kernel.org,
	brking@linux.vnet.ibm.com, lxie@us.ibm.com, rcjenn@us.ibm.com,
	michaelc@cs.wisc.edu, James.Bottomley@suse.de,
	joel.becker@oracle.com
Subject: Re: [PATCH] ibmvscsis: Move to struct ibmvscsis_vdev usage in fabric configfs handlers
Date: Tue, 02 Nov 2010 17:36:39 +0900	[thread overview]
Message-ID: <20101102173639L.fujita.tomonori@lab.ntt.co.jp> (raw)
In-Reply-To: <1288650346.7708.76.camel@haakon2.linux-iscsi.org>

On Mon, 01 Nov 2010 15:25:46 -0700
"Nicholas A. Bellinger" <nab@linux-iscsi.org> wrote:

> > I think that vio_dev->unit_address can be used to identify a nexus
> > uniquely. It's not WWPN though. It's a connection between an initiator
> > lpar and a target lpar.
> 
> Ok, then I think we will want to generate an emulated SRP WWN in
> userspace based on partially based on system_id (via existing sysfs code
> I assume..?) and drop the ->unit_address check in ibmvscsis_make_tpg()
> and continue use the dev_name(vio_dev->dev) for the TPGT part of the WWN
> +TPGT. 

Why we want to generate fake WWNs?


>  This also means we need a TCM/ibmvscsis internal method to
> ensure that each ibmvscsis_vdev is only mapped 1:1 for ibmvscsis_tport
> +ibmvscsi_tpg target_core_fabric_configfs.c callers..

That's why my initiatal driver uses tpg for vdev. They are always
1:1. Having ibmvscsis_vdev (a separate data structure for vdev) makes
no point.


> >From there VIO SRP WWPNs present in /sys/kernel/config/target/ibmvscsis/
> explictly configured by enduser can be saved into 
> /etc/target/ibmvscsis_start.sh and made persisent across reboots.
> 
> Btw, I still need to add the SRP transportID encoding/decoding for
> target_core_fabric_lib.c and TCM_Loop code, so while I am doing this I
> will have a look at writing up some python code to generate these for
> our VIO SRP WWPNs.

  reply	other threads:[~2010-11-02  8:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-30 23:13 [PATCH] ibmvscsis: Move to struct ibmvscsis_vdev usage in fabric configfs handlers Nicholas A. Bellinger
2010-11-01 21:05 ` FUJITA Tomonori
2010-11-01 21:37   ` Nicholas A. Bellinger
2010-11-01 22:15     ` FUJITA Tomonori
2010-11-01 22:25       ` Nicholas A. Bellinger
2010-11-02  8:36         ` FUJITA Tomonori [this message]
2010-11-02 13:41       ` Brian King
2010-11-02 13:47       ` Brian King
2010-11-02 14:21         ` FUJITA Tomonori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101102173639L.fujita.tomonori@lab.ntt.co.jp \
    --to=fujita.tomonori@lab.ntt.co.jp \
    --cc=James.Bottomley@suse.de \
    --cc=brking@linux.vnet.ibm.com \
    --cc=joel.becker@oracle.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=lxie@us.ibm.com \
    --cc=michaelc@cs.wisc.edu \
    --cc=nab@linux-iscsi.org \
    --cc=rcjenn@us.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.