diff options
author | Or Gerlitz <ogerlitz@voltaire.com> | 2008-07-14 23:48:53 -0700 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-07-14 23:48:53 -0700 |
commit | 64c5e613b9dd34ef1281ed6d22478609667ae36a (patch) | |
tree | ba749c73291bbb98954c08581b93d5bd6a931813 /include/rdma | |
parent | 4ab928f69208d240d3681336f34589e4b151824f (diff) | |
download | linux-stable-64c5e613b9dd34ef1281ed6d22478609667ae36a.tar.gz linux-stable-64c5e613b9dd34ef1281ed6d22478609667ae36a.tar.bz2 linux-stable-64c5e613b9dd34ef1281ed6d22478609667ae36a.zip |
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 <ogerlitz@voltaire.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'include/rdma')
-rw-r--r-- | include/rdma/ib_addr.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/rdma/ib_addr.h b/include/rdma/ib_addr.h index b42bdd000419..483057b2f4b4 100644 --- a/include/rdma/ib_addr.h +++ b/include/rdma/ib_addr.h @@ -61,6 +61,7 @@ struct rdma_dev_addr { unsigned char dst_dev_addr[MAX_ADDR_LEN]; unsigned char broadcast[MAX_ADDR_LEN]; enum rdma_node_type dev_type; + struct net_device *src_dev; }; /** |