Roland Dreier wrote:
I don't know if we want a new API or just a new field in struct
ib_device.  We already have the ZERO_STAG capability flag to show when
this makes sense (and we could rename it to be more transport neutral),
and we could just add a local_lkey field, since the value is fixed at
device initialization time.

 - R.


like this?

diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h
index 74c24b9..2155a33 100644
--- a/include/rdma/ib_verbs.h
+++ b/include/rdma/ib_verbs.h
@@ -91,7 +91,7 @@ enum ib_device_cap_flags {
        IB_DEVICE_RC_RNR_NAK_GEN        = (1<<12),
        IB_DEVICE_SRQ_RESIZE            = (1<<13),
        IB_DEVICE_N_NOTIFY_CQ           = (1<<14),
-       IB_DEVICE_ZERO_STAG             = (1<<15),
+       IB_DEVICE_LOCAL_DMA_LKEY        = (1<<15),
        IB_DEVICE_RESERVED              = (1<<16), /* old SEND_W_INV */
        IB_DEVICE_MEM_WINDOW            = (1<<17),
        /*
@@ -1096,6 +1096,7 @@ struct ib_device {
        __be64                       node_guid;
        u8                           node_type;
        u8                           phys_port_cnt;
+       u32                          local_dma_lkey;
 };
struct ib_client {

_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to