]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/mlx5: Use correct size for device resources
authorMark Bloch <markb@mellanox.com>
Thu, 28 Mar 2019 13:27:36 +0000 (15:27 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 10 Apr 2019 18:05:39 +0000 (15:05 -0300)
commit9bd0535388513c1b1256a47c49b8001994c7b02a
tree0121cd85d5107cd8d6e2060be70e239f2536f52c
parent9ecd7888218f9658651357df7b2188d8b0b679e4
RDMA/mlx5: Use correct size for device resources

On allocation we use the array size and on destruction num_ports, use the
array size of destruction as well, in this context the array corresponds
to the native/actual ports on the NIC so no need to adjust this logic for
representors.

Signed-off-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/main.c