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
This commit is contained in:

committed by
nshrivas

parent
0a26d8d2c1
commit
d62af87cc1
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user