[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOhMmr6USoB-yw1HduSWc1h2AGdS7U3+Ze9nBRh51pM=V2P8Kw@mail.gmail.com>
Date: Thu, 24 Jun 2021 01:20:45 -0500
From: Lijun Pan <lijunp213@...il.com>
To: Sukadev Bhattiprolu <sukadev@...ux.ibm.com>
Cc: Networking <netdev@...r.kernel.org>,
Dany Madden <drt@...ux.ibm.com>,
Rick Lindsley <ricklind@...ux.ibm.com>,
Brian King <brking@...ux.ibm.com>,
Cristobal Forno <cforno12@...ux.ibm.com>,
Abdul Haleem <abdhalee@...ibm.com>
Subject: Re: [PATCH net 2/7] Revert "ibmvnic: remove duplicate napi_schedule
call in open function"
On Wed, Jun 23, 2021 at 11:16 PM Sukadev Bhattiprolu
<sukadev@...ux.ibm.com> wrote:
>
> From: Dany Madden <drt@...ux.ibm.com>
>
> This reverts commit 7c451f3ef676c805a4b77a743a01a5c21a250a73.
>
> When a vnic interface is taken down and then up, connectivity is not
> restored. We bisected it to this commit. Reverting this commit until
> we can fully investigate the issue/benefit of the change.
>
The reverted patch shouldn't be the real cause of the problem.
It is very likely VIOS does not forward the rx packets so that the rx interrupt
isn't raised.
> Fixes: 7c451f3ef676 ("ibmvnic: remove duplicate napi_schedule call in open function")
> Reported-by: Cristobal Forno <cforno12@...ux.ibm.com>
> Reported-by: Abdul Haleem <abdhalee@...ibm.com>
> Signed-off-by: Dany Madden <drt@...ux.ibm.com>
> Signed-off-by: Sukadev Bhattiprolu <sukadev@...ux.ibm.com>
> ---
> drivers/net/ethernet/ibm/ibmvnic.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c
> index f13ad6bc67cd..fe1627ea9762 100644
> --- a/drivers/net/ethernet/ibm/ibmvnic.c
> +++ b/drivers/net/ethernet/ibm/ibmvnic.c
> @@ -1234,6 +1234,11 @@ static int __ibmvnic_open(struct net_device *netdev)
>
> netif_tx_start_all_queues(netdev);
>
> + if (prev_state == VNIC_CLOSED) {
> + for (i = 0; i < adapter->req_rx_queues; i++)
> + napi_schedule(&adapter->napi[i]);
> + }
> +
interrupt_rx will schedule the napi, so not necessary here.
Powered by blists - more mailing lists