diff options
author | Vasu Dev <vasu.dev@intel.com> | 2009-07-29 20:05:45 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-08-22 18:52:11 -0400 |
commit | 1d1b88dc01e5fd2b3e2abb7aa42d0f1eca4c33ea (patch) | |
tree | cf08966d7c2f7e81c989b312e173d37ba4a59ef9 /drivers/scsi/fcoe/fcoe.h | |
parent | 53fcfbbef569819706b880a502ff62e2852edfce (diff) |
[SCSI] fcoe: removes phys_dev and renames real_dev to netdev.
The phys_dev was used only to locate common offload EM instance for all
FCoE instances on a eth devices in function fcoe_em_config, so just updated
fcoe_em_config to look for actual real eth device in locating common offload
EM instance and then no need to store phys_dev in fcoe_softc, so removes
phys_dev from fcoe_softc also.
Renames fcoe_softc real_dev to netdev and updates all its uses to use netdev.
So effectively no functional change, use of single netdev instead phys_dev
and real_dev saves one pointer memory in fcoe_softc, also real_dev used here
was confusing with vlan driver terminology since real_dev in vlan driver is
referred to physical eth device.
Signed-off-by: Vasu Dev <vasu.dev@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/fcoe/fcoe.h')
-rw-r--r-- | drivers/scsi/fcoe/fcoe.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/scsi/fcoe/fcoe.h b/drivers/scsi/fcoe/fcoe.h index 6905efc166bf..5ae8ca71afcb 100644 --- a/drivers/scsi/fcoe/fcoe.h +++ b/drivers/scsi/fcoe/fcoe.h | |||
@@ -79,8 +79,7 @@ struct fcoe_percpu_s { | |||
79 | */ | 79 | */ |
80 | struct fcoe_softc { | 80 | struct fcoe_softc { |
81 | struct list_head list; | 81 | struct list_head list; |
82 | struct net_device *real_dev; | 82 | struct net_device *netdev; |
83 | struct net_device *phys_dev; /* device with ethtool_ops */ | ||
84 | struct fc_exch_mgr *oem; /* offload exchange manger */ | 83 | struct fc_exch_mgr *oem; /* offload exchange manger */ |
85 | struct packet_type fcoe_packet_type; | 84 | struct packet_type fcoe_packet_type; |
86 | struct packet_type fip_packet_type; | 85 | struct packet_type fip_packet_type; |
@@ -95,7 +94,7 @@ struct fcoe_softc { | |||
95 | static inline struct net_device *fcoe_netdev( | 94 | static inline struct net_device *fcoe_netdev( |
96 | const struct fc_lport *lp) | 95 | const struct fc_lport *lp) |
97 | { | 96 | { |
98 | return ((struct fcoe_softc *)lport_priv(lp))->real_dev; | 97 | return ((struct fcoe_softc *)lport_priv(lp))->netdev; |
99 | } | 98 | } |
100 | 99 | ||
101 | #endif /* _FCOE_H_ */ | 100 | #endif /* _FCOE_H_ */ |