IB/mlx4: Don't duplicate the default RoCE GID
authorMoni Shoua <monis@mellanox.com>
Thu, 21 Aug 2014 11:28:38 +0000 (14:28 +0300)
committerRoland Dreier <roland@purestorage.com>
Mon, 22 Sep 2014 16:46:52 +0000 (09:46 -0700)
commitf5c4834d9328c4ed9fe5dcbec6128d6da16db69a
tree6d35247278b9a655e211d99032ce73f1b02bc654
parente381835cf1b8e3b2857277dbc3b77d8c5350f70a
IB/mlx4: Don't duplicate the default RoCE GID

When reading the IPv6 addresses from the net-device, make sure to
avoid adding a duplicate entry to the GID table because of equality
between the default GID we generate and the default IPv6 link-local
address of the device.

Fixes: acc4fccf4eff ("IB/mlx4: Make sure GID index 0 is always occupied")
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/mlx4/main.c