diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2013-06-14 17:58:32 +0900 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-06-17 17:12:20 -0700 |
commit | 499e2e6fcb9351844d721e4bd3f1184d879bd178 (patch) | |
tree | 2cda0a712df15b2195462f887e4c5d1ad4664fea /drivers/scsi/cxgbi | |
parent | b32369f117bbdb009a6b410ec0926a88a83002b4 (diff) | |
download | op-kernel-dev-499e2e6fcb9351844d721e4bd3f1184d879bd178.zip op-kernel-dev-499e2e6fcb9351844d721e4bd3f1184d879bd178.tar.gz |
net, scsi/csgb4i: convert skb->transport_header into skb_transport_header(skb)
The change set of 1a37e412, "net: Use 16bits for *_headers fields
of struct skbuff" converted from sk_buff_data_t into 16bit integer.
So skb->tail needs to be converted to skb_tail_pointer(skb).
Found by inspection. Compile tested only.
Cc: Simon Horman <horms@verge.net.au>
Cc: Li RongQing <roy.qing.li@gmail.com>
Cc: linux-scsi@vger.kernel.org
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Acked-by: Simon Horman <horms@verge.net.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/scsi/cxgbi')
-rw-r--r-- | drivers/scsi/cxgbi/cxgb4i/cxgb4i.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c b/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c index 3fecf35..9138d4e 100644 --- a/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c +++ b/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c @@ -358,7 +358,7 @@ static inline unsigned int calc_tx_flits_ofld(const struct sk_buff *skb) return DIV_ROUND_UP(skb->len, 8); flits = skb_transport_offset(skb) / 8; cnt = skb_shinfo(skb)->nr_frags; - if (skb->tail != skb->transport_header) + if (skb_tail_pointer(skb) != skb_transport_header(skb)) cnt++; return flits + sgl_len(cnt); } |