[ofa-general] [PATCH] ipoib: refresh path when remote lid changes

Moni Shoua monis at Voltaire.COM
Tue Jul 28 03:39:50 PDT 2009


> +	ipoib_dbg(priv, "Path %pI6: LID changed from 0x%04x to 0x%04x\n",
> +		  path->pathrec.dgid.raw, be16_to_cpu(path->pathrec.dlid), lid);
> +
> +	list_del(&path->list);
> +	rb_erase(&path->rb_node, &priv->path_tree);
> +
> +	spin_unlock_irqrestore(&priv->lock, flags);
> +	netif_tx_unlock_bh(dev);
> +
> +	path_free(dev, path);
> +}
> +
Instead of deleting the path you could restart the query with 
	if (!path->query)
		path_rec_start(dev, path);

It's should be the same as in unicast_arp_send() when path->valid == 0



More information about the general mailing list