[SCSI] fcoe: remove fcoe_interface->priv pointer
authorChris Leech <christopher.leech@intel.com>
Tue, 25 Aug 2009 20:59:56 +0000 (13:59 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Thu, 10 Sep 2009 17:07:34 +0000 (12:07 -0500)
The priv pointer is no longer needed, and once NPIV is enabled
fcoe_interface:fc_lport becomes a one-to-many relationship.

Remove the single pointer.

Signed-off-by: Chris Leech <christopher.leech@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/fcoe/fcoe.c
drivers/scsi/fcoe/fcoe.h

index bb59a7a04f23f75a22915b262607b38d141cf3ed..7f14c633da6f60f7d0fa4da232409cf4ce251d75 100644 (file)
@@ -640,9 +640,7 @@ static struct fc_lport *fcoe_if_create(struct net_device *netdev,
        }
        lport = shost_priv(shost);
        port = lport_priv(lport);
-
        port->fcoe = fcoe;
-       fcoe->priv = port;
 
        /* configure fc_lport, e.g., em */
        rc = fcoe_lport_config(lport);
index 26e8595746045d102ce407dc83a53efebba62841..673e70e1f8bb773d3e4a3784743087e1c9a4e2e5 100644 (file)
@@ -79,9 +79,6 @@ struct fcoe_percpu_s {
  */
 struct fcoe_interface {
        struct list_head list;
-       /* This will be removed once all the shared values are
-        * moved out of fcoe_port */
-       struct fcoe_port *priv;
        struct net_device *netdev;
        struct packet_type  fcoe_packet_type;
        struct packet_type  fip_packet_type;