From c054a2aff0c9808944c1e1d02d5623ce4086c286 Mon Sep 17 00:00:00 2001 From: Sean Hefty Date: Fri, 28 Sep 2012 10:52:32 -0700 Subject: [PATCH] refresh --- meta | 7 +++---- patches/refresh-temp | 10 ---------- patches/verbs-ext | 34 ++++++++++------------------------ 3 files changed, 13 insertions(+), 38 deletions(-) delete mode 100644 patches/refresh-temp diff --git a/meta b/meta index b58c56a..f984f58 100644 --- a/meta +++ b/meta @@ -1,9 +1,8 @@ Version: 1 -Previous: 71543e58ce7d2a6556c6df8206be666fd22c04e8 -Head: 770733d84489dfe12ba99fd3e0c248df0d267bf6 +Previous: 052c7ac631ea136d54881e1f9940d2cbcb816e11 +Head: cfb0645e1679677e62e35602dd141386ff660f17 Applied: - verbs-ext: 8df4dc427dadd30e829dab908ab70c0e316b4250 - refresh-temp: 770733d84489dfe12ba99fd3e0c248df0d267bf6 + verbs-ext: cfb0645e1679677e62e35602dd141386ff660f17 Unapplied: xrcd: f2b48b365d126d1c4bc61b3b3ea1ab9b7f2544f4 srq_ex: 91fdc5b4aaf078280ff31bd0cf35760a6ae5dd10 diff --git a/patches/refresh-temp b/patches/refresh-temp deleted file mode 100644 index ffd1ac3..0000000 --- a/patches/refresh-temp +++ /dev/null @@ -1,10 +0,0 @@ -Bottom: ff25a98f5caa5889dfa52d7e2a6a9aa3e69b3ee5 -Top: ff25a98f5caa5889dfa52d7e2a6a9aa3e69b3ee5 -Author: Sean Hefty -Date: 2012-09-28 10:50:18 -0700 - -Refresh of verbs-ext - ---- - - diff --git a/patches/verbs-ext b/patches/verbs-ext index 1b53014..6f98d31 100644 --- a/patches/verbs-ext +++ b/patches/verbs-ext @@ -8,34 +8,20 @@ Infrastructure to support verbs extensions Infrastructure to support extended verbs capabilities in a forward/backward manner. +Support for extensions is determeind by the provider calling +verbs_register_driver in place of ibv_register_driver. When +extensions are enabled, ibverbs sets the current alloc_context / +free_context device operations to NULL. These are used to +indicate that the struct ibv_device may be cast to struct +verbs_device. - - - - - -The general operation as shown in the following pseudo-code: - -ibv_open_device() -{ - context = device->ops.alloc_context(); - if (context == -1) { - context_ex = malloc(verbs_context + verbs_device->context_size); - verbs_device->init_context(context_ex); - context_ex->context.abi_compat = -1; - } -} - -If the underlying provider supports extensions, it returns -1 from its -alloc_context() call. Ibverbs then allocates the ibv_context structure and -calls into the provider to finish initializing it. - -When extensions are supported, the ibv_device structure is embedded in a -larger verbs_device structure. Similarly, ibv_context is embedded inside -a larger verbs_context structure. +With extensions, ibverbs allocates the ibv_context structure +and calls into the provider to initialize it. The init call +is part of the verbs_device struct. Signed-off-by: Yishai Hadas Signed-off-by: Tzahi Oved +Signed-off-by: Sean Hefty --- -- 2.41.0