old mode 100644new mode 100755.. | .. |
---|
116 | 116 | */ |
---|
117 | 117 | struct rwnx_hwq { |
---|
118 | 118 | struct list_head list; |
---|
119 | | - u8 credits[CONFIG_USER_MAX]; |
---|
120 | 119 | u8 size; |
---|
121 | 120 | u8 id; |
---|
122 | 121 | bool need_processing; |
---|
.. | .. |
---|
257 | 256 | static inline bool rwnx_txq_is_scheduled(struct rwnx_txq *txq) |
---|
258 | 257 | { |
---|
259 | 258 | return (txq->status & RWNX_TXQ_IN_HWQ_LIST); |
---|
260 | | -} |
---|
261 | | - |
---|
262 | | -/** |
---|
263 | | - * rwnx_txq_is_ready_for_push - Check if a TXQ is ready for push |
---|
264 | | - * |
---|
265 | | - * @txq: txq pointer |
---|
266 | | - * |
---|
267 | | - * if |
---|
268 | | - * - txq is not stopped |
---|
269 | | - * - and hwq has credits |
---|
270 | | - * - and there is no buffer queued |
---|
271 | | - * then a buffer can be immediately pushed without having to queue it first |
---|
272 | | - * @return: true if the 3 conditions are met and false otherwise. |
---|
273 | | - */ |
---|
274 | | -static inline bool rwnx_txq_is_ready_for_push(struct rwnx_txq *txq) |
---|
275 | | -{ |
---|
276 | | - return (!rwnx_txq_is_stopped(txq) && |
---|
277 | | - txq->hwq->credits[RWNX_TXQ_POS_ID(txq)] > 0 && |
---|
278 | | - skb_queue_empty(&txq->sk_list)); |
---|
279 | 259 | } |
---|
280 | 260 | |
---|
281 | 261 | /** |
---|