]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc9e0a8386ce25357b7090cb21a587770c1004d6d
tree329b124546132fc5bbcc849d72f33afaf032f982
parent19eb624811b37fb2087697eea050515c78324cd6
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