]> xenbits.xensource.com Git - unikraft/libs/lwip.git/commitdiff
Enable ARP queueing
authorMarco Schlumpp <marco@unikraft.io>
Fri, 2 Feb 2024 10:07:11 +0000 (11:07 +0100)
committerRazvan Deaconescu <razvan.deaconescu@upb.ro>
Tue, 6 Feb 2024 21:53:39 +0000 (23:53 +0200)
This enables sending multiple packets before receiving the ARP response.
glibc's DNS resolver sends multiple packets at once and the default behavior
of LWIP caused dropping of the IPv4 DNS request. Therefore, glibc never
received the DNS response and had to retransmit after a timeout.

Signed-off-by: Marco Schlumpp <marco@unikraft.io>
Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Reviewed-by: Mihnea Firoiu <mihneafiroiu0@gmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #46

include/lwipopts.h

index 54d802bbe3be6b28e91357c61bbe2d068163601c..61d557ecbecf9f6ca90dd427ac4526c7257d4d69 100644 (file)
@@ -107,6 +107,7 @@ void sys_free(void *ptr);
 /**
  * ARP options
  */
+#define ARP_QUEUEING 1
 #define MEMP_NUM_ARP_QUEUE 256
 #define ETHARP_SUPPORT_STATIC_ENTRIES 1