Re: [PATCH rdma-next 00/11] Elastic RDMA Adapter (ERDMA) driver
From: Leon Romanovsky <leon@kernel.org>
Date: 2021-12-23 10:23:46
From: Leon Romanovsky <leon@kernel.org>
Date: 2021-12-23 10:23:46
On Wed, Dec 22, 2021 at 11:35:44AM +0800, Cheng Xu wrote:
<...>
quoted
quoted
For the ECS instance with RDMA enabled, there are two kinds of devices allocated, one for ERDMA, and one for the original netdev (virtio-net). They are different PCI deivces. ERDMA driver can get the information about which netdev attached to in its PCIe barspace (by MAC address matching).This is very questionable. The netdev part should be kept in the drivers/ethernet/... part of the kernel. ThanksThe net device used in Alibaba ECS instance is virtio-net device, driven by virtio-pci/virtio-net drivers. ERDMA device does not need its own net device, and will be attached to an existed virtio-net device. The relationship between ibdev and netdev in erdma is similar to siw/rxe.
siw/rxe binds through RDMA_NLDEV_CMD_NEWLINK netlink command and not through MAC's matching. Thanks