]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit803877f92fa2251f1ad35e8057d98fd22eb7cfae
tree5f61eaee6b6bc73d62d264ccf617b2f9cb9e400a
parent94cff29e6663a70ba16abc7e58d799a8efa3307d
[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