LOOPBACK: fix loop coredump
(cherry picked from commit 3c9825cc509393533200148bbbde1f91ad4052cd)
This commit is contained in:
parent
d561bd20c0
commit
6ca04f954b
40
0159-LOOPBACK-fix-loop-coredump.patch
Normal file
40
0159-LOOPBACK-fix-loop-coredump.patch
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
From a95eada1728b09edd9f2d06bb13cab9e7b0eac8e Mon Sep 17 00:00:00 2001
|
||||||
|
From: yinbin <yinbin8@huawei.com>
|
||||||
|
Date: Tue, 23 Jul 2024 16:27:58 +0800
|
||||||
|
Subject: [PATCH] LOOPBACK: fix loop coredump
|
||||||
|
|
||||||
|
---
|
||||||
|
src/core/netif.c | 2 +-
|
||||||
|
src/include/lwipopts.h | 3 +++
|
||||||
|
2 files changed, 4 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/core/netif.c b/src/core/netif.c
|
||||||
|
index e6cdebe..eba9a0b 100644
|
||||||
|
--- a/src/core/netif.c
|
||||||
|
+++ b/src/core/netif.c
|
||||||
|
@@ -198,7 +198,7 @@ netif_init(void)
|
||||||
|
#define LOOPIF_ADDRINIT
|
||||||
|
#endif /* LWIP_IPV4 */
|
||||||
|
|
||||||
|
-#if NO_SYS
|
||||||
|
+#if NO_SYS || GAZELLE_ENABLE
|
||||||
|
netif_add(&loop_netif, LOOPIF_ADDRINIT NULL, netif_loopif_init, ip_input);
|
||||||
|
#else /* NO_SYS */
|
||||||
|
netif_add(&loop_netif, LOOPIF_ADDRINIT NULL, netif_loopif_init, tcpip_input);
|
||||||
|
diff --git a/src/include/lwipopts.h b/src/include/lwipopts.h
|
||||||
|
index e001657..4483ebe 100644
|
||||||
|
--- a/src/include/lwipopts.h
|
||||||
|
+++ b/src/include/lwipopts.h
|
||||||
|
@@ -288,6 +288,9 @@
|
||||||
|
#define LWIP_VLAN_PCP 1
|
||||||
|
#define VLAN_LEN 4
|
||||||
|
|
||||||
|
+#define LWIP_NETIF_LOOPBACK_MULTITHREADING 0
|
||||||
|
+
|
||||||
|
+
|
||||||
|
/*
|
||||||
|
------------------------------------
|
||||||
|
---------- multicast options ----------
|
||||||
|
--
|
||||||
|
2.34.1
|
||||||
|
|
||||||
@ -4,7 +4,7 @@
|
|||||||
Summary: lwip is a small independent implementation of the TCP/IP protocol suite
|
Summary: lwip is a small independent implementation of the TCP/IP protocol suite
|
||||||
Name: lwip
|
Name: lwip
|
||||||
Version: 2.2.0
|
Version: 2.2.0
|
||||||
Release: 49
|
Release: 50
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://savannah.nongnu.org/projects/lwip/
|
URL: http://savannah.nongnu.org/projects/lwip/
|
||||||
Source0: http://download.savannah.nongnu.org/releases/lwip/%{name}-%{version}.zip
|
Source0: http://download.savannah.nongnu.org/releases/lwip/%{name}-%{version}.zip
|
||||||
@ -170,6 +170,7 @@ Patch9154: 0155-cleancode-refactor-sys_now-and-lwip_ioctl.patch
|
|||||||
Patch9155: 0156-cleancode-refactor-memp.patch
|
Patch9155: 0156-cleancode-refactor-memp.patch
|
||||||
Patch9156: 0157-cleancode-refactor-offload.patch
|
Patch9156: 0157-cleancode-refactor-offload.patch
|
||||||
Patch9157: 0158-enable-sys_arch-failed-log.patch
|
Patch9157: 0158-enable-sys_arch-failed-log.patch
|
||||||
|
Patch9158: 0159-LOOPBACK-fix-loop-coredump.patch
|
||||||
|
|
||||||
BuildRequires: gcc-c++ dos2unix dpdk-devel
|
BuildRequires: gcc-c++ dos2unix dpdk-devel
|
||||||
|
|
||||||
@ -199,6 +200,9 @@ cd %{_builddir}/%{name}-%{version}/src
|
|||||||
%{_libdir}/liblwip.a
|
%{_libdir}/liblwip.a
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jul 24 2024 yinbin <yinbin8@huawei.com> - 2.2.0-50
|
||||||
|
- LOOPBACK: fix loop coredump
|
||||||
|
|
||||||
* Tue Jul 23 2024 LemmyHuang <huangliming5@huawei.com> - 2.2.0-49
|
* Tue Jul 23 2024 LemmyHuang <huangliming5@huawei.com> - 2.2.0-49
|
||||||
- cleancode: refactor offload
|
- cleancode: refactor offload
|
||||||
- enable sys_arch failed log
|
- enable sys_arch failed log
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user