tzh
2024-08-15 d4a1bd480003f3e1a0590bc46fbcb24f05652ca7
longan/kernel/linux-4.9/drivers/net/wireless/aic8800/aic8800_fdrv/rwnx_txq.h
old mode 100644new mode 100755
....@@ -116,7 +116,6 @@
116116 */
117117 struct rwnx_hwq {
118118 struct list_head list;
119
- u8 credits[CONFIG_USER_MAX];
120119 u8 size;
121120 u8 id;
122121 bool need_processing;
....@@ -257,25 +256,6 @@
257256 static inline bool rwnx_txq_is_scheduled(struct rwnx_txq *txq)
258257 {
259258 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));
279259 }
280260
281261 /**