[SCSI] libfcoe: add checking disable flag in FIP_FKA_ADV
authorYi Zou <yi.zou@intel.com>
Fri, 20 Nov 2009 22:54:57 +0000 (14:54 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 4 Dec 2009 18:01:55 +0000 (12:01 -0600)
commit8cdffdccd948ea4872b7b65280bc04f2fa93fc96
tree7713d23f0a066e15b0f9c148bda62fd8db4fec53
parent6580bbd0afe6ba1be5d53b331e92a7690046c923
[SCSI] libfcoe: add checking disable flag in FIP_FKA_ADV

When the D bit is set if the FKA_ADV_Period of the FIP Discovery
Advertisement, the ENode should not transmit period ENode FIP Keep Alive and
VN_Port FIP Keep Alive (FC-BB-5 Rev2, 7.8.3.13).

Note that fcf->flags is taken directly from the fip_header, I am claiming one
bit for the purpose of the FIP_FKA_Period D bit as FIP_FL_FK_ADV_B, and use
FIP_HEADER_FLAGS as bitmask for bits used in fip_header.

Signed-off-by: Yi Zou <yi.zou@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/fcoe/libfcoe.c
include/scsi/fc/fc_fip.h
include/scsi/libfcoe.h