2014-06-27 04:23:21 +08:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2015-06-28 22:08:57 +08:00
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
2014-06-27 04:23:21 +08:00
|
|
|
#
|
2014-06-28 07:51:32 +08:00
|
|
|
|
|
|
|
config NET_ARCH_INCR32
|
|
|
|
bool "Architecture-specific net_incr32()"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Define if you architecture provided an optimized version of
|
|
|
|
net_incr32() with prototype:
|
|
|
|
|
|
|
|
void net_incr32(FAR uint8_t *op32, uint16_t op16)
|
|
|
|
|
|
|
|
config NET_ARCH_CHKSUM
|
|
|
|
bool "Architecture-specific net_chksum()"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Define if you architecture provided an optimized version of
|
|
|
|
functions with the following prototypes:
|
|
|
|
|
2020-01-30 15:45:15 +08:00
|
|
|
uint16_t chksum(uint16_t sum, FAR const uint8_t *data, uint16_t len)
|
2014-06-28 07:51:32 +08:00
|
|
|
uint16_t net_chksum(FAR uint16_t *data, uint16_t len)
|
2022-11-29 11:23:43 +08:00
|
|
|
uint16_t ipv4_chksum(FAR struct ipv4_hdr_s *ipv4)
|
2020-01-30 15:45:15 +08:00
|
|
|
uint16_t ipv4_upperlayer_chksum(FAR struct net_driver_s *dev, uint8_t proto)
|
|
|
|
uint16_t ipv6_upperlayer_chksum(FAR struct net_driver_s *dev, uint8_t proto, unsigned int iplen)
|
2022-09-04 18:26:59 +08:00
|
|
|
|
|
|
|
config NET_SNOOP_BUFSIZE
|
|
|
|
int "Snoop buffer size for interrupt"
|
|
|
|
default 4096
|
2023-07-04 14:24:16 +08:00
|
|
|
|
|
|
|
config NET_RECV_PACK
|
|
|
|
bool "Enable TCP/IP receive data in a continuous poll"
|
|
|
|
default y
|
|
|
|
---help---
|
|
|
|
This option will enable TCP/IP receive data into a continuous iob chain.
|
|
|
|
Fragmentation of network data will intensify iob consumption, if
|
|
|
|
the device receives a message storm of fragmented packets, the iob
|
|
|
|
cache will not be effectively used, this is not allowed on iot devices
|
|
|
|
since the resources of such devices are limited. Of course, this
|
|
|
|
also takes some disadvantages: data needs to be copied.
|
|
|
|
This option will brings some balance on resource-constrained devices,
|
|
|
|
enable this config to reduce the consumption of iob, the received iob
|
|
|
|
buffers will be merged into the contiguous iob chain.
|