Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Commits on Sep 30, 2024

  1. net: sockets: Split native IP socket implementation from syscalls

    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]>
    rlubos committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    163083e View commit details
    Browse the repository at this point in the history
  2. net: Avoid compiling native network stack parts w/o NET_NATIVE

    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]>
    rlubos committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    10e9e4d View commit details
    Browse the repository at this point in the history
  3. net: offload: Do not need to enable TC threads for NET_OFFLOAD

    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]>
    rlubos committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    451e785 View commit details
    Browse the repository at this point in the history
  4. net: sockets: Remove SET_ERRNO() macro

    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]>
    rlubos committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    6e833a2 View commit details
    Browse the repository at this point in the history