[ofa-general] Re: [RFC V3 PATCH 4/5] rdma/cma: implement RDMA_CM_EVENT_NETDEV_CHANGE notification

Or Gerlitz ogerlitz at voltaire.com
Wed May 28 04:14:40 PDT 2008


Sean Hefty wrote
>> How do we know that the user hasn't tried to destroy the id from another
>> callback?  We need some sort of state check here.
fixed
>>
>> +static int cma_netdev_align_id(struct net_device *ndev, struct rdma_id_private *id_priv)
> nit - function name isn't clear to me.  Maybe something like
> cma_netdev_change_handler()?  Although I'm not sure that netdev change is what
> the user is really interested in.  What they really want to know is if IP
> address mapping/resolution changed.  netdev is hidden from the user.
I changed the function name to cma_netdev_change as it checks if there 
was some netdev change between the time of this ID address resolution to 
when the netdev event was delivered. The user doesn't get explicit 
notification from the rdma-cm on netdev change but rather on address 
change as you suggested next.

> Maybe call this RDMA_CM_EVENT_ADDR_CHANGE?
done

Or.




More information about the general mailing list