Thread (4 messages) flat view 4 messages, 2 authors, 2020-12-11

Re: [PATCH net v2] lan743x: fix rx_napi_poll/interrupt ping-pong

From: Sven Van Asbroeck <hidden>
Date: 2020-12-11 12:45:41
Also in: lkml

Hi Heiner,

On Thu, Dec 10, 2020 at 2:32 AM Heiner Kallweit [off-list ref] wrote:

In addition you could play with sysfs attributes
/sys/class/net/<if>/gro_flush_timeout
/sys/class/net/<if>/napi_defer_hard_irqs
Interesting, I will look into that.
quoted
@@ -2407,7 +2409,7 @@ static int lan743x_rx_open(struct lan743x_rx *rx)

      netif_napi_add(adapter->netdev,
                     &rx->napi, lan743x_rx_napi_poll,
-                    rx->ring_size - 1);
+                    64);
This value isn't completely arbitrary.
Better use constant NAPI_POLL_WEIGHT.
Thank you, I will change it in the next patch version.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help