Convert CONFIG_SYS_FAULT_ECHO_LINK_DOWN to Kconfig
[platform/kernel/u-boot.git] / net / Kconfig
1 #
2 # Network configuration
3 #
4
5 menuconfig NET
6         bool "Networking support"
7         default y
8
9 if NET
10
11 config ARP_TIMEOUT
12         int "Milliseconds before trying ARP again"
13         default 5000
14
15 config NET_RETRY_COUNT
16         int "Number of timeouts before giving up"
17         default 5
18         help
19           This variable defines the number of retries for network operations
20           like ARP, RARP, TFTP, or BOOTP before giving up the operation.
21
22 config PROT_UDP
23         bool "Enable generic udp framework"
24         help
25           Enable a generic udp framework that allows defining a custom
26           handler for udp protocol.
27
28 config BOOTP_SEND_HOSTNAME
29         bool "Send hostname to DNS server"
30         help
31           Some DHCP servers are capable to do a dynamic update of a
32           DNS server. To do this, they need the hostname of the DHCP
33           requester.
34           If CONFIG_BOOTP_SEND_HOSTNAME is defined, the content
35           of the "hostname" environment variable is passed as
36           option 12 to the DHCP server.
37
38 config NET_RANDOM_ETHADDR
39         bool "Random ethaddr if unset"
40         help
41           Selecting this will allow the Ethernet interface to function even
42           when the ethaddr variable for that interface is unset.  In this case,
43           a random MAC address in the locally administered address space is
44           generated. It will be saved to the appropriate environment variable,
45           too.
46
47 config NETCONSOLE
48         bool "NetConsole support"
49         help
50           Support the 'nc' input/output device for networked console.
51           See README.NetConsole for details.
52
53 config IP_DEFRAG
54         bool "Support IP datagram reassembly"
55         help
56           Selecting this will enable IP datagram reassembly according
57           to the algorithm in RFC815.
58
59 config NET_MAXDEFRAG
60         int "Size of buffer used for IP datagram reassembly"
61         depends on IP_DEFRAG
62         default 16384
63         range 1024 65536
64         help
65           This defines the size of the statically allocated buffer
66           used for reassembly, and thus an upper bound for the size of
67           IP datagrams that can be received.
68
69 config SYS_FAULT_ECHO_LINK_DOWN
70         bool "Echo the inverted Ethernet link state to the fault LED"
71         help
72           Echo the inverted Ethernet link state to the fault LED.  Note, if
73           this option is active, then CONFIG_SYS_FAULT_MII_ADDR also needs to
74           be configured.
75
76 config TFTP_BLOCKSIZE
77         int "TFTP block size"
78         default 1468
79         help
80           Default TFTP block size.
81           The MTU is typically 1500 for ethernet, so a TFTP block of
82           1468 (MTU minus eth.hdrs) provides a good throughput with
83           almost-MTU block sizes.
84           You can also activate CONFIG_IP_DEFRAG to set a larger block.
85
86 config TFTP_WINDOWSIZE
87         int "TFTP window size"
88         default 1
89         help
90           Default TFTP window size.
91           RFC7440 defines an optional window size of transmits,
92           before an ack response is required.
93           The default TFTP implementation implies a window size of 1.
94
95 config TFTP_TSIZE
96         bool "Track TFTP transfers based on file size option"
97         depends on CMD_TFTPBOOT
98         default y if (ARCH_OMAP2PLUS || ARCH_K3)
99         help
100           By default, TFTP progress bar is increased for each received UDP
101           frame, which can lead into long time being spent for sending
102           data over the UART. Enabling this option, TFTP queries the file
103           size from server, and if supported, limits the progress bar to
104           50 characters total which fits on single line.
105
106 config SERVERIP_FROM_PROXYDHCP
107         bool "Get serverip value from Proxy DHCP response"
108         help
109           Allows bootfile config to be fetched from Proxy DHCP server
110                 while IP is obtained from main DHCP server.
111
112 config SERVERIP_FROM_PROXYDHCP_DELAY_MS
113         int "# of additional milliseconds to wait for ProxyDHCP response"
114         default 100
115         help
116           Amount of additional time to wait for ProxyDHCP response after
117                 receiving response from main DHCP server. Has no effect if
118                 SERVERIP_FROM_PROXYDHCP is false.
119
120 config KEEP_SERVERADDR
121         bool "Write the server's MAC address to 'serveraddr'"
122         default y if SANDBOX
123         help
124           Keeps the server's MAC address, in the env 'serveraddr'
125           for passing to bootargs (like Linux's netconsole option). If this is
126           enabled, when an ARP reply is received, the server's IP address is
127           written there.
128
129 config UDP_CHECKSUM
130         bool "Check the UDP checksum"
131         default y if SANDBOX
132         help
133           Enable this to verify the checksum on UDP packets. If the checksum
134           is wrong then the packet is discussed and an error is shown, like
135           "UDP wrong checksum 29374a23 30ff3826"
136
137 config BOOTP_SERVERIP
138         bool "Use the 'serverip' env var for tftp, not bootp"
139         help
140           Enable this if the TFTP server will be the 'serverip' environment
141           variable, not the BOOTP server. This affects the operation of both
142           bootp and tftp.
143
144 endif   # if NET