From b3f70498337c85e89ce3353cd2c9dda5688e52c8 Mon Sep 17 00:00:00 2001 From: yangchen Date: Wed, 6 Mar 2024 11:05:08 +0800 Subject: [PATCH] support udp pkglen > mtu: modify IP_REASS_MAX_PBUFS --- ...pkglen-mtu-modify-IP_REASS_MAX_PBUFS.patch | 26 +++++++++++++++++++ lwip.spec | 6 ++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 0111-support-udp-pkglen-mtu-modify-IP_REASS_MAX_PBUFS.patch diff --git a/0111-support-udp-pkglen-mtu-modify-IP_REASS_MAX_PBUFS.patch b/0111-support-udp-pkglen-mtu-modify-IP_REASS_MAX_PBUFS.patch new file mode 100644 index 0000000..895ab7e --- /dev/null +++ b/0111-support-udp-pkglen-mtu-modify-IP_REASS_MAX_PBUFS.patch @@ -0,0 +1,26 @@ +From b619f034c74d53bd6d8b572cb47fdb58fd90d7ae Mon Sep 17 00:00:00 2001 +From: yangchen +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 + diff --git a/lwip.spec b/lwip.spec index 41f4621..d4566a6 100644 --- a/lwip.spec +++ b/lwip.spec @@ -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 - 2.2.0-4 +- support udp pkglen > mtu: modify IP_REASS_MAX_PBUFS + * Tue Mar 5 2024 peng.zou - 2.2.0-3 - add ppc64le support