🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #189

[PATCH net-next 0/7] pull request: ovpn 2026-10-07

#189
From: Antonio Quartulli
Date: Wed, 07 Oct 2026 13:30
99 lines
12538 bytes
Hi all!

Here is v3 of the ovpn batch for net-next, rebased on current net-next.

It is mostly cleanup. The one functional change is that PEER_DEL_NTF now
carries the same peer object returned by PEER_GET: a disconnecting
peer's final counters were not reachable before, because
ovpn_peer_remove() unlinks the peer before emitting the notification.
The selftests get TCP_NODELAY on ovpn-cli's TCP sockets and proper
synchronization against the server-side key setup. Ralf is added to
MAINTAINERS as ovpn reviewer.

Changes since v2:
* 5/7: the wait on the server-side key setup was unbounded, and the
  subshell only reported the status of the last new_key. Bound the wait
  and report a failure from any peer.
* 6/7: the notification filter used to drop every message carrying a
  remote-ipv6, which also dropped the IPv6 float events. Those are not
  deterministic and are not in the fixtures, so letting them through
  made the notification check fail at random. Drop them again, this time
  only for peer-float-ntf.

Both were reported by sashiko on v2. The second one was making roughly
15% of the selftest runs fail, so it is worth having before this lands.
With it, 33 consecutive script runs are clean.

Please pull or let me know of any issue!

Thanks a lot,
	Antonio

The following changes since commit 6e23f90f2b8c3ea3bf904f86f3ed06bf2844b4bc:

  Merge branch 'net-consolidate-devmem-net_iov-freelist-and-dma-handling' (2026-09-29 15:41:35 +0200)

are available in the Git repository at:

  https://github.com/OpenVPN/ovpn-net-next.git tags/ovpn-net-next-20261007

for you to fetch changes up to e724d2ebb9519ce89ceadcd136ca6f2b9e404a32:

  MAINTAINERS: ovpn: add Ralf Lici as reviewer (2026-10-06 02:24:31 +0200)

----------------------------------------------------------------
Included changes:
* add Ralf Lici as ovpn reviewer
* include the peer object in the PEER_DEL notification
* wait for the server-side key setup before generating TCP traffic in
  selftests
* enable TCP_NODELAY on TCP sockets in selftests
* drop redundant peer NULL checks in the crypto post functions
* remove the unused work field from struct ovpn_socket
* fix the documented return value of ovpn_bind_from_sockaddr()

----------------------------------------------------------------
Antonio Quartulli (2):
      selftests: ovpn: wait for the TCP server key setup before traffic
      MAINTAINERS: ovpn: add Ralf Lici as reviewer

Karl Mehltretter (1):
      ovpn: Fix the return value in ovpn_bind_from_sockaddr() kernel-doc

Marco Baffo (2):
      ovpn: remove redundant peer NULL checks in crypto post functions
      selftests: ovpn: enable TCP_NODELAY on TCP sockets

Ralf Lici (2):
      ovpn: remove unused work field from struct ovpn_socket
      ovpn: send peer object along with PEER_DEL_NTF

 MAINTAINERS                                        |   1 +
 drivers/net/ovpn/bind.c                            |   2 +-
 drivers/net/ovpn/io.c                              |   6 +-
 drivers/net/ovpn/netlink.c                         |  60 +++++++-----
 drivers/net/ovpn/socket.h                          |   2 -
 tools/testing/selftests/net/ovpn/common.sh         | 108 +++++++++++++++++----
 .../selftests/net/ovpn/json/peer0-float.json       |  12 +--
 .../selftests/net/ovpn/json/peer0-symm-float.json  |  10 +-
 .../selftests/net/ovpn/json/peer0-symm.json        |   7 +-
 tools/testing/selftests/net/ovpn/json/peer0.json   |  12 +--
 .../selftests/net/ovpn/json/peer1-symm.json        |   2 +-
 tools/testing/selftests/net/ovpn/json/peer1.json   |   2 +-
 .../selftests/net/ovpn/json/peer2-symm.json        |   2 +-
 tools/testing/selftests/net/ovpn/json/peer2.json   |   2 +-
 .../selftests/net/ovpn/json/peer3-symm.json        |   2 +-
 tools/testing/selftests/net/ovpn/json/peer3.json   |   2 +-
 .../selftests/net/ovpn/json/peer4-symm.json        |   2 +-
 tools/testing/selftests/net/ovpn/json/peer4.json   |   2 +-
 .../selftests/net/ovpn/json/peer5-symm.json        |   2 +-
 tools/testing/selftests/net/ovpn/json/peer5.json   |   2 +-
 .../selftests/net/ovpn/json/peer6-symm.json        |   2 +-
 tools/testing/selftests/net/ovpn/json/peer6.json   |   2 +-
 tools/testing/selftests/net/ovpn/ovpn-cli.c        |  23 +++++
 .../selftests/net/ovpn/test-close-socket.sh        |   2 +
 tools/testing/selftests/net/ovpn/test.sh           |  56 +++++------
 25 files changed, 225 insertions(+), 100 deletions(-)
 mode change 120000 => 100644 tools/testing/selftests/net/ovpn/json/peer0-symm-float.json
 mode change 120000 => 100644 tools/testing/selftests/net/ovpn/json/peer0-symm.json
Technical Details
Message-ID: <20261007133018.1451958-1-antonio@openvpn.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342353-linux-kernel-netdev=dewy.ru

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342353-linux-kernel-netdev=dewy.ru
From: antonio@openvpn.net (Antonio Quartulli)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next 0/7] pull request: ovpn 2026-10-07
Date: Wed,  7 Oct 2026 15:30:09 +0200
Organization: Usenet Network
Message-ID: <20261007133018.1451958-1-antonio@openvpn.net>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="654171"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:gpiuC0BHImSjdNiGVWBpVAccEFo= sha256:FtJj7NZWfVOoSdlmJIH+JYmsOukT92WLOMi4j98jdlQ=
	sha1:9wNZFYMVGlmJGaXecsRLPLBJ19k= sha256:f2NlmkfrR2sxLv1EVsnR5jiPNxY6tIpoDkEJC0joDzU=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 1F58C10F16F; Wed,  7 Oct 2026 16:36:28 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=openvpn.net
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id XvN_PpZIfgcB;
	Wed,  7 Oct 2026 16:36:20 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-342353-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=quarantine dis=none) header.from=openvpn.net
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 9F01310F104; Wed,  7 Oct 2026 16:36:15 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sea.lore.kernel.org (Postfix) with ESMTP id 4FDFC34458; Wed,  7 Oct 2026 13:33:27 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 6AC2C4AC151;
	Wed,  7 Oct 2026 13:30:40 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=openvpn.net header.i=@openvpn.net header.b="ZowMYgSE"
X-Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 48D0544C4FF
	for <netdev@vger.kernel.org>; Wed,  7 Oct 2026 13:30:23 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.44
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791379840; cv=none; b=ggNWaWqHaYqjvTEM4WkvpHw4u7L2btEKtDMxPEpk/YG6g8iy0Qo21rEGBAb+4GKSb9FewEWo9B2mQXvy9hm1mv64jPisYhQFbju1AcitK0WELMVbpPKYivjmc9GqxvccfJrLsKstx6EQa2YnH6UckjczNa/NGlK0kvmsQ72Jjn8=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791379840; c=relaxed/simple;
	bh=DNujO+s/4oUYQtk/x33NTycnd/C5CiEkkHon67/9YDY=;
	h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=P0vDDOiG/fjzXbNeI3aiPBrnDcKvr4w0VjgeTQYvgCkn+VJWVRoc+IAtphv9tLcQRNL59DFAfVfCNKUrnxuuEdWlLIIut6UV6UdFd0r30nkgllqHIargypyZt0uEL12HfuFSRjaLChC5CCCOq1lNqNDhqH/2q+1iX/MZQDMhEp4=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=openvpn.net; spf=pass smtp.mailfrom=openvpn.com; dkim=pass (2048-bit key) header.d=openvpn.net header.i=@openvpn.net header.b=ZowMYgSE; arc=none smtp.client-ip=209.85.221.44
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=openvpn.net
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=openvpn.com
X-Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-48b02b1b4cfso1273511f8f.0
        for <netdev@vger.kernel.org>; Wed, 07 Oct 2026 06:30:23 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=openvpn.net; s=google; t=1791379821; x=1791984621; darn=vger.kernel.org;
        h=content-transfer-encoding:mime-version:message-id:date:subject:cc
         :to:from:from:to:cc:subject:date:message-id:reply-to:content-type;
        bh=fvt8xB7JGat4M1zYcEgruvQVOA1rcBfHjyL4Um00UNc=;
        b=ZowMYgSE7rwsJPRikgzuoesdGY17ABgu2ICOnAynJq4wwEeypYHPLYBi501XnMicOU
         EQ30dPzztg/BicYBj8FjIr530kktALYQz2/S3JDO/9UulbJdduSGxxfJSNgIWum8wyDy
         cW/bUdxz2UQw59hso4vv0sYltCk+H36Gj9R8heq+ylHsU/D08JctEijSr7e+yFkl5wnb
         y/K1LEqx7dVsBmYaJR3pE9EUWPHtcinIo2/v7JfFeDTdbFyKBCVnQU1UY++A5DYWKgEm
         YpEGRgk2xLQxdgtvWcWjN3G5N8TuouqaNDOq4dxadJUcjE7m+f0nWCEjCimsjI/85RvQ
         MUMQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1791379821; x=1791984621;
        h=content-transfer-encoding:mime-version:message-id:date:subject:cc
         :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
         :message-id:reply-to:content-type;
        bh=fvt8xB7JGat4M1zYcEgruvQVOA1rcBfHjyL4Um00UNc=;
        b=2M5dZ/L3sfxFvmGJmhkTGkbJTlE3UKuhTKYxUlo5F27iZ2PSKaLLJT8csOXwLoYP+8
         VuL1eyZcj4P/VbMdoh96Smq99fQgmlyrUtftyndnEvnd8BJbPjIOmz8F0k/bwuotbHTA
         +02zQywCpgatqXSGjRkTELCoPl9kXgZLPz67bz9F/kYEZUNL6XgoGGof6/l61NIVUxjM
         cFPmqHkAsZm36e4WRi50BxJqB/KQ4r8ZCKgnTtzP2SQ74U/7KyuoZQe5o8symXH2LJff
         kIlzSe2pm08fnri8zSULb5A8V0s7rDl+23i7qEyCda+M+KfSDM4PNowOhVz12pgnewgy
         H84A==
X-Gm-Message-State: AFuF++lv6zsC0uXfB5uB0BV7jIdSv2tbWXii25BRAjS0zYWVuFwzvyJG
	3rRGTsI5NteFYRjXqNdyeHOeATlkQ3ExuyRZJHw1B/r+zcktZM08nbmKgbX190gcmvHkTX4NEj6
	U4xzExRiTDrVsADd4zGIVcd0x/MVJnOMut6wR2Io1qEAp/KEklDWbS1c925JLpADU
X-Gm-Gg: AYBFou0c8lUMmEIcKh3fN9FUNbf4rSt4sQX3G/4XJQxLH8h9SIvSxD0pGCyJpCFoBG5
	0VbBdFU6OoNOQNJ+d5nXqMkAFIvIiOkRHkHERFI74Nso0D1qxi6VCCQRYl9e0ULSxvqi6Zp3ZGR
	Icn6lF2HH82tjk3m0gVYKw0hXuXZUqr2CJ/OPM8btfged4dLuhplYydbuxTyjIcZSAlKvWT3g/I
	AKe4PAiGCbAcUo0GoEc2EjDIgst1gNWUhDSGOPzUcVhH4DqfglLskp95UXAYkzkl3ldbkvLwSQQ
	0qNOWul7JDgULhjHR7iBceX6l15SEbcFZyd9GeU6jRMHIxYJ+Ymyyg4vtJDyi2J/8z9zHq2HCXS
	t5nVCKhCxYNGcSz5CD73opjODESVPqnxJkMJR5ANPapnhvZ7Z5zIm3u99TQiHRs2IRb8HyVqUmY
	hi8kTTQclrOQCeyVK7neNEpYLK4Ljkv31k99aX6rnpx5S3ZXMSvXc9f/ymMwwgZisTJ1TXHNjk7
	FlbrOlt7dE=
X-Received: by 2002:a05:600c:154c:b0:4a1:6282:1cf3 with SMTP id 5b1f17b1804b1-4a18043b284mr40569725e9.9.1791379821198;
        Wed, 07 Oct 2026 06:30:21 -0700 (PDT)
X-Received: from inifinity.mandelbit.com ([2001:67c:2fbc:1:7fc5:5cc8:bac1:5ef3])
        by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a17a0fc2e4sm150356145e9.3.2026.10.07.06.30.19
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Wed, 07 Oct 2026 06:30:20 -0700 (PDT)
X-Cc: Antonio Quartulli <antonio@openvpn.net>,
	Sabrina Dubroca <sd@queasysnail.net>,
	Ralf Lici <ralf@mandelbit.com>,
	Jakub Kicinski <kuba@kernel.org>,
	Paolo Abeni <pabeni@redhat.com>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>
X-Mailer: git-send-email 2.55.0
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>