diff options
Diffstat (limited to 'drivers/net/ethernet/chelsio/libcxgb/libcxgb_cm.h')
-rw-r--r-- | drivers/net/ethernet/chelsio/libcxgb/libcxgb_cm.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/libcxgb/libcxgb_cm.h b/drivers/net/ethernet/chelsio/libcxgb/libcxgb_cm.h index 70999e8cf4b7..515b94ff9080 100644 --- a/drivers/net/ethernet/chelsio/libcxgb/libcxgb_cm.h +++ b/drivers/net/ethernet/chelsio/libcxgb/libcxgb_cm.h | |||
@@ -142,4 +142,19 @@ cxgb_mk_abort_rpl(struct sk_buff *skb, u32 len, u32 tid, u16 chan) | |||
142 | rpl->cmd = CPL_ABORT_NO_RST; | 142 | rpl->cmd = CPL_ABORT_NO_RST; |
143 | set_wr_txq(skb, CPL_PRIORITY_DATA, chan); | 143 | set_wr_txq(skb, CPL_PRIORITY_DATA, chan); |
144 | } | 144 | } |
145 | |||
146 | static inline void | ||
147 | cxgb_mk_rx_data_ack(struct sk_buff *skb, u32 len, u32 tid, u16 chan, | ||
148 | u32 credit_dack) | ||
149 | { | ||
150 | struct cpl_rx_data_ack *req; | ||
151 | |||
152 | req = (struct cpl_rx_data_ack *)__skb_put(skb, len); | ||
153 | memset(req, 0, len); | ||
154 | |||
155 | INIT_TP_WR(req, tid); | ||
156 | OPCODE_TID(req) = cpu_to_be32(MK_OPCODE_TID(CPL_RX_DATA_ACK, tid)); | ||
157 | req->credit_dack = cpu_to_be32(credit_dack); | ||
158 | set_wr_txq(skb, CPL_PRIORITY_ACK, chan); | ||
159 | } | ||
145 | #endif | 160 | #endif |