-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net: Avoid building native stack components with CONFIG_NET_NATIVE=n #79206
base: main
Are you sure you want to change the base?
Conversation
2e3b2b3
to
294532e
Compare
@jukkar What's your say on
It's about |
Added a commit removing the faulty macro, just in case. |
Overriding is a good choice, I think the macro just hides things without being useful. |
11f69a2
to
dfa3631
Compare
Native IP socket implementation need only be build if native IP stack is enabled. Therefore, split the native IP sockets from the common socket syscalls shared across all socket implementations. Signed-off-by: Robert Lubos <[email protected]>
In case NET_NATIVE is disabled, certain network stack components do not need to be compiled. Otherwise, they could throw errors if --no-gc-sections compiler options is enabled. Signed-off-by: Robert Lubos <[email protected]>
Net offloading doesn't need net TC threads to be enabled as they're used by the native stack. This fixes build if CONFIG_NET_OFFLOAD is enabled but native stack is disabled. Signed-off-by: Robert Lubos <[email protected]>
Macros with flow control are discouraged and generate compliance error, hence remove it and replace the corresponding code with simple errno assignments. Signed-off-by: Robert Lubos <[email protected]>
dfa3631
to
6e833a2
Compare
Another set of changes for better separation of native network stack and offloaded cases. This disables building of native stack features when NET_NATIVE is disabled. It's been reported that builds may fail with
--no-gc-sections
option enabled.The major change here is separation of generic socket code (syscalls shared between native and offloaded implementations) from native IP sockets implementation. For some reason git produced pretty scary diff, but in reality the
sockets.c
file has simply been split into two.