From 9250de4b2fc4582439cc265ac54824497c51d284 Mon Sep 17 00:00:00 2001 From: zhangzhangxin Date: Fri, 12 May 2023 17:18:11 +0800 Subject: [PATCH] sync:prov/efa: Fix incorrect argument for rxr_pkt_post_or_queue Signed-off-by: zhangzhangxin --- ...t-argument-for-rxr_pkt_post_or_queue.patch | 28 +++++++++++++++++++ libfabric.spec | 6 +++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 0001-sync-Fix-incorrect-argument-for-rxr_pkt_post_or_queue.patch diff --git a/0001-sync-Fix-incorrect-argument-for-rxr_pkt_post_or_queue.patch b/0001-sync-Fix-incorrect-argument-for-rxr_pkt_post_or_queue.patch new file mode 100644 index 0000000..e6f48bc --- /dev/null +++ b/0001-sync-Fix-incorrect-argument-for-rxr_pkt_post_or_queue.patch @@ -0,0 +1,28 @@ +From 96748aadc881b48a6c63f80a12ca9388067654ed Mon Sep 17 00:00:00 2001 +From: zhangzhangxin +Date: Fri, 12 May 2023 16:52:25 +0800 +Subject: [PATCH] sync:In rxr_pkt_post_req, the rxr_pkt_post_or_queue's inject + argument was passed as flags, which is incorrect. This patch make + rxr_pkt_post_or_queue called with the correct inject argument. + +Signed-off-by: zhangzhangxin +--- + prov/efa/src/rxr/rxr_pkt_cmd.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/prov/efa/src/rxr/rxr_pkt_cmd.c b/prov/efa/src/rxr/rxr_pkt_cmd.c +index af73e87..80db730 100644 +--- a/prov/efa/src/rxr/rxr_pkt_cmd.c ++++ b/prov/efa/src/rxr/rxr_pkt_cmd.c +@@ -454,7 +454,7 @@ ssize_t rxr_pkt_post_req(struct rxr_ep *ep, struct rxr_op_entry *tx_entry, int r + if (rxr_pkt_type_is_mulreq(req_type)) { + assert(!inject); + +- return rxr_pkt_post_or_queue(ep, tx_entry, req_type, flags); ++ return rxr_pkt_post_or_queue(ep, tx_entry, req_type, inject); + } + + return rxr_pkt_post(ep, tx_entry, req_type, inject, flags); +-- +2.40.0.windows.1 + diff --git a/libfabric.spec b/libfabric.spec index 25e2013..9332258 100644 --- a/libfabric.spec +++ b/libfabric.spec @@ -1,6 +1,6 @@ Name: libfabric Version: 1.16.1 -Release: 1 +Release: 2 Summary: A core component of OpenFabric Interfaces License: BSD or GPLv2 URL: http://ofiwg.github.io/libfabric/ @@ -11,6 +11,7 @@ BuildRequires: gcc libibverbs-devel libnl3-devel librdmacm-devel chrpath %ifarch x86_64 BuildRequires: infinipath-psm-devel libpsm2-devel %endif +Patch0: 0001-sync-Fix-incorrect-argument-for-rxr_pkt_post_or_queue.patch %description OpenFabrics Interfaces (OFI) is a framework focused on exporting fabric @@ -76,6 +77,9 @@ chrpath -d %{buildroot}%{_bindir}/fi_* %changelog +* Fri May 12 2023 zhangxin 1.16.1-2 +- prov/efa: Fix incorrect argument for rxr_pkt_post_or_queue + * Sat Nov 12 2022 hua 1.16.1-1 - update to 1.16.1 -- Gitee