From nobody Mon Aug 29 12:09:40 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MGTl91pRCz4b0ws; Mon, 29 Aug 2022 12:09:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MGTl914cQz43cd; Mon, 29 Aug 2022 12:09:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661774981; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sulYAz69OVqcwjKVAYRtXWb7uG7etCIRk+FYNnk1DXY=; b=NmMSQuehNMsUciuuuAYzB121wpZYj0+e/w86HAtQkzAgwfgYafw7SD2ivj4qTeAoTdICr3 Er0TI4YwkT4+Bp/N/MQHDQY2r+HCTjwlc2u1gBPFNwBBuyUCLobTiDgGhdUxZe1pS+4hB7 VY3+mGfBhMrYrcG4lxA384IzlVzSYtLp3nGZ6yZ6EhdA+pHVFgzz8cykM+h+v8PSoNfdxD lJNUvbVrgjSlBjGiKVOMTGKPwnWDAJRV9XHPy4wKj66kjTIS7hfkJ4p1+3lP/DjnavpmJz nrUadmOU/61aRzwEJT+a6lFKJ2cOrnX8SA6pFxD1ahVhmvj97snGQFMNFY5YWQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MGTl90985zQcb; Mon, 29 Aug 2022 12:09:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 27TC9eLq039735; Mon, 29 Aug 2022 12:09:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27TC9eix039734; Mon, 29 Aug 2022 12:09:40 GMT (envelope-from git) Date: Mon, 29 Aug 2022 12:09:40 GMT Message-Id: <202208291209.27TC9eix039734@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Hans Petter Selasky Subject: git: eacf0dba236e - stable/13 - ibcore: Add support for RDMA/RoCE using VLAN(4) devices. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: hselasky X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: eacf0dba236e16617f7a597427e6d67b360e3032 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661774981; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sulYAz69OVqcwjKVAYRtXWb7uG7etCIRk+FYNnk1DXY=; b=FhwoNdPnQT9hmFOz48lu6YCcIE6UThpFFsS4ETHH5rN/ehiXwdCG8OSh6h/5cIo/2C+Gef Ry/j6A9HO1dc+A72AKE6edWifcHviwe7LcjzvAHB0zhb3ClvNLqYWa0GfnFmjG2Z1r/AJt 5seY7YOSE+tAI831JX3iTEKSWNu9PBVkfkVtx2ndMXlsnkixCnm3J7PLB2Nofk/5kgckGJ xn3KcXTodI9SsNEYL7p5ysXGlgyRfFtNm8mm2jQhw1n6KDQL1QlNGRdPDYDf9LQAxM2OGi twPFczkhgnQ+Jad0bZrhzqDmC0or1sUS0UeIIsk0nVQqhVsKhON8tSIC5eEt2A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661774981; a=rsa-sha256; cv=none; b=Tj2QeqjzKfwJssTsI8lGJ+ErZD4bYkZk6ahTHJmveM3HKOFW76/eJ/MOK1ePI7RtVKt3no Fx4RGLsGdl7F17vDeG+KQH/IAvvJhyus2gQS8VwamNLiCi5RgeBSI2AQxRR06Y5a7NmCG/ uA8J50F8ND0SLc4WQZPie3Pv+q8pOiwTw/2thqhLic6PE8RecTYdYlpDvdc/m4sgbEh6+i Bof/yuC2ptcXMDmtPLZSF3Pgal23FOkecQGrbR7Pxohe7EtvN/i+8Ak4GrTRzkImPt+Vh5 f5NtHclT7I9XyDkuUubtyEjBCPwuY7okIFXJXpba9eABm5h5TsIkbnvcNOte0w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=eacf0dba236e16617f7a597427e6d67b360e3032 commit eacf0dba236e16617f7a597427e6d67b360e3032 Author: Hans Petter Selasky AuthorDate: 2022-08-22 08:03:24 +0000 Commit: Hans Petter Selasky 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 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;