support udp pkglen > mtu: modify IP_REASS_MAX_PBUFS

This commit is contained in:
yangchen 2024-03-06 11:05:08 +08:00
parent 4925d41bdb
commit b3f7049833
2 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,26 @@
From b619f034c74d53bd6d8b572cb47fdb58fd90d7ae Mon Sep 17 00:00:00 2001
From: yangchen <yangchen145@huawei.com>
Date: Wed, 6 Mar 2024 11:00:56 +0800
Subject: [PATCH] support udp pkglen > mtu: modify IP_REASS_MAX_PBUFS
---
src/include/lwipopts.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/include/lwipopts.h b/src/include/lwipopts.h
index 28b8aca..d067dea 100644
--- a/src/include/lwipopts.h
+++ b/src/include/lwipopts.h
@@ -171,6 +171,9 @@
#define IP_HLEN 20
+/* the max pbuf num of a udp pbuf chain is ((65535 + MBUF_MAX_DATA_LEN - 1) / MBUF_MAX_DATA_LEN) */
+#define IP_REASS_MAX_PBUFS 46
+
/*
-------------------------------------
----------- IPv6 options -----------
--
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: 3
Release: 4
License: BSD
URL: http://savannah.nongnu.org/projects/lwip/
Source0: http://download.savannah.nongnu.org/releases/lwip/%{name}-%{version}.zip
@ -122,6 +122,7 @@ Patch9106: 0107-fix-move-lpcb-to-the-front-of-list-error.patch
Patch9107: 0108-fix-receive-fin-packet-process-error.patch
Patch9108: 0109-support-udp-recv-zero-packets.patch
Patch9109: 0110-adapt-lwip-2.2.0.patch
Patch9110: 0111-support-udp-pkglen-mtu-modify-IP_REASS_MAX_PBUFS.patch
BuildRequires: gcc-c++ dos2unix dpdk-devel
@ -151,6 +152,9 @@ cd %{_builddir}/%{name}-%{version}/src
%{_libdir}/liblwip.a
%changelog
* Tue Mar 5 2024 yangchen <yangchen145@huawei.com> - 2.2.0-4
- support udp pkglen > mtu: modify IP_REASS_MAX_PBUFS
* Tue Mar 5 2024 peng.zou <peng.zou@shingroup.cn> - 2.2.0-3
- add ppc64le support