rmnet: Handle toolchains with old kernel headers
PATCH 1/1 rmnet: Handle toolchains with old kernel headers
The RMNET_FLAGS_*GRESS_MAP_CKSUMV5 defines were added to the kernel in 5.14[1] and some toolchains use older headers, so add fallback defines in case they are needed.
[1] linux b6e5d27e32ef6089d316ce7e1ecaf595584d4b84
--- src/rmnet.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
src/rmnet.c +10 -0
@@ -27,6 +27,16 @@#define MAX_MUX_IDS 254U#define DEFAULT_MTU 1400U +/* +* These were added in 5.14 so define them here if the toolchain's kernel headers are old. +*/ +#ifndef RMNET_FLAGS_INGRESS_MAP_CKSUMV5 +#define RMNET_FLAGS_INGRESS_MAP_CKSUMV5 (1U << 4) +#endif +#ifndef RMNET_FLAGS_EGRESS_MAP_CKSUMV5 +#define RMNET_FLAGS_EGRESS_MAP_CKSUMV5 (1U << 5) +#endif +struct rmnet_request {uint32_t parent_ifindex;rmnet_new_interfaces_func_t new_cb;
Signature · 1 line
2.43.0
This patch was applied to ofono.git (master) by Denis Kenzior <[email protected]>:
Hello:
This patch was applied to ofono.git (master)
by Denis Kenzior <[email protected]>:
Quoted 8 lines · On Thu, 19 Dec 2024 13:47:15 +0000 you wrote:
The RMNET_FLAGS_*GRESS_MAP_CKSUMV5 defines were added to the kernel in 5.14[1] and some toolchains use older headers, so add fallback defines in case they are needed.
[1] linux
b6e5d27e32ef6089d316ce7e1ecaf595584d4b84--- src/rmnet.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
Here is the summary with links:
- rmnet: Handle toolchains with old kernel headers
https://git.kernel.org/pub/scm/network/ofono/ofono.git/?id=3d6653f29686
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html