[SCSI] bfa: fix link state structure
authorJing Huang <huangj@brocade.com>
Fri, 9 Jul 2010 02:58:01 +0000 (19:58 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 27 Jul 2010 17:04:18 +0000 (12:04 -0500)
commitdb954c04cbebd7d719927118c7f58eddd8dd9913
tree5f61eaee6b6bc73d62d264ccf617b2f9cb9e400a
parent36d345a703b7b3f80a56ee37abb7908c52d1cd67
[SCSI] bfa: fix link state structure

When the FCoE Linkup event is sent to the host, the link_state
(struct bfa_pport_link_s) structure is copied to the RME buf to be sent to
the host. But the size of this structure(164 bytes) is larger than the
reserved RME buffer size(128 byes). The following changes reduce the size
of the structure to be less than RME buffer size(128 bytes):
- Remove the trunk and loop info from link_state structure, because both trunk
  and loop are not supported.
- Combine qos_vc_attr and fcf into an union.

Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/bfa/bfa_fcport.c
drivers/scsi/bfa/include/defs/bfa_defs_pport.h