kernel: qca-ssdk: update to 12.4.5.r1
[openwrt/staging/jow.git] / package / kernel / qca-nss-dp / patches / 0004-EDMA-Fix-NAPI-packet-counting.patch
1 From d74920e2a7c413ef40eed72f9cf287cf6fbd5fb8 Mon Sep 17 00:00:00 2001
2 From: Robert Marko <robimarko@gmail.com>
3 Date: Thu, 20 May 2021 14:56:46 +0200
4 Subject: [PATCH 1/2] EDMA: Fix NAPI packet counting
5
6 There is a bug in the NAPI packet counting that will
7 cause NAPI over budget warnings.
8
9 Signed-off-by: Baruch Siach <baruch@tkos.co.il>
10 Signed-off-by: Robert Marko <robimarko@gmail.com>
11 ---
12 hal/dp_ops/edma_dp/edma_v1/edma_tx_rx.c | 4 ++--
13 1 file changed, 2 insertions(+), 2 deletions(-)
14
15 --- a/hal/dp_ops/edma_dp/edma_v1/edma_tx_rx.c
16 +++ b/hal/dp_ops/edma_dp/edma_v1/edma_tx_rx.c
17 @@ -459,12 +459,12 @@ int edma_napi(struct napi_struct *napi,
18
19 for (i = 0; i < ehw->txcmpl_rings; i++) {
20 txcmpl_ring = &ehw->txcmpl_ring[i];
21 - work_done += edma_clean_tx(ehw, txcmpl_ring);
22 + edma_clean_tx(ehw, txcmpl_ring);
23 }
24
25 for (i = 0; i < ehw->rxfill_rings; i++) {
26 rxfill_ring = &ehw->rxfill_ring[i];
27 - work_done += edma_alloc_rx_buffer(ehw, rxfill_ring);
28 + edma_alloc_rx_buffer(ehw, rxfill_ring);
29 }
30
31 /*