OSDN Git Service

RDMA/device: Consolidate ib_device per_port data into one place
authorJason Gunthorpe <jgg@mellanox.com>
Wed, 13 Feb 2019 04:12:48 +0000 (21:12 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 19 Feb 2019 17:13:39 +0000 (10:13 -0700)
commit8ceb1357b33790193e9d55d2d09bcfd6bd59dd6d
tree43ffc005404f0a2eeab9f9c1ca47c3e6e7ca4d35
parentea1075edcbab7d92f4e4ccf5490043f796bf78be
RDMA/device: Consolidate ib_device per_port data into one place

There is no reason to have three allocations of per-port data. Combine
them together and make the lifetime for all the per-port data match the
struct ib_device.

Following patches will require more port-specific data, now there is a
good place to put it.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cache.c
drivers/infiniband/core/device.c
drivers/infiniband/core/security.c
include/rdma/ib_verbs.h