]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnx2fc: Introduce interface structure for each vlan interface
authorBhanu Prakash Gollapudi <bprakash@broadcom.com>
Tue, 26 Jul 2011 21:51:39 +0000 (14:51 -0700)
committerBob Picco <bob.picco@oracle.com>
Fri, 3 Feb 2012 18:19:24 +0000 (13:19 -0500)
commit378c47ffd787aa68babe4d6fa4c8825c25e60263
tree57e38c56d3956b488e7275ec0da90062e8b515ee
parentc1139286d895cbeb0c0401ada5a0946b274d7fa1
bnx2fc: Introduce interface structure for each vlan interface

Currently, bnx2fc has a hba structure that can work with only a single vlan
interface.  When there is a change in vlan id, it does not have the capability
to switch to different vlan interface. To solve this problem, a new structure
called 'interface' has been introduced, and each hba can now have multiple
interfaces, one per vlan id.

Most of the patch is a moving the interface specific fields from hba to the
interface structure, and appropriately modifying the dereferences. A list of
interfaces (if_list) is maintained along with adapter list. During a create
call, the interface structure is allocated and added to if_list and deleted &
freed on a destroy call.  Link events are propagated to all interfaces
belonging to the hba.

Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
(cherry picked from commit aea71a024914e8b5b8bed31256dae42195a0a207)
drivers/scsi/bnx2fc/bnx2fc.h
drivers/scsi/bnx2fc/bnx2fc_els.c
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
drivers/scsi/bnx2fc/bnx2fc_hwi.c
drivers/scsi/bnx2fc/bnx2fc_io.c
drivers/scsi/bnx2fc/bnx2fc_tgt.c