diff options
| author | Anil Kaushik <anilkaushikwireless@gmail.com> | 2026-10-16 09:32:25 +0000 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2026-10-21 11:37:08 +0200 |
| commit | ffb51f75013f8d572cc3aa942425e0fa0a8e6d09 (patch) | |
| tree | d9b4a4ae5be09f312aaf1b39d7ba8e0213fcbcc8 /scripts/Makefile.thinlto | |
| parent | 8a2f9964fc28954cef5a39e3636690d83cff3951 (diff) | |
| download | linux-ffb51f75013f8d572cc3aa942425e0fa0a8e6d09.tar.gz linux-ffb51f75013f8d572cc3aa942425e0fa0a8e6d09.zip | |
selftests: net: add a test for the gtp netlink family
Exercise the gtp generic netlink family through its ynl spec: create a
gtp device, add a PDP context with newpdp, check getpdp dumps it on that
device with the expected TEIDs and addresses, and that delpdp by TEI
removes it. Two more cases check that two contexts are dumped and one
can be deleted by its MS address, and that deleting an unknown context
fails with ENOENT, both by TEI and by MS address.
ynl resolves the family ids once per process, with a CTRL_CMD_GETFAMILY
dump which does not autoload modules, so the gtp device is created
before the family handle: that loads gtp.ko through its rtnl link alias.
The test is skipped when the kernel or iproute2 lack GTP support; any
other failure to create the device fails it.
Add a GtpFamily ynl wrapper and register the test.
Signed-off-by: Anil Kaushik <anilkaushikwireless@gmail.com>
Link: https://patch.msgid.link/20261016093225.1036375-5-anilkaushikwireless@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
