Netdev List
 help / color / mirror / Atom feed
From: netdev-bot+sashiko@kernel.org
To: maciej.fijalkowski@intel.com
Cc: netdev@vger.kernel.org, magnus.karlsson@intel.com,
	stfomichev@gmail.com, kuba@kernel.org, pabeni@redhat.com,
	tushar.vyavahare@intel.com, kerneljasonxing@gmail.com,
	bjorn@kernel.org
Subject: Re: [PATCH v6 net-next 09/15] selftests: xsk: send UDP over IPv4 or IPv6 between the interface MACs
Date: Sat, 28 Nov 2026 15:08:39 +0000	[thread overview]
Message-ID: <179587851934.3135.12090559509261913535@kernel.org> (raw)
In-Reply-To: <20261127150527.1122049-10-maciej.fijalkowski@intel.com>

Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.

Low priority / nit picks for your consideration:

- [Low] The commit message says that xsk_set_flow() makes "the smallest
  packet grow to 64 bytes over IPv4 and 88 over IPv6".

--

selftests: xsk: send UDP over IPv4 or IPv6 between the interface MACs

The xskxceiver test packets change from loopback-ethertype frames between
made-up MACs to UDP over IPv4 or IPv6 between the real interface MACs. The
flow is set with --src-ip, --dst-ip, --dst-mac and --udp-port. The XDP
programs now redirect only test UDP traffic and pass everything else to
the stack. The header and minimum packet sizes become variables that
xsk_set_flow() sets.

> PKT_HDR_SIZE and
> MIN_PKT_SIZE now stand for variables set by xsk_set_flow(), so the
> smallest packet grows to 64 bytes over IPv4 and 88 over IPv6.

[Severity: Low]
Does the smallest packet actually grow over IPv4?

Before this patch, test_xsk.c and test_xsk.h both had:

    #define MIN_PKT_SIZE			64

After it, xsk_set_flow() in tools/testing/selftests/net/lib/xsk/test_xsk.c
computes:

    pkt_hdr_size = sizeof(struct ethhdr) + ip_hdr_size +
                   sizeof(struct udphdr) + PKT_HDR_PAD;
    min_pkt_size = ALIGN(pkt_hdr_size + MIN_PAYLOAD_SIZE, 8);

Over IPv4 this is 14 + 20 + 8 + 2 = 44. ALIGN(44 + 20, 8) is 64, the same
value as the old constant. Only IPv6 grows, to ALIGN(64 + 20, 8) = 88.

The IPv4 payload of a minimum-size packet does change. It drops from 48
bytes (the old PKT_HDR_SIZE was sizeof(struct ethhdr) + 2 = 16) to 20
bytes.

Could the commit message say that the IPv4 minimum stays at 64 bytes with
a smaller payload, and that only IPv6 grows to 88?

-- 
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261127150527.1122049-1-maciej.fijalkowski%40intel.com

  reply	other threads:[~2026-11-28 15:08 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27 15:05 [PATCH v6 net-next 00/15] selftests: net: adjust xskxceiver to drv-net Maciej Fijalkowski
2026-11-27 15:05 ` [PATCH v6 net-next 01/15] selftests: xsk: fix the stack overrun in is_adjust_tail_supported() Maciej Fijalkowski
2026-11-27 15:05 ` [PATCH v6 net-next 02/15] selftests: xsk: factor endpoint work out of pthread wrappers Maciej Fijalkowski
2026-11-27 15:05 ` [PATCH v6 net-next 03/15] selftests: xsk: size the TX UMEM in HW_SW_MAX_RING_SIZE Maciej Fijalkowski
2026-11-27 15:05 ` [PATCH v6 net-next 04/15] selftests: xsk: drop the single-interface loopback mode Maciej Fijalkowski
2026-11-27 15:05 ` [PATCH v6 net-next 05/15] selftests: xsk: collect interface capabilities in struct xsk_caps Maciej Fijalkowski
2026-11-27 15:05 ` [PATCH v6 net-next 06/15] selftests: xsk: split xskxceiver main() into setup, run and cleanup Maciej Fijalkowski
2026-11-28 15:08   ` netdev-bot+sashiko
2026-11-27 15:05 ` [PATCH v6 net-next 07/15] selftests: xsk: run one test case per xskxceiver invocation Maciej Fijalkowski
2026-11-27 15:05 ` [PATCH v6 net-next 08/15] selftests: xsk: run the RX and TX endpoints in separate processes Maciej Fijalkowski
2026-11-27 15:05 ` [PATCH v6 net-next 09/15] selftests: xsk: send UDP over IPv4 or IPv6 between the interface MACs Maciej Fijalkowski
2026-11-28 15:08   ` netdev-bot+sashiko [this message]
2026-11-27 15:05 ` [PATCH v6 net-next 10/15] selftests: xsk: prepare xskxceiver for endpoints on two hosts Maciej Fijalkowski
2026-11-28 15:08   ` netdev-bot+sashiko
2026-11-27 15:05 ` [PATCH v6 net-next 11/15] selftests: xsk: wait up to --timeout for the RX stats and a busy bind Maciej Fijalkowski
2026-11-27 15:05 ` [PATCH v6 net-next 12/15] selftests: xsk: list the endpoint roles of the test cases Maciej Fijalkowski
2026-11-27 15:05 ` [PATCH v6 net-next 13/15] selftests: drv-net: rename nsim_test to sw_test Maciej Fijalkowski
2026-11-27 15:05 ` [PATCH v6 net-next 14/15] selftests: drv-net: decouple local link setup from netdevsim Maciej Fijalkowski
2026-11-27 15:05 ` [PATCH v6 net-next 15/15] selftests: drv-net: run the AF_XDP tests over veth or a NIC Maciej Fijalkowski
2026-11-28 15:08   ` netdev-bot+sashiko

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=179587851934.3135.12090559509261913535@kernel.org \
    --to=netdev-bot+sashiko@kernel.org \
    --cc=bjorn@kernel.org \
    --cc=kerneljasonxing@gmail.com \
    --cc=kuba@kernel.org \
    --cc=maciej.fijalkowski@intel.com \
    --cc=magnus.karlsson@intel.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=stfomichev@gmail.com \
    --cc=tushar.vyavahare@intel.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