]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RDMA/erdma: Probe the erdma RoCEv2 device
authorBoshi Yu <boshiyu@linux.alibaba.com>
Wed, 11 Dec 2024 02:09:01 +0000 (10:09 +0800)
committerLeon Romanovsky <leon@kernel.org>
Mon, 16 Dec 2024 13:20:05 +0000 (08:20 -0500)
commita883e71345a0101ff33be23a8d13f112ec4defb5
treec46620b3bbfd0e68322df4be1796d38eabebf95f
parentbd96a3935e89486304461a21752f824fc25e0f0b
RDMA/erdma: Probe the erdma RoCEv2 device

Currently, the erdma driver supports both the iWARP and RoCEv2 protocols.
The erdma driver reads the ERDMA_REGS_DEV_PROTO_REG register to identify
the protocol used by the erdma device. Since each protocol requires
different ib_device_ops, we introduce the erdma_device_ops_iwarp and
erdma_device_ops_rocev2 for iWARP and RoCEv2 protocols, respectively.

Signed-off-by: Boshi Yu <boshiyu@linux.alibaba.com>
Link: https://patch.msgid.link/20241211020930.68833-2-boshiyu@linux.alibaba.com
Reviewed-by: Cheng Xu <chengyou@linux.alibaba.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/erdma/Kconfig
drivers/infiniband/hw/erdma/erdma.h
drivers/infiniband/hw/erdma/erdma_hw.h
drivers/infiniband/hw/erdma/erdma_main.c
drivers/infiniband/hw/erdma/erdma_verbs.c
drivers/infiniband/hw/erdma/erdma_verbs.h