Re: [Patch v7 01/12] net: mana: Add support for auxiliary device

Yunsheng Lin
2022-10-19T03:31:02Z

On 2022/10/18 3:20, longli@linuxonhyperv.com wrote:
> From: Long Li <longli@microsoft.com>
>
> In preparation for supporting MANA RDMA driver, add support for auxiliary
> device in the Ethernet driver. The RDMA device is modeled as an auxiliary
> device to the Ethernet device.

If the RDMA device is a auxiliary device in the Ethernet driver, is there
some type of hw reset that affect both net_device and ib_device?
Is there some kind of handling like pcie hot plug/unplug which already
handles this case, so the reset handling is not needed in the RDMA and
Ethernet driver?

>
> Reviewed-by: Dexuan Cui <decui@microsoft.com>
> Signed-off-by: Long Li <longli@microsoft.com>
> Acked-by: Haiyang Zhang <haiyangz@microsoft.com>
> ---
> Change log:
> v3: define mana_adev_idx_alloc and mana_adev_idx_free as static
> v7: fix a bug that may assign a negative value to adev->id
>
> drivers/net/ethernet/microsoft/Kconfig | 1 +
> drivers/net/ethernet/microsoft/mana/gdma.h | 2 +
> .../ethernet/microsoft/mana/mana_auxiliary.h | 10 +++
> drivers/net/ethernet/microsoft/mana/mana_en.c | 83 ++++++++++++++++++-