RDMA/ocrdma: Populate GID table with IP based gids
authorMoni Shoua <monis@mellanox.com>
Thu, 12 Dec 2013 16:03:16 +0000 (18:03 +0200)
committerRoland Dreier <roland@purestorage.com>
Sun, 19 Jan 2014 23:14:01 +0000 (15:14 -0800)
commit37721d8501a9a1fbe87527c24d127a914b29fd7f
tree608e82026c0439d3d9dde868329bb712d5eae633
parent40aca6ffcac57dd9c65877a59a8bbb210c4691ca
RDMA/ocrdma: Populate GID table with IP based gids

This patch is similar in spirit to the "IB/mlx4: Use IBoE (RoCE) IP
based GIDs in the port GID table" patch.

Changes to inet4 and inet6 addresses for the host are monitored and if
the address is associated with an ocrdma device then a gid is added or
deleted from the device's gid table. The gid format will be a IPv4 to
IPv6 mapped or the IPv6 address.

Cc: Naresh Gottumukkala <bgottumukkala@emulex.com>
Signed-off-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/ocrdma/ocrdma_main.c
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c