IB/mlx4: Update HW GID table while adding vlan GID
authorDanit Goldberg <danitg@mellanox.com>
Fri, 15 Nov 2019 15:44:57 +0000 (17:44 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 19 Nov 2019 19:58:55 +0000 (15:58 -0400)
commitff3195b3ed85d0068fb9a80eaa2a1471a04df76a
tree329b124546132fc5bbcc849d72f33afaf032f982
parent9067f2f0b41d7e817fc8c5259bab1f17512b0147
IB/mlx4: Update HW GID table while adding vlan GID

When adding a new GID compare the vlan along with the GID and type. This
allows vlan's to have GIDs that alias each other, such as the default
GID. Otherwise they the GID cache view can become inconsistent with the HW
view.

Link: https://lore.kernel.org/r/20191115154457.247763-1-leon@kernel.org
Signed-off-by: Danit Goldberg <danitg@mellanox.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx4/main.c
drivers/infiniband/hw/mlx4/mlx4_ib.h