qcacmn: Add a set of nbuf fragment allocation APIs
It adds a set of frag way allocation APIs explicitly. IPA Tx nbufs change to frag way allocation API, which saves memory. Current __qdf_nbuf_alloc changes to non-frag way allocation by default if SKB RECYLCER not defined. Change-Id: I5f87ffac54c49f9af920775c13b6dfdd147476dd CRs-Fixed: 3534452
This commit is contained in:

committed by
Rahul Choudhary

vanhempi
e6b159369e
commit
27f8cfff08
@@ -644,7 +644,8 @@ static int dp_ipa_tx_alt_pool_attach(struct dp_soc *soc)
|
||||
*/
|
||||
for (tx_buffer_count = 0;
|
||||
tx_buffer_count < max_alloc_count - 1; tx_buffer_count++) {
|
||||
nbuf = qdf_nbuf_alloc(soc->osdev, alloc_size, 0, 256, FALSE);
|
||||
nbuf = qdf_nbuf_frag_alloc(soc->osdev, alloc_size, 0,
|
||||
256, FALSE);
|
||||
if (!nbuf)
|
||||
break;
|
||||
|
||||
@@ -1494,7 +1495,8 @@ static int dp_tx_ipa_uc_attach(struct dp_soc *soc, struct dp_pdev *pdev)
|
||||
*/
|
||||
for (tx_buffer_count = 0;
|
||||
tx_buffer_count < max_alloc_count - 1; tx_buffer_count++) {
|
||||
nbuf = qdf_nbuf_alloc(soc->osdev, alloc_size, 0, 256, FALSE);
|
||||
nbuf = qdf_nbuf_frag_alloc(soc->osdev, alloc_size, 0,
|
||||
256, FALSE);
|
||||
if (!nbuf)
|
||||
break;
|
||||
|
||||
|
Viittaa uudesa ongelmassa
Block a user