diff options
author | Karen Xie <kxie@chelsio.com> | 2014-12-11 19:13:29 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-12-12 11:22:29 -0500 |
commit | 84944d8cf5d16c281e9389d90de20b9ceb96765e (patch) | |
tree | a37c9b4564deecbe3f868acf7e4d708cc5dbf21e /drivers/scsi/cxgbi/libcxgbi.h | |
parent | 37e9a6904520b525b542ecd67201164d06fdb95a (diff) | |
download | blackbird-op-linux-84944d8cf5d16c281e9389d90de20b9ceb96765e.tar.gz blackbird-op-linux-84944d8cf5d16c281e9389d90de20b9ceb96765e.zip |
cxgb4i: fix tx immediate data credit check
Only data skbs need the wr header added while control skbs do not. Make sure
they are treated differently.
Signed-off-by: Karen Xie <kxie@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/scsi/cxgbi/libcxgbi.h')
-rw-r--r-- | drivers/scsi/cxgbi/libcxgbi.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/cxgbi/libcxgbi.h b/drivers/scsi/cxgbi/libcxgbi.h index 2c7cb1c0c453..aba1af720df6 100644 --- a/drivers/scsi/cxgbi/libcxgbi.h +++ b/drivers/scsi/cxgbi/libcxgbi.h @@ -317,8 +317,8 @@ static inline void cxgbi_skcb_clear_flag(struct sk_buff *skb, __clear_bit(flag, &(cxgbi_skcb_flags(skb))); } -static inline int cxgbi_skcb_test_flag(struct sk_buff *skb, - enum cxgbi_skcb_flags flag) +static inline int cxgbi_skcb_test_flag(const struct sk_buff *skb, + enum cxgbi_skcb_flags flag) { return test_bit(flag, &(cxgbi_skcb_flags(skb))); } |