From nobody Mon Aug 22 08:05:09 2022 X-Original-To: dev-commits-src-main@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 4MB4fF41Lzz4b8Ll; Mon, 22 Aug 2022 08:05:09 +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 4MB4fF3Ylvz3Vk3; Mon, 22 Aug 2022 08:05:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661155509; 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=KD6UELtMeJPcEGfUMzYiiAEFQSuYV3KaMg1ZbhpsRdk=; b=nkh7s9jQpx1b8f6n4VncYXbUyUR8GWGKjxCHt2GTDwdrIguRYp+4OBDxl7EziDMII7+5QK FVTjLOCY9TbesFP6fEwED/6e3X6lVWH5bc0H60vkoY68LNwx/maFs2TwwAZJ0lPnWENsdq QVLLqjEt257et1TF08C5l+JKIb1qL4Uc6v3eP83obJETOkJvVdbhw4K6OM2DrX/48Ch809 Na5z5Zj31JPFz5xRwO8j4TFOO9KAFkYTV66ZsCWEUqjtQqIX15ojmz55VL+00TXaM63UuZ ig+d5NKWeahNkvIYhaSe561b6D3fsVmvrmTX6LzSPAa+iZeO4mINgrKVIAmYmg== 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 4MB4fF2dmzzjTx; Mon, 22 Aug 2022 08:05:09 +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 27M859X3048508; Mon, 22 Aug 2022 08:05:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27M859Zq048507; Mon, 22 Aug 2022 08:05:09 GMT (envelope-from git) Date: Mon, 22 Aug 2022 08:05:09 GMT Message-Id: <202208220805.27M859Zq048507@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Hans Petter Selasky Subject: git: 57af517ac4e8 - main - ibcore: Add support for RDMA/RoCE using VLAN(4) devices. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 57af517ac4e8f88339ad1ff778d3b7ac32827430 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661155509; 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=KD6UELtMeJPcEGfUMzYiiAEFQSuYV3KaMg1ZbhpsRdk=; b=bLuTzkSwvYzpD9n3N8Li/PW382g8LHR8GXVRsjbygvCv0JYWp20o/VaFnuk4jZdwwKE94M DnObI/XdFP/AwKwN+AQE7gZ/tbkAWLKJb5e9a8XpsVveJJJ7dLaMwE9c/HhdJhUFo5Jxc4 zTJ6jJP57GmWgRJVGF4oxjpknf94ubT6MIyel9Vk7P1Bj11M2+pDmTCzJFrnN7wRfcstaC i3WVk4U8+HPwx5ELzcJg+sTtzfl/eiDzUDWSxihV92s/wG8EqavnoPB71JtME1sozhONsA WNJWVgR8mbAOtpVoIaYjQ3G/Ip+nFRvTOwdTy+zb6vP7f0f0y5IwJBSmdkoFWg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661155509; a=rsa-sha256; cv=none; b=XGFiVs/pdLFNF4rJBEVxNNs1TIG/Fl6JWkmWURS3S24dDUmJElxn5+yFrDWr/fFkaD29vc 3cygmC6Rsh7doBz9IrbZNSe5A7xMZj2QQaW38N8l98Zqrpda6liZSH/ohMXxJR7AS+ZzoA vt161/bA+b8QwVM86hAY5orAJt4C0Lf4tfPY4Xtq4+eXerUjSijUnCDyhboo69PfmI5yFP o89kM1Lxr0dgOEVPLnQFzBo2PdfozBSSx//xlak+EompwsUbbvrZDX+6bu0MPX0A05kPGQ PxgPQ2W3KoHB+CBkM+WD/W1fzI+7+3EnlLgFsbbzFf2UGzUF+AW1yxOQGogBKg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=57af517ac4e8f88339ad1ff778d3b7ac32827430 commit 57af517ac4e8f88339ad1ff778d3b7ac32827430 Author: Hans Petter Selasky AuthorDate: 2022-08-22 08:03:24 +0000 Commit: Hans Petter Selasky CommitDate: 2022-08-22 08:04:26 +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: bartosz.sobczak@intel.com (Bartosz Sobczak) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D36120 Sponsored by: NVIDIA Networking --- 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;