From: Or Gerlitz Date: Tue, 15 Jul 2008 06:48:53 +0000 (-0700) Subject: RDMA/addr: Keep pointer to netdevice in struct rdma_dev_addr X-Git-Tag: v2.6.27-rc1~1090^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64c5e613b9dd34ef1281ed6d22478609667ae36a;p=pandora-kernel.git RDMA/addr: Keep pointer to netdevice in struct rdma_dev_addr Keep a pointer to the local (src) netdevice in struct rdma_dev_addr, and copy it in as part of rdma_copy_addr(). Use rdma_translate_ip() in cma_new_conn_id() to reduce some code duplication and also make sure the src_dev member gets set. In a high-availability configuration the netdevice pointer 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. Signed-off-by: Or Gerlitz Signed-off-by: Roland Dreier --- Reading git-diff-tree failed