aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx4/mlx4_ib.h
diff options
context:
space:
mode:
authorDanit Goldberg <danitg@mellanox.com>2019-11-15 17:44:57 +0200
committerJason Gunthorpe <jgg@mellanox.com>2019-11-19 15:58:55 -0400
commitff3195b3ed85d0068fb9a80eaa2a1471a04df76a (patch)
tree329b124546132fc5bbcc849d72f33afaf032f982 /drivers/infiniband/hw/mlx4/mlx4_ib.h
parentRDMA/iw_cgxb4: Fix an error handling path in 'c4iw_connect()' (diff)
downloadlinux-dev-ff3195b3ed85d0068fb9a80eaa2a1471a04df76a.tar.xz
linux-dev-ff3195b3ed85d0068fb9a80eaa2a1471a04df76a.zip
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>
Diffstat (limited to '')
-rw-r--r--drivers/infiniband/hw/mlx4/mlx4_ib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx4/mlx4_ib.h b/drivers/infiniband/hw/mlx4/mlx4_ib.h
index 0d846fea8fdc..d188573187fa 100644
--- a/drivers/infiniband/hw/mlx4/mlx4_ib.h
+++ b/drivers/infiniband/hw/mlx4/mlx4_ib.h
@@ -508,6 +508,7 @@ struct gid_entry {
union ib_gid gid;
enum ib_gid_type gid_type;
struct gid_cache_context *ctx;
+ u16 vlan_id;
};
struct mlx4_port_gid_table {