qcacmn: Handle allocation of descriptors to special packets
Special frames like EAPOL should not be dropped as it would cause failure in connection. To prevent the dropping of higher priority special frames, reserve a set of descriptors from the tx descriptor pool. Check the regular soc or pdev limit for the allocating tx descriptors for the regular packets and use the reserved set of descriptors only for the special packets. CRs-Fixed: 3331359 Change-Id: I15532fb5e325ba6ad997090008bda8c52707a05b
This commit is contained in:

committed by
Madan Koyyalamudi

parent
a2625b18ab
commit
d148f093d2
@@ -1155,7 +1155,7 @@ struct dp_tx_desc_s *dp_tx_prepare_desc_single(struct dp_vdev *vdev,
|
||||
struct dp_pdev *pdev = vdev->pdev;
|
||||
struct dp_soc *soc = pdev->soc;
|
||||
|
||||
if (dp_tx_limit_check(vdev))
|
||||
if (dp_tx_limit_check(vdev, nbuf))
|
||||
return NULL;
|
||||
|
||||
/* Allocate software Tx descriptor */
|
||||
@@ -1300,7 +1300,7 @@ static struct dp_tx_desc_s *dp_tx_prepare_desc(struct dp_vdev *vdev,
|
||||
struct dp_pdev *pdev = vdev->pdev;
|
||||
struct dp_soc *soc = pdev->soc;
|
||||
|
||||
if (dp_tx_limit_check(vdev))
|
||||
if (dp_tx_limit_check(vdev, nbuf))
|
||||
return NULL;
|
||||
|
||||
/* Allocate software Tx descriptor */
|
||||
|
Reference in New Issue
Block a user