]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[SCSI] 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)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 24 Aug 2011 03:35:13 +0000 (20:35 -0700)
commit28fef5ad6e9b2abfcb67ba0db51beac18cc38608
treeaf11bae1b2aaa98c386a0e71acbc0661d98e50ab
parent7642eb184bcd486f519bd3b08ca714322ce4a960
[SCSI] 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>
drivers/scsi/bnx2fc/bnx2fc_fcoe.c