Lines Matching +full:rpc +full:- +full:if
14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
34 #if HAVE_CONFIG_H
47 #define DEBUG if (ibdebug) IBWARN
54 ib_rpc_cc_t rpc = { 0 }; in cc_query_status_via() local
58 rpc.method = IB_MAD_METHOD_GET; in cc_query_status_via()
59 rpc.attr.id = attrid; in cc_query_status_via()
60 rpc.attr.mod = mod; in cc_query_status_via()
61 rpc.timeout = timeout; in cc_query_status_via()
62 if (attrid == IB_CC_ATTR_CONGESTION_LOG) { in cc_query_status_via()
63 rpc.datasz = IB_CC_LOG_DATA_SZ; in cc_query_status_via()
64 rpc.dataoffs = IB_CC_LOG_DATA_OFFS; in cc_query_status_via()
67 rpc.datasz = IB_CC_DATA_SZ; in cc_query_status_via()
68 rpc.dataoffs = IB_CC_DATA_OFFS; in cc_query_status_via()
70 rpc.mgtclass = IB_CC_CLASS; in cc_query_status_via()
71 rpc.cckey = cckey; in cc_query_status_via()
73 portid->qp = 1; in cc_query_status_via()
74 if (!portid->qkey) in cc_query_status_via()
75 portid->qkey = IB_DEFAULT_QP1_QKEY; in cc_query_status_via()
77 res = mad_rpc(srcport, (ib_rpc_t *)&rpc, portid, rcvbuf, rcvbuf); in cc_query_status_via()
78 if (rstatus) in cc_query_status_via()
79 *rstatus = rpc.rstatus; in cc_query_status_via()
89 ib_rpc_cc_t rpc = { 0 }; in cc_config_status_via() local
93 rpc.method = IB_MAD_METHOD_SET; in cc_config_status_via()
94 rpc.attr.id = attrid; in cc_config_status_via()
95 rpc.attr.mod = mod; in cc_config_status_via()
96 rpc.timeout = timeout; in cc_config_status_via()
97 if (attrid == IB_CC_ATTR_CONGESTION_LOG) { in cc_config_status_via()
98 rpc.datasz = IB_CC_LOG_DATA_SZ; in cc_config_status_via()
99 rpc.dataoffs = IB_CC_LOG_DATA_OFFS; in cc_config_status_via()
102 rpc.datasz = IB_CC_DATA_SZ; in cc_config_status_via()
103 rpc.dataoffs = IB_CC_DATA_OFFS; in cc_config_status_via()
105 rpc.mgtclass = IB_CC_CLASS; in cc_config_status_via()
106 rpc.cckey = cckey; in cc_config_status_via()
108 portid->qp = 1; in cc_config_status_via()
109 if (!portid->qkey) in cc_config_status_via()
110 portid->qkey = IB_DEFAULT_QP1_QKEY; in cc_config_status_via()
112 res = mad_rpc(srcport, (ib_rpc_t *)&rpc, portid, payload, rcvbuf); in cc_config_status_via()
113 if (rstatus) in cc_config_status_via()
114 *rstatus = rpc.rstatus; in cc_config_status_via()