|
|
Log in / Subscribe / Register

selftest: Extend tun/virtio coverage for GSO over UDP tunnel

From:  Xu Xu <xudu-AT-redhat.com>
To:  davem-AT-davemloft.net, edumazet-AT-google.com, kuba-AT-kernel.org, pabeni-AT-redhat.com, horms-AT-kernel.org, shuah-AT-kernel.org
Subject:  [RFC net-next 0/8] selftest: Extend tun/virtio coverage for GSO over UDP tunnel
Date:  Tue, 02 Dec 2025 13:53:03 +0800
Message-ID:  <cover.1764640939.git.xudu@redhat.com>
Cc:  netdev-AT-vger.kernel.org, Xu Du <xudu-AT-redhat.com>
Archive-link:  Article

From: Xu Du <xudu@redhat.com>

The primary goal is to add test validation for GSO when operating over
UDP tunnels, a scenario which is not currently covered.

The design strategy is to extend the existing tun/tap testing infrastructure
to support this new use-case, rather than introducing a new or parallel framework.
This allows for better integration and re-use of existing test logic.

---
Link: https://lore.kernel.org/netdev/cover.1763345426.git.xudu@...

v1 -> RFC:
 - Addresse sporadic failures due to too early send.
 - Refactor environment address assign helper function.

Xu Du (8):
  selftest: tun: Format tun.c existing code
  selftest: tun: Introduce tuntap_helpers.h header for TUN/TAP testing
  selftest: tun: Refactor tun_delete to use tuntap_helpers
  selftest: tap: Refactor tap test to use tuntap_helpers
  selftest: tun: Add helpers for GSO over UDP tunnel
  selftest: tun: Add test for sending gso packet into tun
  selftest: tun: Add test for receiving gso packet from tun
  selftest: tun: Add test data for success and failure paths

 tools/testing/selftests/net/tap.c            | 286 +-----
 tools/testing/selftests/net/tun.c            | 915 ++++++++++++++++++-
 tools/testing/selftests/net/tuntap_helpers.h | 608 ++++++++++++
 3 files changed, 1527 insertions(+), 282 deletions(-)
 create mode 100644 tools/testing/selftests/net/tuntap_helpers.h


base-commit: 651765e8d527427e1d91fb7f606c5506f437f622
-- 
2.49.0




Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds