[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAGngYiXsyRH=5UYwaCkVDDGkRX6m_Cw9iam+nSRZwA1=ZNPnOQ@mail.gmail.com>
Date: Fri, 11 Dec 2020 07:43:40 -0500
From: Sven Van Asbroeck <thesven73@...il.com>
To: Heiner Kallweit <hkallweit1@...il.com>
Cc: Bryan Whitehead <bryan.whitehead@...rochip.com>,
Microchip Linux Driver Support <UNGLinuxDriver@...rochip.com>,
David S Miller <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>, Andrew Lunn <andrew@...n.ch>,
netdev <netdev@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH net v2] lan743x: fix rx_napi_poll/interrupt ping-pong
Hi Heiner,
On Thu, Dec 10, 2020 at 2:32 AM Heiner Kallweit <hkallweit1@...il.com> 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.
> > @@ -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.
Powered by blists - more mailing lists