From 24d3f95a5b6082ca4aba89071ca6259e15d3e564 Mon Sep 17 00:00:00 2001 From: "kxie@chelsio.com" Date: Thu, 23 Sep 2010 16:43:23 -0700 Subject: [SCSI] cxgbi: rename alloc_cpl to alloc_wr Signed-off-by: Karen Xie Reviewed-by: Mike Christie Signed-off-by: James Bottomley --- drivers/scsi/cxgbi/libcxgbi.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'drivers/scsi/cxgbi/libcxgbi.h') diff --git a/drivers/scsi/cxgbi/libcxgbi.h b/drivers/scsi/cxgbi/libcxgbi.h index 40551f3be5dc..2f2485b0f9ec 100644 --- a/drivers/scsi/cxgbi/libcxgbi.h +++ b/drivers/scsi/cxgbi/libcxgbi.h @@ -410,16 +410,15 @@ static inline unsigned int cxgbi_sock_compute_wscale(unsigned int win) return wscale; } -static inline struct sk_buff *alloc_cpl(int cpl_len, int dlen, gfp_t gfp) +static inline struct sk_buff *alloc_wr(int wrlen, int dlen, gfp_t gfp) { - int wrlen = roundup(cpl_len, 16); struct sk_buff *skb = alloc_skb(wrlen + dlen, gfp); if (skb) { __skb_put(skb, wrlen); memset(skb->head, 0, wrlen + dlen); } else - pr_info("alloc cpl skb %u+%u, OOM.\n", cpl_len, dlen); + pr_info("alloc cpl wr skb %u+%u, OOM.\n", wrlen, dlen); return skb; } -- cgit v1.2.1