On 2022/4/10 6:34, Jason Gunthorpe wrote: > On Sat, Apr 09, 2022 at 04:35:23PM +0800, Wenpeng Liang wrote: >> If the device is a virtual function, the corresponding device capability >> flag should be set when querying the device. >> >> Fixes: 0b567cde9d7a ("RDMA/hns: Enable RoCE on virtual functions") >> Signed-off-by: Wenpeng Liang <liangwenpeng@xxxxxxxxxx> >> --- >> drivers/infiniband/hw/hns/hns_roce_main.c | 3 +++ >> 1 file changed, 3 insertions(+) > > No, this is only set if the device implements the _vf_ ops and uses > ipoib > > roce devices never run ipoib > I would unset this flag. Please ignore this patch. Thanks, Wenpeng > Jason > . >