net: clean up network Kconfig entries
authorSangsoon Lim <ssoon.lim@samsung.com>
Mon, 10 Apr 2017 06:23:42 +0000 (15:23 +0900)
committerHeesub Shin <heesub.shin@samsung.com>
Tue, 18 Apr 2017 03:02:14 +0000 (12:02 +0900)
Configuration sync with Tizen RT spin git

Change-Id: Ia92d83312c9b7e9c02fe8a197b894ce0c47de4b3
Signed-off-by: Sangsoon Lim <ssoon.lim@samsung.com>
build/configs/artik053/nettest/defconfig
build/configs/sidk_s5jt200/sidk_tash_wlan/defconfig
os/include/net/lwip/lwipopts.h
os/net/Kconfig
os/net/lwip/configs/Kconfig [moved from os/net/lwip/Kconfig with 89% similarity]
os/net/lwip/configs/arp/Kconfig [new file with mode: 0644]

index ea20ff7..cbf4064 100644 (file)
@@ -659,12 +659,12 @@ CONFIG_NET_LWIP_TCP_MSS=1460
 CONFIG_NET_LWIP_TCP_SEND_BUF=29200
 # CONFIG_NET_LWIP_TCP_TIMESTAMPS is not set
 # CONFIG_NET_LWIP_TCP_LISTEN_BACKLOG is not set
-CONFIG_NET_LWIP_ARP=y
-CONFIG_NET_LWIP_ARP_TABLESIZE=10
-CONFIG_NET_LWIP_ARP_QUEUEING=y
-CONFIG_NET_LWIP_ARP_TRUST_IP_MAC=y
-CONFIG_NET_LWIP_ETH_PAD_SIZE=0
-# CONFIG_NET_LWIP_ARP_STATIC_ENTRIES is not set
+CONFIG_NET_ARP=y
+CONFIG_NET_ARP_TABLESIZE=10
+CONFIG_NET_ARP_QUEUEING=y
+CONFIG_NET_ARP_TRUST_IP_MAC=y
+CONFIG_NET_ETH_PAD_SIZE=0
+# CONFIG_NET_ARP_STATIC_ENTRIES is not set
 
 #
 # IP options
index 905064e..8ec9e2e 100755 (executable)
@@ -660,12 +660,12 @@ CONFIG_NET_LWIP_TCP_MSS=1460
 CONFIG_NET_LWIP_TCP_SEND_BUF=29200
 # CONFIG_NET_LWIP_TCP_TIMESTAMPS is not set
 # CONFIG_NET_LWIP_TCP_LISTEN_BACKLOG is not set
-CONFIG_NET_LWIP_ARP=y
-CONFIG_NET_LWIP_ARP_TABLESIZE=10
-CONFIG_NET_LWIP_ARP_QUEUEING=y
-CONFIG_NET_LWIP_ARP_TRUST_IP_MAC=y
-CONFIG_NET_LWIP_ETH_PAD_SIZE=0
-# CONFIG_NET_LWIP_ARP_STATIC_ENTRIES is not set
+CONFIG_NET_ARP=y
+CONFIG_NET_ARP_TABLESIZE=10
+CONFIG_NET_ARP_QUEUEING=y
+CONFIG_NET_ARP_TRUST_IP_MAC=y
+CONFIG_NET_ETH_PAD_SIZE=0
+# CONFIG_NET_ARP_STATIC_ENTRIES is not set
 
 #
 # IP options
index 9692493..7f57005 100755 (executable)
 #define SYS_LIGHTWEIGHT_PROT            1
 
 /* ---------- ARP options ---------- */
-#ifdef CONFIG_NET_LWIP_ARP
+#ifdef CONFIG_NET_ARP
 #define LWIP_ARP                        1
 #else
 #define LWIP_ARP                        0
 #endif
 
-#if defined(CONFIG_NET_LWIP_ARP)
-#if !defined(CONFIG_NET_LWIP_ARP_TABLESIZE)
+#if defined(CONFIG_NET_ARP)
+#if !defined(CONFIG_NET_ARP_TABLESIZE)
 #error "Please define LWIP ARP Table size"
 #else
-#define ARP_TABLE_SIZE  CONFIG_NET_LWIP_ARP_TABLESIZE
+#define ARP_TABLE_SIZE  CONFIG_NET_ARP_TABLESIZE
 #endif
 #endif
 
-#ifdef CONFIG_NET_LWIP_ARP_QUEUEING
+#ifdef CONFIG_NET_ARP_QUEUEING
 #define ARP_QUEUEING                    1
 #else
 #define ARP_QUEUEING                    0
 #endif
 
 
-#ifdef CONFIG_NET_LWIP_ARP_TRUST_IP_MAC
+#ifdef CONFIG_NET_ARP_TRUST_IP_MAC
 #define ETHARP_TRUST_IP_MAC             1
 #else
 #define ETHARP_TRUST_IP_MAC             0
 #endif
 
-#ifdef CONFIG_NET_LWIP_ETH_PAD_SIZE
-#define ETH_PAD_SIZE                    CONFIG_NET_LWIP_ETH_PAD_SIZE
+#ifdef CONFIG_NET_ETH_PAD_SIZE
+#define ETH_PAD_SIZE                    CONFIG_NET_ETH_PAD_SIZE
 #endif
 
-#ifdef CONFIG_NET_LWIP_ARP_STATIC_ENTRIES
+#ifdef CONFIG_NET_ARP_STATIC_ENTRIES
 #define ETHARP_SUPPORT_STATIC_ENTRIES   1
 #endif
 /* ---------- ARP options ---------- */
index 9d29d97..da2664f 100644 (file)
@@ -12,7 +12,7 @@ config ARCH_HAVE_PHY
        default n
 
 config NET
-       bool "System Networking support"
+       bool "Networking support"
        default n
        select ARCH_HAVE_NET
        ---help---
@@ -31,7 +31,7 @@ config        NET_LWIP
 endchoice
 
 if NET_LWIP
-source net/lwip/Kconfig
+source net/lwip/configs/Kconfig
 endif #NET_LWIP
 
 config NSOCKET_DESCRIPTORS
similarity index 89%
rename from os/net/lwip/Kconfig
rename to os/net/lwip/configs/Kconfig
index d637fae..8bb3095 100644 (file)
@@ -259,59 +259,7 @@ config NET_LWIP_TCP_LISTEN_BACKLOG
 
 endif #NET_LWIP_TCP
 
-menuconfig NET_LWIP_ARP
-       bool "Address Resolution Protocol"
-       default y
-
-
-if NET_LWIP_ARP
-
-config NET_LWIP_ARP_TABLESIZE
-       int "ARP table size"
-       default 10
-       ---help---
-               Number of active MAC-IP address pairs cached.
-
-config NET_LWIP_ARP_QUEUEING
-       bool "Arp Queueing"
-       default n
-       ---help---
-               Multiple outgoing packets are queued during hardware address
-               resolution. If disabled, only the most recent packet is queued per IP address.
-               This is sufficient for most protocols and mainly reduces TCP connection
-               startup time. Set this to 1 if you know your application sends more than one
-               packet in a row to an IP address that is not in the ARP cache.
-
-config NET_LWIP_ARP_TRUST_IP_MAC
-       bool "Trust IP MAC"
-       default n
-       ---help---
-               Incoming IP packets cause the ARP table to be updated with the source
-               MAC and IP addresses supplied in the packet. You may want to disable
-               this if you do not trust LAN peers to have the correct addresses, or
-               as a limited approach to attempt to handle spoofing. If disabled,
-               lwIP will need to make a new ARP request if the peer is not already
-               in the ARP table, adding a little latency.
-               The peer *is* in the ARP table if it requested our address before.
-               Also notice that this slows down input processing of every IP packet!
-
-config NET_LWIP_ETH_PAD_SIZE
-       int "Number of ethernet padding bytes"
-       default 0
-       ---help---
-               Number of bytes added before the ethernet header to ensure
-               alignment of payload after that header. Since the header is 14 bytes long,
-               without this padding e.g. addresses in the IP header will not be aligned
-               on a 32-bit boundary, so setting this to 2 can speed up 32-bit-platforms.
-
-config NET_LWIP_ARP_STATIC_ENTRIES
-       bool "Support ARP static entries"
-       default n
-       ---help---
-               Enable code to support static ARP table
-               entries (using etharp_add_static_entry/etharp_remove_static_entry).
-
-endif #NET_LWIP_ARP
+source "net/lwip/configs/arp/Kconfig"
 
 menu "IP options"
 
diff --git a/os/net/lwip/configs/arp/Kconfig b/os/net/lwip/configs/arp/Kconfig
new file mode 100644 (file)
index 0000000..838a632
--- /dev/null
@@ -0,0 +1,54 @@
+#
+# For a description of the syntax of this configuration file,
+# see kconfig-language at https://www.kernel.org/doc/Documentation/kbuild/kconfig-language.txt
+#
+
+menu "ARP Configuration"
+
+config NET_ARP
+       bool "ARP enable"
+       default y
+       depends on NET_ETHERNET && NET_IPv4
+       ---help---
+               This setting is currently overridden by logic in include/nuttx/net
+
+if NET_ARP
+
+config NET_ARP_TABLE_SIZE
+       int "ARP table size"
+       default 10
+       ---help---
+               Number of active MAC-IP address pairs cached
+
+config NET_ARP_QUEUEING
+       bool "ARP queueing"
+       default y
+       ---help---
+               Multiple outgoing packets are queued during hardware address resolution.
+
+config NET_ETHARP_TRUST_IP_MAC
+       bool "ARP trust IP mac"
+       default y
+       ---help---
+               Incoming IP packets cause the ARP table to be updated with
+               the source MAC and IP addresses supplied in the packet.
+
+config NET_ETH_PAD_SIZE
+       int "Number of ethernet padding bytes"
+       default 0
+       ---help---
+               Number of bytes added before the ethernet header to ensure
+               alignment of payload after that header. Since the header is 14 bytes long,
+               without this padding e.g. addresses in the IP header will not be aligned
+               on a 32-bit boundary, so setting this to 2 can speed up 32-bit-platforms.
+
+config NET_ARP_STATIC_ENTRIES
+       bool "Support ARP static entries"
+       default n
+       ---help---
+               Enable code to support static ARP table
+               entries (using etharp_add_static_entry/etharp_remove_static_entry).
+
+endif # NET_ARP
+
+endmenu # ARP Configuration