[openib-general] [PATCH] agent: Minor modifications to smi_check_local_xxx routines
Hal Rosenstock
halr at voltaire.com
Thu Nov 4 07:40:47 PST 2004
agent: Minor modifications to smi_check_local_xxx routines
Index: agent.c
===================================================================
-- agent.c (revision 1133)
+++ agent.c (working copy)
@@ -117,8 +117,7 @@
{
/* C14-9:3 -- We're at the end of the DR segment of path */
/* C14-9:4 -- Hop Pointer = Hop Count + 1 -> give to SMA/SM. */
- return ((smp->mgmt_class != IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) ||
- (mad_agent->device->process_mad &&
+ return ((mad_agent->device->process_mad &&
!ib_get_smp_direction(smp) &&
(smp->hop_ptr == smp->hop_cnt + 1)));
}
@@ -283,6 +282,8 @@
{
struct ib_agent_port_private *port_priv;
+ if (smp->mgmt_class != IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE)
+ return 1;
port_priv = ib_get_agent_mad(device, port_num, NULL);
if (!port_priv) {
printk(KERN_DEBUG SPFX "smi_check_local_dr_smp %s port %d not open\n",
More information about the general
mailing list