Richard Fuchs
fd057cc020
MT#55283 remove unused DEL_STREAM
...
Change-Id: Ie4cc5d55b93038a246a5038ace1d7a3d4edcce84
3 weeks ago
Richard Fuchs
18625c7ac5
MT#55283 move structs out of #ifdef scope
...
Fixes builds on kernels without BTREE
Reported in #2111
Change-Id: I988c5bf1119352c0bc212751f21c708477cb6df1
1 month ago
Richard Fuchs
5403ed616a
MT#55283 add ring buffers
...
Change-Id: I1aaa10131f3f000815506b46cc3c2ed9924e6430
1 month ago
Richard Fuchs
42cd2e0198
MT#55283 dynamically allocate shm map
...
Change-Id: Icd6cdef1f76600a2fe7454c18782b73a5887f296
1 month ago
Richard Fuchs
2e439c91c1
MT#55283 kfree doesn't need a null check
...
Change-Id: I2fc672abebc79f0af4714019f249e71ae5301987
1 month ago
Richard Fuchs
175f1dfe34
MT#55283 remove stray log message
...
Change-Id: Iaf67d350b44bf48de096129e797c8d07b027b4a5
2 months ago
Richard Fuchs
2a4e3de30b
MT#55283 move check for destinations
...
Don't check destination indexes if the non-forwarding flag is set, as
everything would be zero
Change-Id: Ieedf8009c1a9670aba4c57ee988c0dead18a79f1
2 months ago
Federico Cabiddu
8aa17085fd
MT#55283 kernel-module: zero skb->tstamp before forwarding to fix fq horizon drop
...
Change-Id: Ie8f976373993b1ea07f568bbfa59d646dcbb3ae6
2 months ago
Federico Cabiddu
ee99d86706
MT#55283 kernel-module: zero queue_mapping before forwarding to fix Cilium throttle drop
...
Change-Id: Ib559d291023bcb3ca691f0c8bd66a634ed451aff
2 months ago
Federico Cabiddu
6b02c024b1
MT#55283 kernel-module: clear skb->mark before forwarding to fix Cilium routing
...
Change-Id: Ibac5e897ed79d483ae4e8c4c3417fdd78a35f591
2 months ago
Richard Fuchs
ff0cdf8393
MT#55283 store ref to stream object in priv data
...
Change-Id: I0c8dcd333770ab3da1fe7fea28deadaca43d4147
3 months ago
Richard Fuchs
11dea691e8
MT#55283 make eof flag atomic
...
Change-Id: I0a76772c92bf999d1356dc1b91670ddc7583070a
3 months ago
Andrew Yager
b1aec46de8
MT#55283 kernel-module: detect nft_expr_ops.validate signature via compile test
...
The current LINUX_VERSION_CODE check for the nft_expr_ops.validate
callback signature breaks on distribution kernels that backport the
API change (mainline commit eaf9b2c875ec, merged in 6.12) without
updating LINUX_VERSION_CODE.
For example, Ubuntu 24.04's 6.8.0-103+ kernel (stable patchset
2026-01-27, LP: #2139158 ) includes this backport, causing DKMS
builds to fail with -Werror=incompatible-pointer-types.
Replace the version-based #if with a compile test in the existing
gen-rtpengine-kmod-flags configure script. The test tries to assign
a 3-param function to .validate -- if it compiles, the old API is
present and NFT_EXPR_OPS_VALIDATE_HAS_DATA is set. If it fails, the
kernel has the new 2-param version.
Also use kbuild's KERNELRELEASE variable (instead of uname -r) to
resolve the kernel build directory, so that compile tests and KSRC
target the correct kernel during cross-version DKMS builds.
Tested against Ubuntu 6.8.0-90 (3-param) and 6.8.0-106 (2-param),
including cross-kernel builds where the running kernel differs from
the DKMS target.
Closes #2085
Change-Id: I4c8e55b94fb98c3fcda9dccb091d0d1c0c67f9aa
3 months ago
Richard Fuchs
7e6c2c30a4
MT#55283 improve version handling
...
Change-Id: I8ff496f8460c5c5e0bee6b6bb6f3d2245291c597
3 months ago
Richard Fuchs
14769ec05d
MT#55283 fix refcount release
...
Closes #2067
Change-Id: I9fa79d67f158a3b5e00cdc83a12c494a4459f8a9
3 months ago
Richard Fuchs
02916e72c8
MT#55283 honour .release-version also for .ko
...
Change-Id: If145e018248444b9b6a30a4b6ee5984ab27ca8fd
3 months ago
Richard Fuchs
9a3f33a703
MT#55283 fix stream close race condition
...
Using the stream object after dropping the reference is unsafe.
Change-Id: I58df474272cc7e168d6d65e5f6ace3a42fe22ef1
3 months ago
Richard Fuchs
454983a3a8
MT#55283 add TOS to kernel player
...
Change-Id: I1e13015675b2b539e9c7cde01fba96a912726793
5 months ago
Richard Fuchs
14561524dc
MT#55283 protect against possibly signed int
...
and add an additional comment
Change-Id: I5cb3f434a21879343568f87425356507c2717d7b
5 months ago
Richard Fuchs
e24245501d
MT#55283 add const qualifiers
...
Change-Id: I8351c55fad8d446cd336d645dff8c79410d72967
5 months ago
Richard Fuchs
84ca9e65ba
MT#55283 use kthread_*_stop
...
Change-Id: Icf1f8bfbec073fbe7e842cb7671d673bbee5a9dc
5 months ago
Richard Fuchs
900dfd5f86
MT#55283 signed refcount for consistency
...
Change-Id: I56008b19b60988127634c70e8703297f6059b93c
5 months ago
Richard Fuchs
00cc8f5703
MT#55283 add comments
...
Change-Id: If8a09345dd168fab69209a347239d52e240ce8b5
5 months ago
Richard Fuchs
4b6b2eb1ab
MT#55283 fix compilation for RHEL
...
Closes #2042
Change-Id: I8b0de1bfdfa46370365511809daffd56bfb8a055
6 months ago
root
503c4aaffe
MT#55283 Fix nft_rtpengine compilation on RHEL/AlmaLinux 9.x kernel 5.14
...
Add support for RHEL/AlmaLinux/Rocky Linux 9.x kernels which backport
the 'reset' parameter to nft_expr_dump function from kernel 6.2.0.
This affects all RHEL 9 family distributions with kernel 5.14.
Tested on AlmaLinux 9.7 with kernel 5.14.0-611.11.1.el9_7.x86_64
Closes #2038
Closes #2037
Change-Id: I305be17cdbf7730acbc7d9b978694c7b0eb37b02
6 months ago
Richard Fuchs
59ec32fa7d
MT#55283 gitignore update
...
Change-Id: I7b4ab3687e877a9a318709c1b43eb85bef073064
6 months ago
Richard Fuchs
addb93f051
MT#55283 gitignore update
...
Change-Id: Ia1766eca51e85c345e58114912996a3eb11ab3a8
6 months ago
Richard Fuchs
b9d1509244
MT#55283 rename module
...
Change-Id: I81f5370655af00d3a99593eb17cb1d62d961370c
7 months ago
Richard Fuchs
7eeee273e5
MT#55283 add native nftables support
...
Register expression for IPv4, IPv6, and INET protocols.
Support one u32 attribute, which is the table ID.
Change-Id: If6385dab53c79c9b3de80df470fa537fbb6d33f6
7 months ago
Richard Fuchs
b7586e2730
MT#55283 generalise packet handler functions
...
Also switch from XT_ to NFT_ constants and update the return type as
appropriate.
Change-Id: I2ddb88bd9899ac23d3fac6bfdeb38dff5f9d2813
7 months ago
Richard Fuchs
50e86ed14a
MT#55283 pull up extraction of PAR_STATE_NET ptr
...
Don't pass the xt_action_param into the inner functions as they don't
need it. Get the struct net pointer first and then pass that down.
Change-Id: I82e95c93ed1066bf051fae63ff7697d72265f24b
7 months ago
Richard Fuchs
5586ed0ed6
MT#55283 C90 compile fixes
...
Change-Id: I5e6bba67507689ba9b1c14865bedb8625373508c
7 months ago
Richard Fuchs
0e1ba80ead
MT#55283 fix module refcount
...
Change-Id: Ife7dc65308b91b223bc67dd4f81f1e0fb079c5df
7 months ago
Richard Fuchs
a5e5a27ea0
MT#55283 use seq_printf for /status
...
Change-Id: I71cd6e34e590da6b6c9b339191642a2a565dcb4e
7 months ago
Richard Fuchs
99d30be6aa
MT#55283 name spacing
...
Change-Id: Ia95f405f1fdad4690cab071cb68ca25cc465bd1f
7 months ago
Richard Fuchs
4071e42a3e
MT#55283 fix off-by-one bug
...
Change-Id: I578554e956a6630b49362ea9245255c13d6c69b4
7 months ago
Richard Fuchs
0eea0db4ef
MT#63317 amend and fix some logging
...
Change-Id: I7bacf207de52614e5ece4c8aa0243d5033b6cbfa
8 months ago
Richard Fuchs
ce951ab320
MT#63317 fix AEAD encryption with header extension
...
Change-Id: I75ddb3f4b711b31f21a240b04ac680a31894fa16
8 months ago
Richard Fuchs
dc5544ead1
MT#63317 fix incorrect bsearch syntax
...
Change-Id: I0ea7c3cff1fc43783391b4af1b003cd6ddf3b5e1
8 months ago
Richard Fuchs
847d004319
MT#55283 revamp kernel shm strategy
...
Change-Id: I16f8b60317fc21b20a5cff5b0ba5b6026981fc6b
8 months ago
Richard Fuchs
d78064344a
MT#63317 add SSRC mapping to kernel
...
Change-Id: If3af2ff872be340be57a2c53c35fcf2d83af6587
9 months ago
Richard Fuchs
3b0496979a
MT#63317 extmap parsing in kernel
...
Change-Id: I2d4b0f0ba08d0dd793bd4e9716731dfe96ee155a
9 months ago
Richard Fuchs
e3a9eeea00
MT#63317 select kernel output group from PT
...
Change-Id: Ia818c42ffa8db916c37df87d239187bec1646d9f
9 months ago
Richard Fuchs
8cf038e4fa
MT#63317 rework kernel output grouping
...
Change-Id: I3e798e5f1e5ae2f4af247819e3d323cdbf56b36b
9 months ago
Richard Fuchs
827b6afb4a
MT#63317 kernel support for RTP MID
...
Change-Id: Ib3582649474fb7a926e47cb61d140bc389ef0d86
9 months ago
Richard Fuchs
de961d5b43
MT#55283 delegate shm refcount to table
...
We don't track individual uses of the shared memory, so we can't safely
free it when the mapping is closed, as the internal forwarding targets
may still point into it. Delay freeing until the table itself is freed.
Each mmap then counts as another reference on the table. Unmap then
simply decreases the reference count but never actually frees the pages.
Change-Id: Ic33454155cd0083f733711ce52699047cff9e56c
9 months ago
Richard Fuchs
bce87931a6
MT#63317 fix seq print formatting
...
Change-Id: Id5f42162263ac1a6fe2820f387516a3fbb64570f
9 months ago
Richard Fuchs
1b05cb043e
MT#63317 support ext filter in kernel
...
Change-Id: Ic98dde266c7707dd3350d651032d989511ee3bee
9 months ago
Richard Fuchs
1f9cd2e1d7
MT#63317 rename rtp_extension to rtp_exthdr
...
for consistency
Change-Id: Idac591d68729dd186e76950ca3af47f760a6c5cf
9 months ago
Richard Fuchs
8a3d8c911d
MT#63317 re-fix extension parsing
...
Basically a revert of Ie62fa4ed
Maybe this is correct now?
Change-Id: Ia2b1b5d35c2a209430a23110f1b929e2b1ac80fb
10 months ago