From a13e4f153df678497fd3eeeb0b22417b623a0605 Mon Sep 17 00:00:00 2001 From: Yongqiang Guo Date: Fri, 12 Dec 2025 15:29:15 +0800 Subject: [PATCH] ubcore: fix route_list when no full match. urma inclusion category: bugfix bugzilla: https://gitee.com/openeuler/release-management/issues/ID3WJX ---------------------------------------------- This patch adds the headers of ubcore module. It's the core module of the UMDK network stack, implementing functionalities such as data plane connection establishment and management. The ubcore module provides the following core control functionalities: 1. Connection Establishment: Exchanges and negotiates connection parameters to establish links between endpoints. This handles the control-plane handshake required to initialize a data path. 2. Device Management: Handles device registration, and lifecycle management for all devices within the UDMK stack. 3. Reuse Connection: Implements resource sharing mechanisms that allow multiple logical connections to efficiently share a single physical link, improving resource utilization. In this patch, we only introduces the header files with placeholder data structures and type definitions. Fixes: c78127c4b6eb ("ubcore: fix query route list by eid pair.") Signed-off-by: Yongqiang Guo --- drivers/ub/urma/ubcore/ubcore_topo_info.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/ub/urma/ubcore/ubcore_topo_info.c b/drivers/ub/urma/ubcore/ubcore_topo_info.c index 20ad3e79ae45..3ba0bf8bf428 100644 --- a/drivers/ub/urma/ubcore/ubcore_topo_info.c +++ b/drivers/ub/urma/ubcore/ubcore_topo_info.c @@ -453,6 +453,10 @@ static int ubcore_get_route_primary_eid(union ubcore_eid *src_v_eid, if (src_match && dst_match) { num += 2; break; + } else { + (void)memset(&route_list->buf[num], 0, 2 * sizeof(struct ubcore_route)); + src_match = false; + dst_match = false; } } -- Gitee