!948 [sync] PR-944: opts: modify MEMP_NUM_UDP_PCB

From: @openeuler-sync-bot 
Reviewed-by: @jiangheng12 
Signed-off-by: @jiangheng12
This commit is contained in:
openeuler-ci-bot 2024-04-21 07:31:55 +00:00 committed by Gitee
commit 7343d6ec7f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 27 additions and 1 deletions

View File

@ -0,0 +1,22 @@
From 226fbb87dcf266d165962f1d87f9c4c5d4ea8e2d Mon Sep 17 00:00:00 2001
From: yinbin6 <yinbin8@huawei.com>
Date: Thu, 11 Apr 2024 15:07:47 +0800
Subject: [PATCH] opts: modify MEMP_NUM_UDP_PCB
diff --git a/src/include/lwipopts.h b/src/include/lwipopts.h
index 62573f5..4655388 100644
--- a/src/include/lwipopts.h
+++ b/src/include/lwipopts.h
@@ -192,7 +192,7 @@
#define UDP_HLEN 8
-#define MEMP_NUM_UDP_PCB 16
+#define MEMP_NUM_UDP_PCB (GAZELLE_MAX_CLIENTS + GAZELLE_RESERVED_CLIENTS)
#define MEMP_NUM_IGMP_GROUP 16
#define DEFAULT_UDP_RECVMBOX_SIZE 4096
--
2.33.0

View File

@ -4,7 +4,7 @@
Summary: lwip is a small independent implementation of the TCP/IP protocol suite
Name: lwip
Version: 2.2.0
Release: 15
Release: 16
License: BSD
URL: http://savannah.nongnu.org/projects/lwip/
Source0: http://download.savannah.nongnu.org/releases/lwip/%{name}-%{version}.zip
@ -134,6 +134,7 @@ Patch9118: 0119-support-igmpv3.patch
Patch9119: 0120-enable-SO_REUSE_RXTOALL.patch
Patch9120: 0121-add-vlan-filter.patch
Patch9121: 0122-support-mldv2.patch
Patch9122: 0123-opts-modify-MEMP_NUM_UDP_PCB.patch
BuildRequires: gcc-c++ dos2unix dpdk-devel
@ -163,6 +164,9 @@ cd %{_builddir}/%{name}-%{version}/src
%{_libdir}/liblwip.a
%changelog
* Thu Apr 11 2024 yinbin <yinbin8@huawei.com> - 2.2.0-16
- opts: modify MEMP_NUM_UDP_PCB
* Tue Apr 09 2024 wanfeng <wanfeng@kylinos.cn> - 2.2.0-15
- add ipv6 mldv2 multicast protocol