mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ronak Doshi <doshir@vmware.com>
To: Yunsheng Lin <linyunsheng@huawei.com>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Cc: "stable@vger.kernel.org" <stable@vger.kernel.org>,
	Pv-drivers <Pv-drivers@vmware.com>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Guolin Yang <gyang@vmware.com>,
	open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH net] vmxnet3: use gro callback when UPT is enabled
Date: Wed, 15 Mar 2023 23:44:37 +0000	[thread overview]
Message-ID: <AA320ADE-E149-4C0D-80D5-338B19AD31A2@vmware.com> (raw)
In-Reply-To: <207a0919-1a5a-dee6-1877-ee0b27fc744a@huawei.com>


> On 3/14/23, 8:05 PM, "Yunsheng Lin" <linyunsheng@huawei.com <mailto:linyunsheng@huawei.com>> wrote:
>
> I am not sure how we can handle the runtime hw capability changing thing yet, that is why
> I suggested setting the hw capability during the driver init process, then user can enable
> or disable GRO if need to.
>
It is not about enabling or disabling the LRO/GRO. It is about which callback to be used to
deliver the packets to the stack.

During init, the vnic will always come up in emulation (non-UPT) mode and user can request 
whichever feature they want (lro or gro or both). If it is in UPT mode, as we know UPT device
does not support LRO, we use gro API to deliver. If GRO is disabled by the user, then it can still
take the normal path. If in emulation (non-UPT) mode, ESXi will perform LRO.

> Suppose user enable the software GRO using ethtool, disabling the GRO through some runtime
> checking seems against the will of the user.
>
We are not disabling GRO here, it's either we perform LRO on ESXi or GRO in guest stack.


> Also, if you are able to "add an event to notify the guest about this", I suppose the
> para-virtualized driver will clear the specific bit in netdev->hw_features and
> netdev->features when handling the event? does user need to be notified about this, does
> user get confusion about this change without notification?
>
We won’t be changing any feature bits. It is just to let know the driver that UPT is active and it
should use GRO path instead of relying on ESXi LRO.

Thanks,
Ronak


  reply	other threads:[~2023-03-15 23:45 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-08 22:25 Ronak Doshi
2023-03-09  0:34 ` Yunsheng Lin
2023-03-09 22:50   ` Ronak Doshi
2023-03-10  1:02     ` Yunsheng Lin
2023-03-14 21:09       ` Ronak Doshi
2023-03-15  1:51         ` Yunsheng Lin
2023-03-15  2:27           ` Ronak Doshi
2023-03-15  3:04             ` Yunsheng Lin
2023-03-15 23:44               ` Ronak Doshi [this message]
2023-03-16  1:47                 ` Yunsheng Lin
2023-03-16  4:03                   ` Ronak Doshi
2023-03-16  4:13                     ` Jakub Kicinski
2023-03-16  5:21                       ` Ronak Doshi
2023-03-16 20:34                         ` Jakub Kicinski
2023-03-17  2:37                           ` Yunsheng Lin
2023-03-17 20:27                             ` Ronak Doshi
2023-03-18  2:43                               ` Jakub Kicinski
2023-03-23  5:43 Ronak Doshi
2023-03-23 15:48 ` Simon Horman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AA320ADE-E149-4C0D-80D5-338B19AD31A2@vmware.com \
    --to=doshir@vmware.com \
    --cc=Pv-drivers@vmware.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=gyang@vmware.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linyunsheng@huawei.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®