!116 enable ARP QUEUE to avoid packet dropped

From: @jiangheng12 
Reviewed-by: @wu-changsheng 
Signed-off-by: @wu-changsheng
This commit is contained in:
openeuler-ci-bot 2022-11-23 02:17:36 +00:00 committed by Gitee
commit d695affc83
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 32 additions and 1 deletions

View File

@ -0,0 +1,27 @@
From 2acba8aecef2140045a8ae50b05f9f36f5dc865f Mon Sep 17 00:00:00 2001
From: jiangheng <jiangheng14@huawei.com>
Date: Wed, 23 Nov 2022 09:37:34 +0800
Subject: [PATCH] enable ARP QUEUE to avoid sync packet dropped
---
src/include/lwipopts.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/include/lwipopts.h b/src/include/lwipopts.h
index 7459991..a5add21 100644
--- a/src/include/lwipopts.h
+++ b/src/include/lwipopts.h
@@ -169,6 +169,10 @@
#define ARP_TABLE_SIZE 512
+#define ARP_QUEUEING 1
+
+#define ARP_QUEUE_LEN 32
+
/* ---------------------------------------
* ------- NIC offloads --------
* ---------------------------------------
--
2.23.0

View File

@ -4,7 +4,7 @@
Summary: lwip is a small independent implementation of the TCP/IP protocol suite
Name: lwip
Version: 2.1.3
Release: 24
Release: 25
License: BSD
URL: http://savannah.nongnu.org/projects/lwip/
Source0: http://download.savannah.nongnu.org/releases/lwip/%{name}-%{version}.tar.gz
@ -48,6 +48,7 @@ Patch9032: 0033-alloc-socket-fail-clean-sock.patch
Patch9033: 0034-add-accept4-and-epoll_create1.patch
Patch9034: 0035-add-writev-and-readv.patch
Patch9035: 0036-add-fs-secure-compilation-option.patch
Patch9036: 0037-enable-ARP-QUEUE-to-avoid-sync-packet-dropped.patch
BuildRequires: gcc-c++ dos2unix dpdk-devel
@ -76,6 +77,9 @@ cd %{_builddir}/%{name}-%{version}/src
%{_libdir}/liblwip.a
%changelog
* Wed Nov 23 2022 jiangheng<jiangheng14@huawei.com> - 2.1.3-25
- enable ARP QUEUE to avoid packet dropped
* Sat Oct 22 2022 jiangheng<jiangheng14@huawei.com> - 2.1.3-24
- add fs secure compilation option