!683 [sync] PR-668: event_callback: del errevent log if err is ERR_OK
From: @openeuler-sync-bot Reviewed-by: @jiangheng12 Signed-off-by: @jiangheng12
This commit is contained in:
commit
1620d03cb6
27
0095-event_callback-del-errevent-log-if-err-is-ERR_OK.patch
Normal file
27
0095-event_callback-del-errevent-log-if-err-is-ERR_OK.patch
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
From db1929c5698a672200bf96d7ece992f10a98a80c Mon Sep 17 00:00:00 2001
|
||||||
|
From: yangchen <yangchen145@huawei.com>
|
||||||
|
Date: Wed, 20 Dec 2023 17:37:42 +0800
|
||||||
|
Subject: [PATCH] event_callback: del errevent log if err is ERR_OK
|
||||||
|
|
||||||
|
---
|
||||||
|
src/api/sockets.c | 4 +++-
|
||||||
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/api/sockets.c b/src/api/sockets.c
|
||||||
|
index 0b3e4ea..f5b8ea6 100644
|
||||||
|
--- a/src/api/sockets.c
|
||||||
|
+++ b/src/api/sockets.c
|
||||||
|
@@ -2805,7 +2805,9 @@ event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len)
|
||||||
|
#endif
|
||||||
|
break;
|
||||||
|
case NETCONN_EVT_ERROR:
|
||||||
|
- LWIP_DEBUGF(GAZELLE_DEBUG_SERIOUS, ("event_callback: have errevent, err=%d, fd=%d\n", conn->pending_err, conn->socket));
|
||||||
|
+ if (conn->pending_err != ERR_OK) {
|
||||||
|
+ LWIP_DEBUGF(GAZELLE_DEBUG_SERIOUS, ("event_callback: have errevent, err=%d, fd=%d\n", conn->pending_err, conn->socket));
|
||||||
|
+ }
|
||||||
|
sock->errevent = 1;
|
||||||
|
#if GAZELLE_ENABLE
|
||||||
|
if (netif_is_rtc_mode(netif_default)) {
|
||||||
|
--
|
||||||
|
2.33.0
|
||||||
|
|
||||||
@ -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.1.3
|
Version: 2.1.3
|
||||||
Release: 97
|
Release: 98
|
||||||
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
|
||||||
@ -108,6 +108,7 @@ Patch9090: 0091-add-fd-log-info-and-fix-wrong-port-log-info.patch
|
|||||||
Patch9091: 0092-fix-the-coredump-issue-when-UDP-traffic-is-sent.patch
|
Patch9091: 0092-fix-the-coredump-issue-when-UDP-traffic-is-sent.patch
|
||||||
Patch9092: 0093-modfiy-accept-null-pointer-when-new-conn-receive-RST-packet-in-listening.patch
|
Patch9092: 0093-modfiy-accept-null-pointer-when-new-conn-receive-RST-packet-in-listening.patch
|
||||||
Patch9093: 0094-lwip-log-fix-reversed-port-in-tcp_input.patch
|
Patch9093: 0094-lwip-log-fix-reversed-port-in-tcp_input.patch
|
||||||
|
Patch9094: 0095-event_callback-del-errevent-log-if-err-is-ERR_OK.patch
|
||||||
|
|
||||||
BuildRequires: gcc-c++ dos2unix dpdk-devel
|
BuildRequires: gcc-c++ dos2unix dpdk-devel
|
||||||
|
|
||||||
@ -138,6 +139,9 @@ cd %{_builddir}/%{name}-%{version}/src
|
|||||||
%{_libdir}/liblwip.a
|
%{_libdir}/liblwip.a
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Dec 20 2023 yangchen <yangchen145@huawei.com> - 2.1.3-98
|
||||||
|
- event_callback: del errevent log if err is ERR_OK
|
||||||
|
|
||||||
* Fri Dec 15 2023 yangchen <yangchen145@huawei.com> - 2.1.3-97
|
* Fri Dec 15 2023 yangchen <yangchen145@huawei.com> - 2.1.3-97
|
||||||
- lwip log: fix reversed port in tcp_input
|
- lwip log: fix reversed port in tcp_input
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user