2023-06-23 12:18:14 +00:00
|
|
|
From 158032d3d4e5089afa2aa38c27c6e222ac427820 Mon Sep 17 00:00:00 2001
|
2022-08-20 10:39:26 +00:00
|
|
|
From: Robert Marko <robimarko@gmail.com>
|
|
|
|
Date: Thu, 20 May 2021 14:57:46 +0200
|
2023-06-23 12:18:14 +00:00
|
|
|
Subject: [PATCH 4/8] EDMA: Use NAPI_POLL_WEIGHT as NAPI weight
|
2022-08-20 10:39:26 +00:00
|
|
|
|
|
|
|
Currently a weight of 100 is used by the EDMA, according
|
|
|
|
to upstream max of 64 should be used and that is used for
|
|
|
|
almost any driver.
|
|
|
|
|
|
|
|
They also introduced NAPI_POLL_WEIGHT define which equals
|
|
|
|
to 64.
|
|
|
|
|
|
|
|
So use NAPI_POLL_WEIGHT as the weight.
|
|
|
|
|
|
|
|
Signed-off-by: Robert Marko <robimarko@gmail.com>
|
|
|
|
---
|
|
|
|
hal/dp_ops/edma_dp/edma_v1/edma_data_plane.c | 2 +-
|
|
|
|
hal/dp_ops/edma_dp/edma_v1/edma_data_plane.h | 1 -
|
|
|
|
2 files changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
|
|
|
|
--- a/hal/dp_ops/edma_dp/edma_v1/edma_data_plane.c
|
|
|
|
+++ b/hal/dp_ops/edma_dp/edma_v1/edma_data_plane.c
|
2023-06-23 12:18:14 +00:00
|
|
|
@@ -845,7 +845,7 @@ static int edma_register_netdevice(struc
|
2022-08-20 10:39:26 +00:00
|
|
|
*/
|
|
|
|
if (!edma_hw.napi_added) {
|
|
|
|
netif_napi_add(netdev, &edma_hw.napi, edma_napi,
|
|
|
|
- EDMA_NAPI_WORK);
|
|
|
|
+ NAPI_POLL_WEIGHT);
|
|
|
|
/*
|
|
|
|
* Register the interrupt handlers and enable interrupts
|
|
|
|
*/
|
|
|
|
--- a/hal/dp_ops/edma_dp/edma_v1/edma_data_plane.h
|
|
|
|
+++ b/hal/dp_ops/edma_dp/edma_v1/edma_data_plane.h
|
|
|
|
@@ -26,7 +26,6 @@
|
|
|
|
#define EDMA_RX_PREHDR_SIZE (sizeof(struct edma_rx_preheader))
|
|
|
|
#define EDMA_TX_PREHDR_SIZE (sizeof(struct edma_tx_preheader))
|
|
|
|
#define EDMA_RING_SIZE 128
|
|
|
|
-#define EDMA_NAPI_WORK 100
|
|
|
|
#define EDMA_START_GMACS NSS_DP_HAL_START_IFNUM
|
|
|
|
#define EDMA_MAX_GMACS NSS_DP_HAL_MAX_PORTS
|
|
|
|
#define EDMA_TX_PKT_MIN_SIZE 33 /* IPQ807x EDMA needs a minimum packet size of 33 bytes */
|