git: eacf0dba236e - stable/13 - ibcore: Add support for RDMA/RoCE using VLAN(4) devices.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 29 Aug 2022 12:09:40 UTC
The branch stable/13 has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=eacf0dba236e16617f7a597427e6d67b360e3032 commit eacf0dba236e16617f7a597427e6d67b360e3032 Author: Hans Petter Selasky <hselasky@FreeBSD.org> AuthorDate: 2022-08-22 08:03:24 +0000 Commit: Hans Petter Selasky <hselasky@FreeBSD.org> CommitDate: 2022-08-29 12:03:57 +0000 ibcore: Add support for RDMA/RoCE using VLAN(4) devices. Classify VLAN devices as ethernet in rdma_copy_addr(). This fixes the following error message: rdma_bind_addr: No such file or directory Submitted by: Piotr Kubaj <pkubaj@FreeBSD.org> Differential Revision: https://reviews.freebsd.org/D36120 Sponsored by: NVIDIA Networking (cherry picked from commit 57af517ac4e8f88339ad1ff778d3b7ac32827430) --- sys/ofed/drivers/infiniband/core/ib_addr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/ofed/drivers/infiniband/core/ib_addr.c b/sys/ofed/drivers/infiniband/core/ib_addr.c index ce1f270527b4..974860b77caf 100644 --- a/sys/ofed/drivers/infiniband/core/ib_addr.c +++ b/sys/ofed/drivers/infiniband/core/ib_addr.c @@ -153,7 +153,7 @@ int rdma_copy_addr(struct rdma_dev_addr *dev_addr, struct ifnet *dev, return (0); } else if (dev->if_type == IFT_INFINIBAND) dev_addr->dev_type = ARPHRD_INFINIBAND; - else if (dev->if_type == IFT_ETHER) + else if (dev->if_type == IFT_ETHER || dev->if_type == IFT_L2VLAN) dev_addr->dev_type = ARPHRD_ETHER; else dev_addr->dev_type = 0;