]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - drivers/infiniband/hw/mlx5/main.c
RDMA: Validate grh_required when handling AVs
authorArtemy Kovalyov <artemyko@mellanox.com>
Wed, 4 Jul 2018 12:57:50 +0000 (15:57 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 10 Jul 2018 17:13:04 +0000 (11:13 -0600)
commitb02289b3d60f79ba0831051a7743d8fdb4110355
treeab40813ac166eb65344774f68d18d8bf313a076d
parent958200ad8e838bef3b36f9b0674923172b8d9da5
RDMA: Validate grh_required when handling AVs

Extend the existing grh_required flag to check when AV's are handled that
a GRH is present.

Since we don't want to do query_port during the AV checks for performance
reasons move the flag into the immutable_data.

Signed-off-by: Artemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/sa_query.c
drivers/infiniband/core/verbs.c
drivers/infiniband/hw/mlx5/main.c
include/rdma/ib_verbs.h