Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 132329
b: refs/heads/master
c: fc47ff6
h: refs/heads/master
i:
  132327: a037284
v: v3
  • Loading branch information
Robert Love authored and James Bottomley committed Mar 10, 2009
1 parent c964d1a commit 3a55628
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b2ab99c9a300e572105d6db7f6efe0a4d1572167
refs/heads/master: fc47ff6b1b27fb736f255ed8cd490356e0cd228f
2 changes: 1 addition & 1 deletion trunk/drivers/scsi/fcoe/fcoe_sw.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ static int fcoe_sw_destroy(struct net_device *netdev)
if (!lp)
return -ENODEV;

fc = fcoe_softc(lp);
fc = lport_priv(lp);

/* Logout of the fabric */
fc_fabric_logoff(lp);
Expand Down
12 changes: 6 additions & 6 deletions trunk/drivers/scsi/fcoe/libfcoe.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ int fcoe_xmit(struct fc_lport *lp, struct fc_frame *fp)

WARN_ON((fr_len(fp) % sizeof(u32)) != 0);

fc = fcoe_softc(lp);
fc = lport_priv(lp);
/*
* if it is a flogi then we need to learn gw-addr
* and my own fcid
Expand Down Expand Up @@ -768,7 +768,7 @@ static int fcoe_check_wait_queue(struct fc_lport *lp)
struct sk_buff *skb;
struct fcoe_softc *fc;

fc = fcoe_softc(lp);
fc = lport_priv(lp);
spin_lock_bh(&fc->fcoe_pending_queue.lock);

/*
Expand Down Expand Up @@ -805,7 +805,7 @@ static void fcoe_insert_wait_queue_head(struct fc_lport *lp,
{
struct fcoe_softc *fc;

fc = fcoe_softc(lp);
fc = lport_priv(lp);
spin_lock_bh(&fc->fcoe_pending_queue.lock);
__skb_queue_head(&fc->fcoe_pending_queue, skb);
spin_unlock_bh(&fc->fcoe_pending_queue.lock);
Expand All @@ -823,7 +823,7 @@ static void fcoe_insert_wait_queue(struct fc_lport *lp,
{
struct fcoe_softc *fc;

fc = fcoe_softc(lp);
fc = lport_priv(lp);
spin_lock_bh(&fc->fcoe_pending_queue.lock);
__skb_queue_tail(&fc->fcoe_pending_queue, skb);
spin_unlock_bh(&fc->fcoe_pending_queue.lock);
Expand Down Expand Up @@ -1113,7 +1113,7 @@ MODULE_PARM_DESC(destroy, "Destroy fcoe port");
*/
int fcoe_link_ok(struct fc_lport *lp)
{
struct fcoe_softc *fc = fcoe_softc(lp);
struct fcoe_softc *fc = lport_priv(lp);
struct net_device *dev = fc->real_dev;
struct ethtool_cmd ecmd = { ETHTOOL_GSET };
int rc = 0;
Expand Down Expand Up @@ -1329,7 +1329,7 @@ int fcoe_hostlist_add(const struct fc_lport *lp)

fc = fcoe_hostlist_lookup_softc(fcoe_netdev(lp));
if (!fc) {
fc = fcoe_softc(lp);
fc = lport_priv(lp);
write_lock_bh(&fcoe_hostlist_lock);
list_add_tail(&fc->list, &fcoe_hostlist);
write_unlock_bh(&fcoe_hostlist_lock);
Expand Down
8 changes: 1 addition & 7 deletions trunk/include/scsi/libfcoe.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,10 @@ struct fcoe_softc {
u8 address_mode;
};

static inline struct fcoe_softc *fcoe_softc(
const struct fc_lport *lp)
{
return (struct fcoe_softc *)lport_priv(lp);
}

static inline struct net_device *fcoe_netdev(
const struct fc_lport *lp)
{
return fcoe_softc(lp)->real_dev;
return ((struct fcoe_softc *)lport_priv(lp))->real_dev;
}

static inline struct fcoe_hdr *skb_fcoe_header(const struct sk_buff *skb)
Expand Down

0 comments on commit 3a55628

Please sign in to comment.