[openib-general] Re: [PATCH] SDP: In do_link_path_lookup, make sure device is IPoIB hardware type

Michael S. Tsirkin mst at mellanox.co.il
Tue Sep 27 04:35:08 PDT 2005


Quoting r. Hal Rosenstock <halr at voltaire.com>:
> Subject: [PATCH] SDP: In do_link_path_lookup, make sure device is IPoIB hardware type
> 
> In do_link_path_lookup, make sure device selected is IPoIB hardware
> type before accessing its local private data


Hal, does this fix some actual problem you are seeing?
sdp_link.c has

        if (rt->u.dst.neighbour->dev->type != ARPHRD_INFINIBAND &&
            !(rt->u.dst.neighbour->dev->flags & IFF_LOOPBACK)) {
                result = -ENETUNREACH;
                goto error;
        }

and this seems to check the device type.

-- 
MST



More information about the general mailing list