diff options
| author | Avihai Horon <[email protected]> | 2020-09-23 16:50:13 +0000 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2020-10-02 00:20:11 +0000 |
| commit | 1c15b4f2a42ff6697767c22c8ff5f9bcc22fdbe5 (patch) | |
| tree | 5de3a5065b616f378b7debc1f58f06cf4abd4a8c /drivers/infiniband/core/cache.c | |
| parent | RDMA/core: Change rdma_get_gid_attr returned error code (diff) | |
| download | kernel-1c15b4f2a42ff6697767c22c8ff5f9bcc22fdbe5.tar.gz kernel-1c15b4f2a42ff6697767c22c8ff5f9bcc22fdbe5.zip | |
RDMA/core: Modify enum ib_gid_type and enum rdma_network_type
Separate IB_GID_TYPE_IB and IB_GID_TYPE_ROCE to two different values, so
enum ib_gid_type will match the gid types of the new query GID table API
which will be introduced in the following patches.
This change in enum ib_gid_type requires to change also enum
rdma_network_type by separating RDMA_NETWORK_IB and RDMA_NETWORK_ROCE_V1
values.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Avihai Horon <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/infiniband/core/cache.c')
| -rw-r--r-- | drivers/infiniband/core/cache.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/infiniband/core/cache.c b/drivers/infiniband/core/cache.c index 6079f1f7e678..cf49ac0b0aa6 100644 --- a/drivers/infiniband/core/cache.c +++ b/drivers/infiniband/core/cache.c @@ -133,7 +133,11 @@ static void dispatch_gid_change_event(struct ib_device *ib_dev, u8 port) } static const char * const gid_type_str[] = { + /* IB/RoCE v1 value is set for IB_GID_TYPE_IB and IB_GID_TYPE_ROCE for + * user space compatibility reasons. + */ [IB_GID_TYPE_IB] = "IB/RoCE v1", + [IB_GID_TYPE_ROCE] = "IB/RoCE v1", [IB_GID_TYPE_ROCE_UDP_ENCAP] = "RoCE v2", }; |
