Browse Source

qcacmn: Decrement quota for all packets in rx process

Decrement quota and num_pending for all packets in
rx process

Change-Id: I296c7bc2590cc388ce24cc75455b62656434f2af
CRs-Fixed: 3137924
Pavankumar Nandeshwar 3 năm trước cách đây
mục cha
commit
649873d3a1
1 tập tin đã thay đổi với 3 bổ sung9 xóa
  1. 3 9
      dp/wifi3.0/li/dp_li_rx.c

+ 3 - 9
dp/wifi3.0/li/dp_li_rx.c

@@ -509,15 +509,9 @@ more_data:
 		rx_desc->unmapped = 1;
 		DP_RX_PROCESS_NBUF(soc, nbuf_head, nbuf_tail, ebuf_head,
 				   ebuf_tail, rx_desc);
-		/*
-		 * if continuation bit is set then we have MSDU spread
-		 * across multiple buffers, let us not decrement quota
-		 * till we reap all buffers of that MSDU.
-		 */
-		if (qdf_likely(!qdf_nbuf_is_rx_chfrag_cont(rx_desc->nbuf))) {
-			quota -= 1;
-			num_pending -= 1;
-		}
+
+		quota -= 1;
+		num_pending -= 1;
 
 		dp_rx_add_to_free_desc_list(&head[rx_desc->pool_id],
 					    &tail[rx_desc->pool_id], rx_desc);