1From a554661e9dd189f2d4b5dee8970fd009db89d9aa Mon Sep 17 00:00:00 2001 2From: wuchangsheng <wuchangsheng2@huawei.com> 3Date: Thu, 6 Oct 2022 17:33:16 +0800 4Subject: [PATCH] per thread reassdata variables 5 6--- 7 src/core/ipv4/ip4_frag.c | 5 +++++ 8 1 file changed, 5 insertions(+) 9 10diff --git a/src/core/ipv4/ip4_frag.c b/src/core/ipv4/ip4_frag.c 11index 17a4ccd..c60523d 100644 12--- a/src/core/ipv4/ip4_frag.c 13+++ b/src/core/ipv4/ip4_frag.c 14@@ -115,8 +115,13 @@ PACK_STRUCT_END 15 IPH_ID(iphdrA) == IPH_ID(iphdrB)) ? 1 : 0 16 17 /* global variables */ 18+#if USE_LIBOS 19+static PER_THREAD struct ip_reassdata *reassdatagrams; 20+static PER_THREAD u16_t ip_reass_pbufcount; 21+#else 22 static struct ip_reassdata *reassdatagrams; 23 static u16_t ip_reass_pbufcount; 24+#endif 25 26 /* function prototypes */ 27 static void ip_reass_dequeue_datagram(struct ip_reassdata *ipr, struct ip_reassdata *prev); 28-- 292.27.0 30 31