mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 16:31:13 +00:00
2558e7b443
Qualcomm NSS-DP is as its name says Qualcomms ethernet driver for the NSS subsystem (Networking subsystem) built-into various Qualcomm SoCs. It has 2 modes of operation: * Without NSS FW and rest of code required for offloading This is the one that we will use as the amount of kernel patching required for NSS offloading and the fact that its not upstreamable at all makes it unusable for us. Driver in this mode is rather basic, it currently only offers NAPI GRO (Added by us as part of the fixup) and basically relies on the powerfull CPU to get good throughput. * With NSS FW and rest of code required for offloading In this mode, driver just registers the interfaces and hooks them into NSS-ECM to allow offloading. This mode is not viable for use in OpenWrt due to reasons already described above. This driver is required for ipq807x to have wired networking until a better one is available, so lets add the fixed-up version for 5.15 for now. Signed-off-by: Robert Marko <robimarko@gmail.com>
42 lines
1.5 KiB
Diff
42 lines
1.5 KiB
Diff
From 44a30d94abcbb10aacc21db29be212518a6b1bf7 Mon Sep 17 00:00:00 2001
|
|
From: Robert Marko <robimarko@gmail.com>
|
|
Date: Thu, 20 May 2021 14:57:46 +0200
|
|
Subject: [PATCH] EDMA: Use NAPI_POLL_WEIGHT as NAPI weight
|
|
|
|
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
|
|
@@ -837,7 +837,7 @@ static int edma_register_netdevice(struc
|
|
*/
|
|
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 */
|