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

Yossi Etigin yosefe at voltaire.com
Wed Jul 29 09:12:38 PDT 2009


On 28/07/09 13:39, Moni Shoua wrote:
>> +	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

Yes, you are right.





More information about the general mailing list