File 0005-staging-hfi1-Enable-TID-caching-feature.patch of Package linux-glibc-devel

From 0b091fb32c5ae4737bf606a313e6625dad34bbc6 Mon Sep 17 00:00:00 2001
From: Mitko Haralanov <>
Date: Fri, 5 Feb 2016 11:57:58 -0500
Subject: [PATCH 05/18] staging/hfi1: Enable TID caching feature
Git-commit: 0b091fb32c5ae4737bf606a313e6625dad34bbc6
Patch-mainline: v4.6-rc1
References: bsc#973818, fate#319242, bsc#981074

This commit "flips the switch" on the TID caching feature
implemented in this patch series.

As well as enabling the new feature by tying the new function
with the PSM API, it also cleans up the old unneeded code,
data structure members, and variables.

Due to difference in operation and information, the tracing
functions related to expected receives had to be changed. This
patch include these changes.

The tracing function changes could not be split into a separate
commit without including both tracing variants at the same time.
This would have caused other complications and ugliness.

Signed-off-by: Mitko Haralanov <>
Reviewed-by: Ira Weiny <>
Signed-off-by: Doug Ledford <>
Acked-by: Jiri Bohac <>
Acked-by: Michal Marek <>

 usr/include/rdma/hfi/hfi1_user.h | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/usr/include/rdma/hfi/hfi1_user.h b/usr/include/rdma/hfi/hfi1_user.h
index 92be2e373019..a533cecab14f 100644
--- a/usr/include/rdma/hfi/hfi1_user.h
+++ b/usr/include/rdma/hfi/hfi1_user.h
@@ -66,7 +66,7 @@
  * The major version changes when data structures change in an incompatible
  * way. The driver must be the same for initialization to succeed.
-#define HFI1_USER_SWMAJOR 4
+#define HFI1_USER_SWMAJOR 5
  * Minor version differences are always compatible
@@ -241,11 +241,6 @@ struct hfi1_tid_info {
 	__u32 tidcnt;
 	/* length of transfer buffer programmed by this request */
 	__u32 length;
-	/*
-	 * pointer to bitmap of TIDs used for this call;
-	 * checked for being large enough at open
-	 */
-	__u64 tidmap;
 struct hfi1_cmd {