[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4DF8ED21-92C2-404F-9766-691AEA5C4E8B@vmware.com>
Date: Thu, 9 Mar 2023 22:50:04 +0000
From: Ronak Doshi <doshir@...are.com>
To: Yunsheng Lin <linyunsheng@...wei.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
CC: "stable@...r.kernel.org" <stable@...r.kernel.org>,
Pv-drivers <Pv-drivers@...are.com>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
Guolin Yang <gyang@...are.com>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH net] vmxnet3: use gro callback when UPT is enabled
> > On 3/8/23, 4:34 PM, "Yunsheng Lin" <linyunsheng@...wei.com <mailto:linyunsheng@...wei.com>> wrote:
> >
> > - if (adapter->netdev->features & NETIF_F_LRO)
> > + /* Use GRO callback if UPT is enabled */
> > + if ((adapter->netdev->features & NETIF_F_LRO) && !rq->shared->updateRxProd)
> >
> >
> If UPT devicve does not support LRO, why not just clear the NETIF_F_LRO from
> adapter->netdev->features?
>
>
> With above change, it seems that LRO is supported for user' POV, but the GRO
> is actually being done.
>
>
> Also, if NETIF_F_LRO is set, do we need to clear the NETIF_F_GRO bit, so that
> there is no confusion for user?
We cannot clear LRO bit as the virtual nic can run in either emulation or UPT mode.
When the vnic switches the mode between UPT and emulation, the guest vm is not
notified. Hence, we use updateRxProd which is shared in datapath to check what mode
is being run.
Also, we plan to add an event to notify the guest about this but that is for separate patch
and may take some time.
Thanks,
Ronak
Powered by blists - more mailing lists