Whamcloud - gitweb
LU-13502 lnet: Add MD options for response tracking 50/38450/3
authorChris Horn <hornc@cray.com>
Fri, 1 May 2020 20:49:35 +0000 (15:49 -0500)
committerOleg Drokin <green@whamcloud.com>
Thu, 14 May 2020 05:39:38 +0000 (05:39 +0000)
These MD options will allow response tracking on a particular MD to
override the behavior specified by the lnet_response_tracking
parameter.

Test-Parameters: trivial
Signed-off-by: Chris Horn <hornc@cray.com>
Change-Id: I2dee4e863138c1fe2ab1a1243c4c9e75e876f58f
Reviewed-on: https://review.whamcloud.com/38450
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: Amir Shehata <ashehata@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/include/uapi/linux/lnet/lnet-types.h

index 3280e1f..d9cb63a 100644 (file)
@@ -479,6 +479,10 @@ struct lnet_md {
         *   struct bio_vec.
         * - LNET_MD_MAX_SIZE: The max_size field is valid.
         * - LNET_MD_BULK_HANDLE: The bulk_handle field is valid.
+        * - LNET_MD_TRACK_RESPONSE: Enable response tracking on this MD
+        *   regardless of the value of the lnet_response_tracking param.
+        * - LNET_MD_NO_TRACK_RESPONSE: Disable response tracking on this MD
+        *   regardless of the value of the lnet_response_tracking param.
         *
         * Note:
         * - LNET_MD_KIOV allows for a scatter/gather capability for memory
@@ -539,6 +543,10 @@ struct lnet_md {
 #define LNET_MD_KIOV                (1 << 8)
 /** See struct lnet_md::options. */
 #define LNET_MD_BULK_HANDLE         (1 << 9)
+/** See struct lnet_md::options. */
+#define LNET_MD_TRACK_RESPONSE      (1 << 10)
+/** See struct lnet_md::options. */
+#define LNET_MD_NO_TRACK_RESPONSE    (1 << 11)
 
 /* For compatibility with Cray Portals */
 #define LNET_MD_PHYS                        0