aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/cache.c
diff options
context:
space:
mode:
authorMoni Shoua <[email protected]>2015-07-30 15:33:29 +0000
committerDoug Ledford <[email protected]>2015-08-30 22:12:20 +0000
commite26be1bfef81a2314a075f54dd8930cf5e8656df (patch)
tree89a59f6c1d2cd1185a542ceaeba4d28b867dccab /drivers/infiniband/core/cache.c
parentnet/mlx4: Postpone the registration of net_device (diff)
downloadkernel-e26be1bfef81a2314a075f54dd8930cf5e8656df.tar.gz
kernel-e26be1bfef81a2314a075f54dd8930cf5e8656df.zip
IB/mlx4: Implement ib_device callbacks
get_netdev: get the net_device on the physical port of the IB transport port. In port aggregation mode it is required to return the netdev of the active port. modify_gid: note for a change in the RoCE gid cache. Handle this by writing to the harsware GID table. It is possible that indexes in cahce and hardware tables won't match so a translation is required when modifying a QP or creating an address handle. Signed-off-by: Moni Shoua <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'drivers/infiniband/core/cache.c')
-rw-r--r--drivers/infiniband/core/cache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/core/cache.c b/drivers/infiniband/core/cache.c
index fc39a2fed37b..8f66c67ff0df 100644
--- a/drivers/infiniband/core/cache.c
+++ b/drivers/infiniband/core/cache.c
@@ -55,7 +55,8 @@ struct ib_update_work {
u8 port_num;
};
-static union ib_gid zgid;
+union ib_gid zgid;
+EXPORT_SYMBOL(zgid);
static const struct ib_gid_attr zattr;