]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
[SCSI] fcoe: Prevent creation of an NPIV port with duplicate WWPN
authorNeerav Parikh <Neerav.Parikh@intel.com>
Mon, 16 May 2011 23:45:29 +0000 (16:45 -0700)
committerJames Bottomley <jbottomley@parallels.com>
Tue, 24 May 2011 16:36:29 +0000 (12:36 -0400)
commitbdf252183e58654fcceedbf3fdcfd878b9e4f2d6
treeb02db1a5baab6cde3fb77f2e9c7c1c302e996ce1
parentc051ad2e57e379e07e4ec28b2a54eeb0d04c5d59
[SCSI] fcoe: Prevent creation of an NPIV port with duplicate WWPN

This patch adds a validation step before allowing creation of a new NPIV port.
It checks whether the WWPN passed for the new NPIV port to be created is unique
for the given physical port.

Signed-off-by: Neerav Parikh <Neerav.Parikh@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <jbottomley@parallels.com>
drivers/scsi/fcoe/fcoe.c
drivers/scsi/fcoe/fcoe.h