All Virtuozzo development lists (kernel + QEMU)
 help / color / mirror / Atom feed
From: Konstantin Khorenko <khorenko@virtuozzo.com>
To: Eva Kurchatova <eva.kurchatova@virtuozzo.com>
Cc: devel@openvz.org
Subject: Re: [Devel] [PATCH hci-8.1 1/2] selftests: net: veth: check UDP GRO forwarding on forwarded traffic
Date: Tue, 27 Oct 2026 18:24:42 +0100	[thread overview]
Message-ID: <8b623d76-bc67-42f7-aa21-deb658f87875@virtuozzo.com> (raw)
In-Reply-To: <20261026120854.600354-2-eva.kurchatova@virtuozzo.com>

On 10/26/26 13:06, Eva Kurchatova wrote:
> pass on a host where nothing does. Since commit 36707061d6ba ("udp:
> allow forwarding of plain (non-fraglisted) UDP GRO packets") the
> feature aggregates only datagrams GRO finds no socket for, and GRO
> looks the socket up only once a tunnel socket exists on the host; the

The lookup behind the static key comes from f2e9de210d50 ("udp: gro
behind static key"), not from 36707061d6ba. And not only tunnels turn
it on: setsockopt(UDP_GRO) does too, in any netns.

> while nothing looks it up.
> This tree made them pass by changing the kernel instead, in commit
> 8ce3afeec4ca ("udp: let rx-udp-gro-forwarding aggregate under

Blank line missing before this paragraph. checkpatch also wants
"commit 8ce3afeec4ca" on one line.

> +# The receiver of the GRO checks, behind the destination
> +readonly RCV=3
[...]
> +# Network between the destination and the receiver
> +readonly RCV_NET_V4=192.168.2.

Both comments restate the names, dropped.

> +     # Forwarded, the datagrams find no local socket, whatever tunnel the host has

"whatever the host runs": not only tunnels, see above.

> +     ip link add name fwd$DST type veth peer name fwd$RCV
> +     ip link set dev fwd$DST netns $NS_DST up
> +     ip link set dev fwd$RCV netns $NS_RCV up

Better create the pair right in the namespaces, so no fwd1/fwd3 ever
appears in init_net:

        ip -n $NS_DST link add name fwd$DST type veth peer name fwd$RCV netns $NS_RCV
        ip -n $NS_DST link set dev fwd$DST up
        ip -n $NS_RCV link set dev fwd$RCV up

All fixed in v2.

--
Best regards,

Konstantin Khorenko,
Virtuozzo Linux Kernel Team


_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

  parent reply	other threads:[~2026-10-27 17:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-26 12:06 [Devel] [PATCH hci-8.1 0/2] selftests: net: veth: run under separate netns Eva Kurchatova
2026-10-26 12:06 ` [Devel] [PATCH hci-8.1 1/2] selftests: net: veth: check UDP GRO forwarding on forwarded traffic Eva Kurchatova
2026-10-26 12:13   ` no-reply
2026-10-27 17:24   ` Konstantin Khorenko [this message]
2026-10-26 12:06 ` [Devel] [PATCH hci-8.1 2/2] Revert "udp: let rx-udp-gro-forwarding aggregate under encapsulation" Eva Kurchatova
2026-10-26 12:11   ` no-reply
2026-10-27 17:25   ` Konstantin Khorenko
2026-10-27 17:24 ` [Devel] [PATCH hci-8.1 0/2] selftests: net: veth: run under separate netns Konstantin Khorenko

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=8b623d76-bc67-42f7-aa21-deb658f87875@virtuozzo.com \
    --to=khorenko@virtuozzo.com \
    --cc=devel@openvz.org \
    --cc=eva.kurchatova@virtuozzo.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.