Richard Fuchs
4ca8bb03d7
MT#55283 refactor into rtpe_pull_trim
...
Use a helper function to adjust the skb pointers.
No functional change.
Change-Id: I7774cb2450a419197f0102de3898cf9ffcc16e5b
1 week ago
Richard Fuchs
718bee6505
MT#55283 add open counter
...
Change-Id: I9f951e9def0f34951b02b628787bdf742da09196
1 week ago
Richard Fuchs
81572a7d86
MT#55283 pull down skb_copy past get_target
...
Make the skb copy only once we know that it's for a known target.
Implies a rework of some of the early-return gotos.
No functional change.
Change-Id: Ibf5d09c0df2a91cfb50f3181e80114539e4f50a6
2 weeks ago
Richard Fuchs
b0eafb2fed
MT#55283 pull skb_copy into main func
...
Make the skb copy within the worker function instead of its callers.
Combines two identical pieces of code into one.
No functional change.
Change-Id: I9ee97c8a2588ca9f88e79b92a9fa880feaa8e156
2 weeks ago
Richard Fuchs
60c2a1f8c1
MT#55283 fix array size
...
Typo
Change-Id: I640699bb2ee7c876e5aa76e9d12b00d25ce51b48
2 weeks ago
Richard Fuchs
f86faf6ba8
MT#55283 unify skb_pull to transport
...
Use the existing offsets to network/transport header to determine how
much needs to be pulled back. Then we can combine these code snippets
into one.
No functional change.
Change-Id: I34eeb707da9baad0891d2fbb2d8d9fc95e027204
2 weeks ago
Richard Fuchs
e6c9330571
MT#55283 fix compilation for RHEL 9
...
Closes #2143
Change-Id: I14434cfd50673ab61634d94a17177c1524836250
2 weeks ago
Richard Fuchs
ef39a3e8ae
MT#55283 fix compiler warnings
...
Change-Id: Ic615de16f848075d263f5814e3ff155db193067f
3 weeks ago
Richard Fuchs
8e65f010f9
MT#55283 fix legacy xt check
...
Change-Id: I7446e8ceeee2e7a76aa46361b92bae5bcc0ddbb6
3 weeks ago
Richard Fuchs
e7b50caf92
MT#55283 remove unused variables
...
Change-Id: I566bec07bdcc42d64eca8396b5848e83aa10d83b
3 weeks ago
Richard Fuchs
237de5cd42
MT#55283 remove obsolete PID field
...
Change-Id: Ife3d02ded89f1770bc398982d0eaef5ac4c5ea74
3 weeks ago
Richard Fuchs
eebbece214
MT#55283 support table creation through nft
...
Change-Id: I44c95d40e1c209505955f46a3208d0035027e4ef
3 weeks ago
Richard Fuchs
1b8e868412
MT#55283 store reference to table in expr
...
Change-Id: I16d51b17b351df9ebf756545b0d410fe04143c32
3 weeks ago
Richard Fuchs
70ce49558f
MT#55283 pull up call to get_table
...
Change-Id: I723e0c4a487651ec6ba9f52e6eb79b0d87e0a091
3 weeks ago
Richard Fuchs
03c37c893f
MT#55283 change "del" strategy
...
Only do deletion if no other refs are open.
Add new "kill" method to override this.
Handle spurious EBUSY in daemon shutdown.
Change-Id: Ic84a0c3c1e3a007052baf19d22d79cbccf12c414
3 weeks ago
Richard Fuchs
16f5a4d10e
MT#55283 store table ref in call obj
...
Change-Id: I21298db44c6b407872654065235985e914efe99d
3 weeks ago
Richard Fuchs
1f6d081e14
MT#55283 store table ref in re_play_stream_packets
...
Change-Id: I68c51042162eec822e11569292bf14d03945cf7d
3 weeks ago
Richard Fuchs
d02b41dde7
MT#55283 store table ref in re_play_stream
...
Change-Id: I2b5e4b55a770b2b22e5d6281fe2341f5259d4f13
3 weeks ago
Richard Fuchs
7641a94b5f
MT#55283 store table ref in list seq file
...
Change-Id: I2cf2e7a713faa1fbe501dcf5f5946a93190c7e8d
3 weeks ago
Richard Fuchs
22c8df9206
MT#55283 store ref to table in private_data
...
Change-Id: I781761e1072923b3eaf26bbf8f0a62dfc6d7da76
3 weeks ago
Idan Freiberg
7051631097
MT#55283 kernel-module: scrub forwarded skb metadata
...
Closes #2140
Change-Id: I89c8a75d79c1c16ece6ca98ae2bbd5f615cc3ca2
3 weeks ago
Richard Fuchs
c4603dc3f3
MT#55283 ensure null termination
...
Change-Id: I15c8d0bf2b30236888131aa51a7b4b2f2641c339
3 weeks ago
Richard Fuchs
5ad3605d73
MT#55283 debug log output for EINVAL
...
Change-Id: I7388478d72ce21bdddb0ea3c13fd2c142620f430
4 weeks ago
Richard Fuchs
36a347ed7f
MT#55283 fix compilation for kernel >= 7.1
...
Change-Id: I004320a12ea77ec1e805394dd7d20ee62a73785c
4 weeks ago
Richard Fuchs
fd057cc020
MT#55283 remove unused DEL_STREAM
...
Change-Id: Ie4cc5d55b93038a246a5038ace1d7a3d4edcce84
2 months ago
Richard Fuchs
18625c7ac5
MT#55283 move structs out of #ifdef scope
...
Fixes builds on kernels without BTREE
Reported in #2111
Change-Id: I988c5bf1119352c0bc212751f21c708477cb6df1
3 months ago
Richard Fuchs
5403ed616a
MT#55283 add ring buffers
...
Change-Id: I1aaa10131f3f000815506b46cc3c2ed9924e6430
3 months ago
Richard Fuchs
42cd2e0198
MT#55283 dynamically allocate shm map
...
Change-Id: Icd6cdef1f76600a2fe7454c18782b73a5887f296
3 months ago
Richard Fuchs
2e439c91c1
MT#55283 kfree doesn't need a null check
...
Change-Id: I2fc672abebc79f0af4714019f249e71ae5301987
3 months ago
Richard Fuchs
175f1dfe34
MT#55283 remove stray log message
...
Change-Id: Iaf67d350b44bf48de096129e797c8d07b027b4a5
3 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
3 months ago
Federico Cabiddu
8aa17085fd
MT#55283 kernel-module: zero skb->tstamp before forwarding to fix fq horizon drop
...
Change-Id: Ie8f976373993b1ea07f568bbfa59d646dcbb3ae6
4 months ago
Federico Cabiddu
ee99d86706
MT#55283 kernel-module: zero queue_mapping before forwarding to fix Cilium throttle drop
...
Change-Id: Ib559d291023bcb3ca691f0c8bd66a634ed451aff
4 months ago
Federico Cabiddu
6b02c024b1
MT#55283 kernel-module: clear skb->mark before forwarding to fix Cilium routing
...
Change-Id: Ibac5e897ed79d483ae4e8c4c3417fdd78a35f591
4 months ago
Richard Fuchs
ff0cdf8393
MT#55283 store ref to stream object in priv data
...
Change-Id: I0c8dcd333770ab3da1fe7fea28deadaca43d4147
4 months ago
Richard Fuchs
11dea691e8
MT#55283 make eof flag atomic
...
Change-Id: I0a76772c92bf999d1356dc1b91670ddc7583070a
4 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
4 months ago
Richard Fuchs
7e6c2c30a4
MT#55283 improve version handling
...
Change-Id: I8ff496f8460c5c5e0bee6b6bb6f3d2245291c597
4 months ago
Richard Fuchs
14769ec05d
MT#55283 fix refcount release
...
Closes #2067
Change-Id: I9fa79d67f158a3b5e00cdc83a12c494a4459f8a9
4 months ago
Richard Fuchs
02916e72c8
MT#55283 honour .release-version also for .ko
...
Change-Id: If145e018248444b9b6a30a4b6ee5984ab27ca8fd
4 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
5 months ago
Richard Fuchs
454983a3a8
MT#55283 add TOS to kernel player
...
Change-Id: I1e13015675b2b539e9c7cde01fba96a912726793
7 months ago
Richard Fuchs
14561524dc
MT#55283 protect against possibly signed int
...
and add an additional comment
Change-Id: I5cb3f434a21879343568f87425356507c2717d7b
7 months ago
Richard Fuchs
e24245501d
MT#55283 add const qualifiers
...
Change-Id: I8351c55fad8d446cd336d645dff8c79410d72967
7 months ago
Richard Fuchs
84ca9e65ba
MT#55283 use kthread_*_stop
...
Change-Id: Icf1f8bfbec073fbe7e842cb7671d673bbee5a9dc
7 months ago
Richard Fuchs
900dfd5f86
MT#55283 signed refcount for consistency
...
Change-Id: I56008b19b60988127634c70e8703297f6059b93c
7 months ago
Richard Fuchs
00cc8f5703
MT#55283 add comments
...
Change-Id: If8a09345dd168fab69209a347239d52e240ce8b5
7 months ago
Richard Fuchs
4b6b2eb1ab
MT#55283 fix compilation for RHEL
...
Closes #2042
Change-Id: I8b0de1bfdfa46370365511809daffd56bfb8a055
8 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
8 months ago
Richard Fuchs
59ec32fa7d
MT#55283 gitignore update
...
Change-Id: I7b4ab3687e877a9a318709c1b43eb85bef073064
8 months ago