mirror of
https://github.com/breeze303/nss-packages.git
synced 2025-12-16 16:57:29 +00:00
Add NSS-DP from QSDK11.4. NSS-DP is the ethernet driver kernel module. It can be used in standalone mode or with NSS offloading. It includes patches to it in order to work under kernel 5.10. Made for and tested only for IPQ807x. Signed-off-by: Robert Marko <robimarko@gmail.com>
32 lines
961 B
Diff
32 lines
961 B
Diff
From d74920e2a7c413ef40eed72f9cf287cf6fbd5fb8 Mon Sep 17 00:00:00 2001
|
|
From: Robert Marko <robimarko@gmail.com>
|
|
Date: Thu, 20 May 2021 14:56:46 +0200
|
|
Subject: [PATCH 1/2] EDMA: Fix NAPI packet counting
|
|
|
|
There is a bug in the NAPI packet counting that will
|
|
cause NAPI over budget warnings.
|
|
|
|
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
|
|
Signed-off-by: Robert Marko <robimarko@gmail.com>
|
|
---
|
|
hal/edma/edma_tx_rx.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
--- a/hal/edma/edma_tx_rx.c
|
|
+++ b/hal/edma/edma_tx_rx.c
|
|
@@ -458,12 +458,12 @@ int edma_napi(struct napi_struct *napi,
|
|
|
|
for (i = 0; i < ehw->txcmpl_rings; i++) {
|
|
txcmpl_ring = &ehw->txcmpl_ring[i];
|
|
- work_done += edma_clean_tx(ehw, txcmpl_ring);
|
|
+ edma_clean_tx(ehw, txcmpl_ring);
|
|
}
|
|
|
|
for (i = 0; i < ehw->rxfill_rings; i++) {
|
|
rxfill_ring = &ehw->rxfill_ring[i];
|
|
- work_done += edma_alloc_rx_buffer(ehw, rxfill_ring);
|
|
+ edma_alloc_rx_buffer(ehw, rxfill_ring);
|
|
}
|
|
|
|
/*
|