Article View: linux.kernel.netdev
Article #3918[PATCH net-next v7 0/4] gtp: ynl spec for the GTP netlink family, two fixes, and a selftest
From: Anil Kaushik
Date: Fri, 16 Oct 2026 09:32
Date: Fri, 16 Oct 2026 09:32
61 lines
11217 bytes
11217 bytes
This adds a ynl spec for the gtp genetlink family, two small driver fixes, and a selftest. Patch 1: the GET and dump replies carried the family id in the command field, so ynl dropped them. Use GTP_CMD_GETPDP instead. Patch 2: new in v7. On the netdev CI debug kernel, the selftest hit an RCU warning: adding a PDP context looks up the device without the RCU read lock. Hold it around the lookup. Patch 3: the spec (NEWPDP/DELPDP/GETPDP/ECHOREQ), no uapi change. Patch 4: a selftest that adds, dumps and deletes PDP contexts. The multicast notifications are not in the spec: they reuse the request command values, which the ynl C generator can't express with the current uapi header. v7: - new patch 2: fix the RCU warning the selftest found on debug kernels - selftest: add a docstring to GtpFamily (pylint) - Cc Stanislav for lib/py v6: - spec: use the gtp_version uapi enum for the version attribute - spec: family only applies to the MS address, fix its doc - selftest: also skip on "Unknown device type", printed by iproute2 with extack support when the kernel has no gtp v5: - ynl: add CFLAGS_gtp so the generated code builds with older headers - spec: doc fixes, min-len for the IPv6 attributes - selftest: only skip when GTP is unavailable, close the ynl handle v4: - spec: request/reply attributes now match the handlers - selftest: fix the gtp.ko autoload crash, check ENOENT, delete by TEI and by MS address v6: https://lore.kernel.org/netdev/20261013031000.528393-1-anilkaushikwireless@gmail.com/ v5: https://lore.kernel.org/netdev/20261012024800.400616-1-anilkaushikwireless@gmail.com/ v4: https://lore.kernel.org/netdev/20261010105740.223992-1-anilkaushikwireless@gmail.com/ v3: https://lore.kernel.org/netdev/20261009060615.4177402-1-anilkaushikwireless@gmail.com/ v2: https://lore.kernel.org/netdev/20261008181031.4129029-1-anilkaushikwireless@gmail.com/ Anil Kaushik (4): gtp: set a valid genl command in PDP context get and dump replies gtp: hold RCU for the device lookup when adding a PDP context netlink: specs: add genetlink-legacy spec for GTP selftests: net: add a test for the gtp netlink family Documentation/netlink/specs/gtp.yaml | 196 ++++++++++++++++++ MAINTAINERS | 2 + drivers/net/gtp.c | 7 +- tools/net/ynl/Makefile.deps | 1 + tools/testing/selftests/net/Makefile | 1 + tools/testing/selftests/net/config | 1 + tools/testing/selftests/net/gtp.py | 123 +++++++++++ .../testing/selftests/net/lib/py/__init__.py | 5 +- tools/testing/selftests/net/lib/py/ynl.py | 9 +- 9 files changed, 340 insertions(+), 5 deletions(-) create mode 100644 Documentation/netlink/specs/gtp.yaml create mode 100755 tools/testing/selftests/net/gtp.py -- 2.25.1
Technical Details
Message-ID:
<20261016093225.1036375-1-anilkaushikwireless@gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-347214-linux-kernel-netdev=dewy.ruShow 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-347214-linux-kernel-netdev=dewy.ru
From: anilkaushikwireless@gmail.com (Anil Kaushik)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next v7 0/4] gtp: ynl spec for the GTP netlink family, two fixes, and a selftest
Date: Fri, 16 Oct 2026 09:32:21 +0000
Organization: Usenet Network
Message-ID: <20261016093225.1036375-1-anilkaushikwireless@gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="2730111"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:xWLdwGZHWdbsADje35BC4xfOygQ= sha256:Hx5dLPKMGXGg8iHd38sQVztCwIdigyuFycHzHGAEKzA=
sha1:MaYIAInfJYXWDChQBqASvE7oCw4= sha256:QKLokEmYQGaMMfy0DOPi+dzfrsZLbI9LtIz+mQ1LrOE=
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 C1FA81104C4; Fri, 16 Oct 2026 12:38:14 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.748
X-Spam-Status: No, score=-0.748 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, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
MAILING_LIST_MULTI=-1, 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=gmail.com
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 xyIYAow0kB4E;
Fri, 16 Oct 2026 12:38:11 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-347214-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 75D291104C2; Fri, 16 Oct 2026 12:38:01 +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 84FB444356; Fri, 16 Oct 2026 09:32:38 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C4EB46C856;
Fri, 16 Oct 2026 09:32:37 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dskCgRcn"
X-Received: from mail-dy1-f177.google.com (mail-dy1-f177.google.com [74.125.82.177])
(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 8998A466AF5
for <netdev@vger.kernel.org>; Fri, 16 Oct 2026 09:32:34 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.177
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
t=1792143157; cv=none; b=RxzwHADavOeMJ65PZ3qr96PhkgOQYvK9lUF5Nu7EZRmwxztNUqjuJT6V+AnErBsaWRkXEu3aqZdGy/Lgh/k3jf4HeySxwL1E2iQc7+Y1WXY1MSysPtMhRKpvQhZ3w/zP1zcdGOBtNYbiZY5ZnxFP6bZwi1puZ77Yuok8lFE2grM=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
s=arc-20240116; t=1792143157; c=relaxed/simple;
bh=sWkP4JPpzh1PrUWgTn0gKtwQ2WpS/1O8YY32jiHfj9E=;
h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=FoSvrBwAIc7q4S7TfLTsnR+La23pc5UtlBZwoxpGcaxilTAt1KQ1X+M7dSIM5gIjfzcSyOT+XRMB44Y7rlAPr1Ndv9yRW8lqLBuhMKj8MiOLGNQF6Pt4OqWPXLhdefBJFh88nJG/JZtjbzrc+rREtwUEibohEDg92jE4naQ9cTA=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=dskCgRcn; arc=none smtp.client-ip=74.125.82.177
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-dy1-f177.google.com with SMTP id 5a478bee46e88-3550c917fd3so4019437eec.0
for <netdev@vger.kernel.org>; Fri, 16 Oct 2026 02:32:34 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1792143153; x=1792747953; 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=M4EHfv55CyvmCv6DKOzDwfo547V/LhUX2GtLqYL05K0=;
b=dskCgRcnPjt5HwMZBceVdt217XXbp6cpjEQ9oIIR26EZ2Dr8PnyUvZrlmq5MGzRImz
4EfN9W/L2QY2mPrHG2prMNPOFd261a/lmzNWJW8moxDze7nALpBS/yy4u8Xx5Fa7T3Vj
tonW+K4zH/EBoI26PQCNpmB74YNXLWeZJR/cGxAQ7fifFpz+98EkUxoLe5PQbIQwHSS1
OW68wO04D5iMyiABS9+p/lqrGyZ/kDMO4a27ki9pIEomcv6MH5LRZVAaEwb8ud1xip6K
QV7HRCvArG7ivvKBX8WVYNF3OHws93CGfRQ9+WTNk2F9hvm+/s6tQ6WCmOdAZhn91AMG
6fzA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1792143153; x=1792747953;
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=M4EHfv55CyvmCv6DKOzDwfo547V/LhUX2GtLqYL05K0=;
b=NI1GEUro0e18BqHfhCppvhsXNrlshLymX0tILGt/Uw8tT84FY4xlzhqri6/ISEyh4l
/vjg1eV9TguEy9kpOhxaBOdF8ubXIT9Nr/GPVqQgAlgJozX8C7U6jWmq2ZqUaOi6LZDS
nBlXk3TtE+WQ/nmSpUWVu/ctd7/RRpBoTzzAGOf0QuzXpPF46eTZgm7+SOFAiL7IJkbq
7VfY+bj0v8dHTvMJLELCTM1vpYOPeEbcI5YWZHGTax1RPuBWGxmvyzu78cKRhgNIuj9T
nj5oun4LpONy2O332n0203/P5Jl7TYaQeMzvcyNuSWlEzXejCtrfr61EsX9TzVbap1BJ
0e1w==
X-Forwarded-Encrypted: i=1; AKwUvBxgiVxm423xaol4sm36OMLf0s5trtJR45eEtF7RycovyngJNqFBl2IpgCmXToDJeBfoyUz6hMI=@vger.kernel.org
X-Gm-Message-State: AFq9FYLJYKNjlLI8ttKtzFRCn/P6akWsQbAtYFUx+3pqq855DeVAHN3U
U5xQz9N3k+wUaVpxDfe4EJx7JcG1bOMFN2JfACIhaPJOekel85l/X/1/
X-Gm-Gg: AYBFou3HouauquIYXu8lSgv57AIVda79BCPhucRau1IRSe/36ZR/WWItDC7AfCPEDj4
XGgYJRGMa7Er84pm65tXILiA9uWKHH44oeuzd5ajrZEHS9Xq2mmqSYQo9qoY2eqEZmHeGKKT1OK
dOtZv4C2UJh6VEdABy6n5wWCNkhJGrbD09aeNOio1LeVWLP5R4CcAGs4JYB7sfyTvqlgXaWobLp
rLHSTXkLhVy+rkWchiaEu05SLIEnETfoQt1wkddeZk1cKZVI6WnY2Qat2uG3fvt24pjoYLGdW3c
+PWl3XTNYSFKlvWH623fKc7uDmHN4BMVthGNaV0Wf5NQWcQBh/5rbj41+CkqbHHqGhgDVWJ8Cwo
VGSTUSUwmZAJSEngttPLUA22rxDB6JrEhuLyFrCriMhji3+I3aLrG7I3SepdJCCpogcqk9hZ1Tc
pVDPiRREQwxj1Le/i9AUP/vfl+vIrlwAPWAo0udQ3eaVLp1hneFTv5rCmQ/fQNzqiNA2oXjK9Po
5A3/oHR6iaXx81v01AhW/6Nr787ratPAsukWqTIMnYmv039N/cUUC6W5TygIHeWlTkQlf8E732f
IwQnMTbIGls1KnCMio3HAWjAEt1TdHK3Ush77KbmeF6J
X-Received: by 2002:a05:7300:e9d6:10b0:359:bdc8:c9d5 with SMTP id 5a478bee46e88-359bdd83104mr25799822eec.21.1792143153301;
Fri, 16 Oct 2026 02:32:33 -0700 (PDT)
X-Received: from ramen-dev-security-2.asia-south1-c.c.ramen-dev-345017.internal (90.156.200.35.bc.googleusercontent.com. [35.200.156.90])
by smtp.gmail.com with ESMTPSA id 5a478bee46e88-360820a79c7sm5157172eec.18.2026.10.16.02.32.28
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Fri, 16 Oct 2026 02:32:32 -0700 (PDT)
X-Cc: "David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Paolo Abeni <pabeni@redhat.com>,
Simon Horman <horms@kernel.org>,
Andrew Lunn <andrew+netdev@lunn.ch>,
Shuah Khan <shuah@kernel.org>,
Stanislav Fomichev <sdf.kernel@gmail.com>,
Nicolas Dichtel <nicolas.dichtel@6wind.com>,
osmocom-net-gprs@lists.osmocom.org,
netdev@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-kselftest@vger.kernel.org,
Anil Kaushik <anilkaushikwireless@gmail.com>
X-Mailer: git-send-email 2.25.1
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>