Browse Source

qcacmn: Increment/Decrement num_tx_outstanding

Increment pdev->num_tx_outstanding when
tx_desc is allocated and decrement tx_desc when tx_desc
is released. During runtime pm suspend, WOW PAUSE
is sent to firmware only if there are no
pending num_tx_outstanding descriptors.

Change-Id: I54aaa4d8a37b8cd47de1701a315bb0735c9739d2
CRs-Fixed: 2567689
Venkata Sharath Chandra Manchala 5 years ago
parent
commit
d62af87cc1
1 changed files with 2 additions and 0 deletions
  1. 2 0
      dp/wifi3.0/dp_tx.c

+ 2 - 0
dp/wifi3.0/dp_tx.c

@@ -141,11 +141,13 @@ dp_tx_limit_check(struct dp_vdev *vdev)
 static inline void
 dp_tx_outstanding_inc(struct dp_pdev *pdev)
 {
+	qdf_atomic_inc(&pdev->num_tx_outstanding);
 }
 
 static inline void
 dp_tx_outstanding_dec(struct dp_pdev *pdev)
 {
+	qdf_atomic_dec(&pdev->num_tx_outstanding);
 }
 #endif //QCA_TX_LIMIT_CHECK