Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124692
b: refs/heads/master
c: 73c3367
h: refs/heads/master
v: v3
  • Loading branch information
Karen Xie authored and James Bottomley committed Dec 30, 2008
1 parent db6816c commit c3f11e1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 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: c3673464ebc004a3d82063cd41b9cf74d1b55db2
refs/heads/master: 73c336740362731983bf7fd747cdd3b6ac593cef
8 changes: 4 additions & 4 deletions trunk/drivers/scsi/cxgb3i/cxgb3i_offload.c
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ static inline void reset_wr_list(struct s3_conn *c3cn)
static inline void enqueue_wr(struct s3_conn *c3cn,
struct sk_buff *skb)
{
skb->sp = NULL;
skb_wr_data(skb) = NULL;

/*
* We want to take an extra reference since both us and the driver
Expand All @@ -509,7 +509,7 @@ static inline void enqueue_wr(struct s3_conn *c3cn,
if (!c3cn->wr_pending_head)
c3cn->wr_pending_head = skb;
else
c3cn->wr_pending_tail->sp = (void *)skb;
skb_wr_data(skb) = skb;
c3cn->wr_pending_tail = skb;
}

Expand All @@ -529,8 +529,8 @@ static inline struct sk_buff *dequeue_wr(struct s3_conn *c3cn)

if (likely(skb)) {
/* Don't bother clearing the tail */
c3cn->wr_pending_head = (struct sk_buff *)skb->sp;
skb->sp = NULL;
c3cn->wr_pending_head = skb_wr_data(skb);
skb_wr_data(skb) = NULL;
}
return skb;
}
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/scsi/cxgb3i/cxgb3i_offload.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,23 +180,23 @@ void cxgb3i_c3cn_release(struct s3_conn *);
* @seq: tcp sequence number
* @ddigest: pdu data digest
* @pdulen: recovered pdu length
* @ulp_data: scratch area for ULP
* @wr_data: scratch area for tx wr
*/
struct cxgb3_skb_cb {
__u8 flags;
__u8 ulp_mode;
__u32 seq;
__u32 ddigest;
__u32 pdulen;
__u8 ulp_data[16];
struct sk_buff *wr_data;
};

#define CXGB3_SKB_CB(skb) ((struct cxgb3_skb_cb *)&((skb)->cb[0]))

#define skb_ulp_mode(skb) (CXGB3_SKB_CB(skb)->ulp_mode)
#define skb_ulp_ddigest(skb) (CXGB3_SKB_CB(skb)->ddigest)
#define skb_ulp_pdulen(skb) (CXGB3_SKB_CB(skb)->pdulen)
#define skb_ulp_data(skb) (CXGB3_SKB_CB(skb)->ulp_data)
#define skb_wr_data(skb) (CXGB3_SKB_CB(skb)->wr_data)

enum c3cb_flags {
C3CB_FLAG_NEED_HDR = 1 << 0, /* packet needs a TX_DATA_WR header */
Expand Down

0 comments on commit c3f11e1

Please sign in to comment.