[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ce92c93e-88f1-4186-92fa-f2126400ddbd@davidwei.uk>
Date: Thu, 6 Jun 2024 18:08:12 +0100
From: David Wei <dw@...idwei.uk>
To: Maciek Machnikowski <maciek@...hnikowski.net>,
Jakub Kicinski <kuba@...nel.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Re: [BUG] [PATCH net-next v3 0/2] netdevsim: add NAPI support
On 2024-06-05 12:38, Maciek Machnikowski wrote:
>
>
> On 24/04/2024 04:36, David Wei wrote:
>> Add NAPI support to netdevsim and register its Rx queues with NAPI
>> instances. Then add a selftest using the new netdev Python selftest
>> infra to exercise the existing Netdev Netlink API, specifically the
>> queue-get API.
>>
>> This expands test coverage and further fleshes out netdevsim as a test
>> device. It's still my goal to make it useful for testing things like
>> flow steering and ZC Rx.
>>
>> -----
>> Changes since v2:
>> * Fix null-ptr-deref on cleanup path if netdevsim is init as VF
>> * Handle selftest failure if real netdev fails to change queues
>> * Selftest addremove_queue test case:
>> * Skip if queues == 1
>> * Changes either combined or rx queue depending on how the netdev is
>> configured
>>
>> Changes since v1:
>> * Use sk_buff_head instead of a list for per-rq skb queue
>> * Drop napi_schedule() if skb queue is not empty in napi poll
>> * Remove netif_carrier_on() in open()
>> * Remove unused page pool ptr in struct netdevsim
>> * Up the netdev in NetDrvEnv automatically
>> * Pass Netdev Netlink as a param instead of using globals
>> * Remove unused Python imports in selftest
>
> Hi!
>
> This change breaks netdevsim on my setup.
> Tested on Parallels ARM VM running on Mac with Fedora 40.
>
> When using netdevsim from the latest 6.10-rc2 (and -rc1) I can't pass
> any traffic (not completing any pings) nor complete
> tools/testing/selftests/drivers/net/netdevsim/peer.sh test (the test
> hangs at socat step trying to send anything through).
Hi Maciek, I could not reproduce the bug with peer.sh selftest on a bare
ARM Ampere system with 6.10-rc2 and CentOS 9.
Could you please share your kconfig? I'll see if I can repro on Fedora
40.
>
> Regards
> Maciek
Powered by blists - more mailing lists