[SCSI] fcoe: move netdev to fcoe_interface
[deliverable/linux.git] / drivers / scsi / fcoe / fcoe.h
index 060a6dce65804410d6c0fc26a7fe0df575b3395d..3b3886e99b48009a31f3e305fdaed7c1daf86e8a 100644 (file)
@@ -82,6 +82,7 @@ struct fcoe_interface {
        /* This will be removed once all the shared values are
         * moved out of fcoe_port */
        struct fcoe_port *priv;
+       struct net_device *netdev;
 };
 
 /*
@@ -90,7 +91,6 @@ struct fcoe_interface {
  */
 struct fcoe_port {
        struct fcoe_interface *fcoe;
-       struct net_device *netdev;
        struct fc_exch_mgr *oem;                /* offload exchange manger */
        struct packet_type  fcoe_packet_type;
        struct packet_type  fip_packet_type;
@@ -100,12 +100,11 @@ struct fcoe_port {
        struct fcoe_ctlr ctlr;
 };
 
-#define fcoe_from_ctlr(port) container_of(port, struct fcoe_port, ctlr)
+#define fcoe_from_ctlr(fip) container_of(fip, struct fcoe_port, ctlr)
 
-static inline struct net_device *fcoe_netdev(
-       const struct fc_lport *lp)
+static inline struct net_device *fcoe_netdev(const struct fc_lport *lp)
 {
-       return ((struct fcoe_port *)lport_priv(lp))->netdev;
+       return ((struct fcoe_port *)lport_priv(lp))->fcoe->netdev;
 }
 
 #endif /* _FCOE_H_ */
This page took 0.025512 seconds and 5 git commands to generate.