***SPAM*** Re: [ofa-general] Re: [PATCH 1/4] rdma/addr: keep the netdevice name in struct rdma_dev_addr

Steve Wise swise at opengridcomputing.com
Wed Jun 18 12:20:50 PDT 2008


Or Gerlitz wrote:
> On 6/18/08, Roland Dreier <rdreier at cisco.com 
> <mailto:rdreier at cisco.com>> wrote:
>
> >> Keep also the local (src) netdevice name in struct rdma_dev_addr. 
> In a High-Availability
> >> scheme this can be used by the rdma-cm to align RDMA sessions to 
> use the same links
> >> as the IP stack does under fail-over and route change cases.
>   
> > Is the netdevice name the best we can do?  It seems pretty fragile 
> in  the face of renaming etc.
>
> Taking into account that under this scheme the hw address of the 
> netdevice changes, I didn't see something really better than the name, 
> were you thinking on some specific alternative? just saving pointer to 
> the netdevice seemed quite not elegant...
>
> Or.

The netdevice ptr is the one thing that won't change.  Its used in other 
routing structs like dst_entry and neighbour.

Steve.



More information about the general mailing list