From 35fd0d283db78f03f9550c18e068ccbd4613c264 Mon Sep 17 00:00:00 2001 From: zhangzhangxin Date: Fri, 12 May 2023 17:45:25 +0800 Subject: [PATCH] sync:prov/efa: Fix a bug in rxr_pkt_req_max_header_size Signed-off-by: zhangzhangxin --- ...a-bug-in-rxr_pkt_req_max_header_size.patch | 26 +++++++++++++++++++ libfabric.spec | 6 ++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 0002-sync-Fix-a-bug-in-rxr_pkt_req_max_header_size.patch diff --git a/0002-sync-Fix-a-bug-in-rxr_pkt_req_max_header_size.patch b/0002-sync-Fix-a-bug-in-rxr_pkt_req_max_header_size.patch new file mode 100644 index 0000000..9cebfa1 --- /dev/null +++ b/0002-sync-Fix-a-bug-in-rxr_pkt_req_max_header_size.patch @@ -0,0 +1,26 @@ +From b02cb92911835c5e453d177a4c9402673755f8f2 Mon Sep 17 00:00:00 2001 +From: zhangzhangxin +Date: Fri, 12 May 2023 17:38:32 +0800 +Subject: [PATCH] sync:prov/efa: Fix a bug in rxr_pkt_req_max_header_size + +Signed-off-by: zhangzhangxin +--- + prov/efa/src/rxr/rxr_pkt_type_req.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/prov/efa/src/rxr/rxr_pkt_type_req.c b/prov/efa/src/rxr/rxr_pkt_type_req.c +index d67fd57..7867d0c 100644 +--- a/prov/efa/src/rxr/rxr_pkt_type_req.c ++++ b/prov/efa/src/rxr/rxr_pkt_type_req.c +@@ -400,7 +400,7 @@ inline size_t rxr_pkt_req_max_header_size(int pkt_type) + * exist at the same time, and the raw address header is longer than connid header, + * we did not include the flag for CONNID header + */ +- uint16_t header_flags = RXR_REQ_OPT_RAW_ADDR_HDR_SIZE | RXR_REQ_OPT_CQ_DATA_HDR; ++ uint16_t header_flags = RXR_REQ_OPT_RAW_ADDR_HDR | RXR_REQ_OPT_CQ_DATA_HDR; + + return rxr_pkt_req_header_size(pkt_type, header_flags, RXR_IOV_LIMIT); + } +-- +2.40.0.windows.1 + diff --git a/libfabric.spec b/libfabric.spec index 9332258..ebc71e0 100644 --- a/libfabric.spec +++ b/libfabric.spec @@ -1,6 +1,6 @@ Name: libfabric Version: 1.16.1 -Release: 2 +Release: 3 Summary: A core component of OpenFabric Interfaces License: BSD or GPLv2 URL: http://ofiwg.github.io/libfabric/ @@ -12,6 +12,7 @@ BuildRequires: gcc libibverbs-devel libnl3-devel librdmacm-devel chrpath BuildRequires: infinipath-psm-devel libpsm2-devel %endif Patch0: 0001-sync-Fix-incorrect-argument-for-rxr_pkt_post_or_queue.patch +Patch1: 0002-sync-Fix-a-bug-in-rxr_pkt_req_max_header_size.patch %description OpenFabrics Interfaces (OFI) is a framework focused on exporting fabric @@ -77,6 +78,9 @@ chrpath -d %{buildroot}%{_bindir}/fi_* %changelog +* Fri May 12 2023 zhangxin 1.16.1-3 +- prov/efa: Fix a bug in rxr_pkt_req_max_header_size + * Fri May 12 2023 zhangxin 1.16.1-2 - prov/efa: Fix incorrect argument for rxr_pkt_post_or_queue -- Gitee