[openib-general] [PATCH 2 of 2] static rate encoding change (user)

Jack Morgenstein jackm at mellanox.co.il
Thu Mar 2 08:58:49 PST 2006


For static rate encoding, use encoding rate field from PathRecord,
with addition of value 0, for backwards compatibility with
current usage.

Push translation of static rate to IPD value down to provider layer.

Thus, this translation is done in only one place.

Signed-off-by: Jack Morgenstein <jackm at mellanox.co.il>

Index: src/userspace/libibverbs/include/infiniband/verbs.h
===================================================================
--- src.orig/userspace/libibverbs/include/infiniband/verbs.h	2006-03-02 
12:29:15.431327000 +0200
+++ src/userspace/libibverbs/include/infiniband/verbs.h	2006-03-02 
13:01:38.245039000 +0200
@@ -293,6 +293,19 @@ struct ibv_global_route {
 	uint8_t			traffic_class;
 };
 
+enum ibv_max_static_rate {
+	IBV_MAX_STATIC_RATE_PORT_CURRENT_MAX = 0,
+	IBV_MAX_STATIC_RATE_2_5_GBPS = 2,
+	IBV_MAX_STATIC_RATE_5_GBPS   = 5,
+	IBV_MAX_STATIC_RATE_10_GBPS  = 3,
+	IBV_MAX_STATIC_RATE_20_GBPS  = 6,
+	IBV_MAX_STATIC_RATE_30_GBPS  = 4,
+	IBV_MAX_STATIC_RATE_40_GBPS  = 7,
+	IBV_MAX_STATIC_RATE_60_GBPS  = 8,
+	IBV_MAX_STATIC_RATE_80_GBPS  = 9,
+	IBV_MAX_STATIC_RATE_120_GBPS = 10
+};
+
 struct ibv_ah_attr {
 	struct ibv_global_route	grh;
 	uint16_t		dlid;



More information about the general mailing list