Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/ethernet: Moving ethernet code to dedicated directory
There will be additional source files coming in, so let's not clutter l2 root directory. Reordering a bit l2 Kconfig: offload part come first, then the l2 drivers. Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
- Loading branch information
Showing
6 changed files
with
86 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
zephyr_library() | ||
zephyr_library_include_directories(. ../..) | ||
zephyr_library_compile_definitions_ifdef( | ||
CONFIG_NEWLIB_LIBC __LINUX_ERRNO_EXTENSIONS__ | ||
) | ||
|
||
zephyr_library_sources_ifdef(CONFIG_NET_ARP arp.c) | ||
zephyr_library_sources_ifdef(CONFIG_NET_L2_ETHERNET ethernet.c) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# | ||
# Copyright (c) 2018 Intel Corporation. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
menuconfig NET_L2_ETHERNET | ||
bool "Enable Ethernet support" | ||
default n | ||
help | ||
Add support for Ethernet, enabling selecting relevant hardware drivers. | ||
If NET_SLIP_TAP is selected, NET_L2_ETHERNET will enable to fully | ||
simulate Ethernet through SLIP. | ||
|
||
if NET_L2_ETHERNET | ||
|
||
config NET_DEBUG_L2_ETHERNET | ||
bool "Debug Ethernet L2 layer" | ||
default n | ||
default y if NET_LOG_GLOBAL | ||
depends on NET_LOG | ||
help | ||
Enables Ethernet L2 output debug messages | ||
|
||
config NET_VLAN | ||
bool "Enable virtual lan support" | ||
default n | ||
help | ||
Enables virtual lan (VLAN) support for Ethernet. | ||
|
||
config NET_VLAN_COUNT | ||
int "Max VLAN tags supported in the system" | ||
default 1 | ||
range 1 255 | ||
depends on NET_VLAN | ||
help | ||
How many VLAN tags can be configured. | ||
|
||
config NET_ARP | ||
bool "Enable ARP" | ||
default y | ||
depends on NET_IPV4 | ||
help | ||
Enable ARP support. This is necessary on hardware that requires it to | ||
get IPv4 working (like Ethernet devices). | ||
|
||
config NET_ARP_TABLE_SIZE | ||
int "Number of entries in ARP table." | ||
depends on NET_ARP | ||
default 2 | ||
help | ||
Each entry in the ARP table consumes 22 bytes of memory. | ||
|
||
config NET_DEBUG_ARP | ||
bool "Debug IPv4 ARP" | ||
depends on NET_ARP && NET_LOG | ||
default n | ||
default y if NET_LOG_GLOBAL | ||
help | ||
Enables core ARP code part to output debug messages | ||
|
||
endif # NET_L2_ETHERNET |
File renamed without changes.
File renamed without changes.