netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Abeni <pabeni@redhat.com>
To: Jason Wang <jasowang@redhat.com>
Cc: netdev@vger.kernel.org,
	"Willem de Bruijn" <willemdebruijn.kernel@gmail.com>,
	"Andrew Lunn" <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	"Eric Dumazet" <edumazet@google.com>,
	"Jakub Kicinski" <kuba@kernel.org>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	"Xuan Zhuo" <xuanzhuo@linux.alibaba.com>,
	"Eugenio Pérez" <eperezma@redhat.com>,
	"Yuri Benditovich" <yuri.benditovich@daynix.com>,
	"Akihiko Odaki" <akihiko.odaki@daynix.com>
Subject: Re: [PATCH v4 net-next 5/8] net: implement virtio helpers to handle UDP GSO tunneling.
Date: Thu, 19 Jun 2025 16:59:38 +0200	[thread overview]
Message-ID: <c527a435-dbe4-439c-b55b-7210df3b8dc9@redhat.com> (raw)
In-Reply-To: <CACGkMEsx-pcwC=_-cMMMdGZ=E5P-5W=4YoivMQiy=FB1W7GKog@mail.gmail.com>

On 6/18/25 6:08 AM, Jason Wang wrote:
> On Wed, Jun 18, 2025 at 12:13 AM Paolo Abeni <pabeni@redhat.com> wrote:
>> +/*
>> + * vlan_hlen always refers to the outermost MAC header. That also
>> + * means it refers to the only MAC header, if the packet does not carry
>> + * any encapsulation.
>> + */
>> +static inline int
>> +virtio_net_hdr_tnl_from_skb(const struct sk_buff *skb,
>> +                           struct virtio_net_hdr_v1_hash_tunnel *vhdr,
>> +                           bool tnl_hdr_negotiated,
>> +                           bool little_endian,
> 
> Nit: it looks to me we can just accept netdev_features_t here.

That will replace a single bool argument with a netdev_features_t, right?

I guess we can do that when it will allow reducing the arguments number.

Thanks,

Paolo


  reply	other threads:[~2025-06-19 14:59 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-17 16:12 [PATCH v4 net-next 0/8] virtio: introduce GSO over UDP tunnel Paolo Abeni
2025-06-17 16:12 ` [PATCH v4 net-next 1/8] virtio: introduce extended features Paolo Abeni
2025-06-18  1:51   ` Jason Wang
2025-06-18  8:31     ` Paolo Abeni
2025-06-19  2:14   ` Jakub Kicinski
2025-06-19 14:36     ` Paolo Abeni
2025-06-19 15:22       ` Jakub Kicinski
2025-06-17 16:12 ` [PATCH v4 net-next 2/8] virtio_pci_modern: allow configuring " Paolo Abeni
2025-06-18  2:27   ` Jason Wang
2025-06-19 14:56     ` Paolo Abeni
2025-06-17 16:12 ` [PATCH v4 net-next 3/8] vhost-net: " Paolo Abeni
2025-06-19 15:00   ` Akihiko Odaki
2025-06-19 20:13     ` Paolo Abeni
2025-06-20  5:59       ` Akihiko Odaki
2025-06-17 16:12 ` [PATCH v4 net-next 4/8] virtio_net: add supports for extended offloads Paolo Abeni
2025-06-18  2:36   ` Jason Wang
2025-06-17 16:12 ` [PATCH v4 net-next 5/8] net: implement virtio helpers to handle UDP GSO tunneling Paolo Abeni
2025-06-18  4:08   ` Jason Wang
2025-06-19 14:59     ` Paolo Abeni [this message]
2025-06-17 16:12 ` [PATCH v4 net-next 6/8] virtio_net: enable gso over UDP tunnel support Paolo Abeni
2025-06-18  4:15   ` Jason Wang
2025-06-17 16:12 ` [PATCH v4 net-next 7/8] tun: " Paolo Abeni
2025-06-18  4:15   ` Jason Wang
2025-06-19 14:42   ` Akihiko Odaki
2025-06-19 14:52     ` Paolo Abeni
2025-06-19 15:46       ` Akihiko Odaki
2025-06-19 17:27         ` Paolo Abeni
2025-06-21  5:00           ` Akihiko Odaki
2025-06-19 16:02   ` Akihiko Odaki
2025-06-19 17:41     ` Paolo Abeni
2025-06-19 20:30       ` Paolo Abeni
2025-06-21  5:04         ` Akihiko Odaki
2025-06-24  0:55     ` Jason Wang
2025-06-20 14:40   ` Willem de Bruijn
2025-06-20 15:51     ` Paolo Abeni
2025-06-20 22:09       ` Willem de Bruijn
2025-06-17 16:12 ` [PATCH v4 net-next 8/8] vhost/net: " Paolo Abeni
2025-06-18  4:15   ` Jason Wang
2025-06-17 19:58 ` [PATCH v4 net-next 0/8] virtio: introduce GSO over UDP tunnel Michael S. Tsirkin

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=c527a435-dbe4-439c-b55b-7210df3b8dc9@redhat.com \
    --to=pabeni@redhat.com \
    --cc=akihiko.odaki@daynix.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=eperezma@redhat.com \
    --cc=jasowang@redhat.com \
    --cc=kuba@kernel.org \
    --cc=mst@redhat.com \
    --cc=netdev@vger.kernel.org \
    --cc=willemdebruijn.kernel@gmail.com \
    --cc=xuanzhuo@linux.alibaba.com \
    --cc=yuri.benditovich@daynix.com \
    /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;
as well as URLs for NNTP newsgroup(s).