net: convert NET_MAXDEFRAG to Kconfig
PATCH 1/1 net: convert NET_MAXDEFRAG to Kconfig
Signed-off-by Rasmus Villemoes <[email protected]>
--- net/Kconfig | 10 ++++++++++ net/net.c | 3 --- scripts/config_whitelist.txt | 1 - 3 files changed, 10 insertions(+), 4 deletions(-)
net/Kconfig +10 -0
@@ -29,6 +29,16 @@ config IP_DEFRAG Selecting this will enable IP datagram reassembly according to the algorithm in RFC815. +config NET_MAXDEFRAG + int "Size of buffer used for IP datagram reassembly" + depends on IP_DEFRAG + default 16384 + range 1024 65536 + help + This defines the size of the statically allocated buffer + used for reassembly, and thus an upper bound for the size of + IP datagrams that can be received. + config TFTP_BLOCKSIZE int "TFTP block size" default 1468
net/net.c +0 -3
@@ -882,9 +882,6 @@ int net_send_ip_packet(uchar *ether, struct in_addr dest, int dport, int sport,* to the algorithm in RFC815. It returns NULL or the pointer to * a complete packet, in static storage */ -#ifndef CONFIG_NET_MAXDEFRAG -#define CONFIG_NET_MAXDEFRAG 16384 -#endif #define IP_PKTSIZE (CONFIG_NET_MAXDEFRAG)#define IP_MAXUDP (IP_PKTSIZE - IP_HDR_SIZE)
scripts/config_whitelist.txt +0 -1
@@ -1226,7 +1226,6 @@ CONFIG_NETSPACE_LITE_V2 CONFIG_NETSPACE_MAX_V2 CONFIG_NETSPACE_MINI_V2 CONFIG_NETSPACE_V2 -CONFIG_NET_MAXDEFRAG CONFIG_NET_MULTI CONFIG_NET_RETRY_COUNT CONFIG_NEVER_ASSERT_ODT_TO_CPU
Signature · 1 line
2.23.0
PATCH 1/1 net: convert NET_MAXDEFRAG to Kconfig
Quoted 7 lines · Rasmus Villemoes
Signed-off-by Rasmus Villemoes <[email protected]>--- net/Kconfig | 10 ++++++++++ net/net.c | 3 --- scripts/config_whitelist.txt | 1 - 3 files changed, 10 insertions(+), 4 deletions(-)
Reviewed-by Simon Glass <[email protected]>
PATCH 1/1 net: convert NET_MAXDEFRAG to Kconfig
In reply to Rasmus VillemoesQuoted 2 lines · Rasmus Villemoes
Signed-off-by Rasmus Villemoes <[email protected]>Reviewed-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200213/346932b8/attachment.sig>