]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnx2fc: Prevent creating of NPIV port with duplicate WWN
authorBhanu Prakash Gollapudi <bprakash@broadcom.com>
Fri, 5 Aug 2011 00:38:51 +0000 (17:38 -0700)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 01:36:47 +0000 (09:36 +0800)
commitb6c9aa8ba47d90ce60fb16f328237658ee88b5b2
tree8caa770de7073afcb395ba835a7cd03d07249a46
parent612cef5b8d7f30226cc0128171bbd1abee33446c
bnx2fc: Prevent creating of NPIV port with duplicate WWN

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: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
(cherry picked from commit 861efc547ce517e3d75a507ebc2268e6a0dfa767)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/scsi/bnx2fc/bnx2fc_fcoe.c