Lines Matching full:smp

126  * Fixup a directed route SMP for sending
127 * Return IB_SMI_DISCARD if the SMP should be discarded
129 enum smi_action smi_handle_dr_smp_send(struct ib_smp *smp, in smi_handle_dr_smp_send() argument
133 &smp->hop_ptr, smp->hop_cnt, in smi_handle_dr_smp_send()
134 smp->initial_path, in smi_handle_dr_smp_send()
135 smp->return_path, in smi_handle_dr_smp_send()
136 ib_get_smp_direction(smp), in smi_handle_dr_smp_send()
137 smp->dr_dlid == IB_LID_PERMISSIVE, in smi_handle_dr_smp_send()
138 smp->dr_slid == IB_LID_PERMISSIVE); in smi_handle_dr_smp_send()
141 enum smi_action opa_smi_handle_dr_smp_send(struct opa_smp *smp, in opa_smi_handle_dr_smp_send() argument
145 &smp->hop_ptr, smp->hop_cnt, in opa_smi_handle_dr_smp_send()
146 smp->route.dr.initial_path, in opa_smi_handle_dr_smp_send()
147 smp->route.dr.return_path, in opa_smi_handle_dr_smp_send()
148 opa_get_smp_direction(smp), in opa_smi_handle_dr_smp_send()
149 smp->route.dr.dr_dlid == in opa_smi_handle_dr_smp_send()
151 smp->route.dr.dr_slid == in opa_smi_handle_dr_smp_send()
222 /* giving SMP to SM - update hop_ptr */ in __smi_handle_dr_smp_recv()
237 * Adjust information for a received SMP
238 * Return IB_SMI_DISCARD if the SMP should be dropped
240 enum smi_action smi_handle_dr_smp_recv(struct ib_smp *smp, bool is_switch, in smi_handle_dr_smp_recv() argument
244 &smp->hop_ptr, smp->hop_cnt, in smi_handle_dr_smp_recv()
245 smp->initial_path, in smi_handle_dr_smp_recv()
246 smp->return_path, in smi_handle_dr_smp_recv()
247 ib_get_smp_direction(smp), in smi_handle_dr_smp_recv()
248 smp->dr_dlid == IB_LID_PERMISSIVE, in smi_handle_dr_smp_recv()
249 smp->dr_slid == IB_LID_PERMISSIVE); in smi_handle_dr_smp_recv()
253 * Adjust information for a received SMP
254 * Return IB_SMI_DISCARD if the SMP should be dropped
256 enum smi_action opa_smi_handle_dr_smp_recv(struct opa_smp *smp, bool is_switch, in opa_smi_handle_dr_smp_recv() argument
260 &smp->hop_ptr, smp->hop_cnt, in opa_smi_handle_dr_smp_recv()
261 smp->route.dr.initial_path, in opa_smi_handle_dr_smp_recv()
262 smp->route.dr.return_path, in opa_smi_handle_dr_smp_recv()
263 opa_get_smp_direction(smp), in opa_smi_handle_dr_smp_recv()
264 smp->route.dr.dr_dlid == in opa_smi_handle_dr_smp_recv()
266 smp->route.dr.dr_slid == in opa_smi_handle_dr_smp_recv()
302 enum smi_forward_action smi_check_forward_dr_smp(struct ib_smp *smp) in smi_check_forward_dr_smp() argument
304 return __smi_check_forward_dr_smp(smp->hop_ptr, smp->hop_cnt, in smi_check_forward_dr_smp()
305 ib_get_smp_direction(smp), in smi_check_forward_dr_smp()
306 smp->dr_dlid == IB_LID_PERMISSIVE, in smi_check_forward_dr_smp()
307 smp->dr_slid == IB_LID_PERMISSIVE); in smi_check_forward_dr_smp()
310 enum smi_forward_action opa_smi_check_forward_dr_smp(struct opa_smp *smp) in opa_smi_check_forward_dr_smp() argument
312 return __smi_check_forward_dr_smp(smp->hop_ptr, smp->hop_cnt, in opa_smi_check_forward_dr_smp()
313 opa_get_smp_direction(smp), in opa_smi_check_forward_dr_smp()
314 smp->route.dr.dr_dlid == in opa_smi_check_forward_dr_smp()
316 smp->route.dr.dr_slid == in opa_smi_check_forward_dr_smp()
321 * Return the forwarding port number from initial_path for outgoing SMP and
322 * from return_path for returning SMP
324 int smi_get_fwd_port(struct ib_smp *smp) in smi_get_fwd_port() argument
326 return (!ib_get_smp_direction(smp) ? smp->initial_path[smp->hop_ptr+1] : in smi_get_fwd_port()
327 smp->return_path[smp->hop_ptr-1]); in smi_get_fwd_port()
331 * Return the forwarding port number from initial_path for outgoing SMP and
332 * from return_path for returning SMP
334 int opa_smi_get_fwd_port(struct opa_smp *smp) in opa_smi_get_fwd_port() argument
336 return !opa_get_smp_direction(smp) ? smp->route.dr.initial_path[smp->hop_ptr+1] : in opa_smi_get_fwd_port()
337 smp->route.dr.return_path[smp->hop_ptr-1]; in opa_smi_get_fwd_port()