From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2A930A0524; Fri, 5 Feb 2021 10:01:27 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AF41E40682; Fri, 5 Feb 2021 10:01:26 +0100 (CET) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.176.14]) by mails.dpdk.org (Postfix) with ESMTP id BC1864067B for ; Fri, 5 Feb 2021 10:01:24 +0100 (CET) Received: from desktop.home (dynamic-2a00-1028-8b40-015e-2c5c-3e9b-1479-44de.ipv6.broadband.iol.cz [IPv6:2a00:1028:8b40:15e:2c5c:3e9b:1479:44de]) (authenticated bits=0) by eva.fit.vutbr.cz (8.16.1/8.16.1) with ESMTPSA id 11591CS3057415 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 5 Feb 2021 10:01:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stud.fit.vutbr.cz; s=studfit; t=1612515678; bh=7T4UiN2L6ZjK2LH+jwfwBE4PpYBypz1o0OT2DonvEBs=; h=From:To:Cc:Subject:Date; b=kO1ZaXOmU3OefEPQtpUBKwAMyckKmhKZSC2WA33zlqrffDGD8JWoTSf7aThga167S QmZJLOvQipCUZQWRJhvg3yGWE8Vkcg6pBBwX+sS8fzoTRGkfTwGlnYKePNb4GzRhOT B5vk0vX/ObArFDQbT/TE0TB4w+8c1fnxt8CJ0Up8= From: Kamil Vojanec To: dev@dpdk.org Cc: viktorin@cesnet.cz, Matan Azrad , Shahaf Shuler , Viacheslav Ovsiienko Date: Fri, 5 Feb 2021 10:00:45 +0100 Message-Id: <20210205090045.12047-1-xvojan00@stud.fit.vutbr.cz> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH] net/mlx5/linux: fix missing firmware version copying X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch fixes a bug where firmware version was not copied from ibv_device_attr structure into mlx5_dev_attr structure, resulting in inability to read firmware version. Signed-off-by: Kamil Vojanec --- drivers/net/mlx5/linux/mlx5_os.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/mlx5/linux/mlx5_os.c b/drivers/net/mlx5/linux/mlx5_os.c index a8cc5f311..fa35c06e7 100644 --- a/drivers/net/mlx5/linux/mlx5_os.c +++ b/drivers/net/mlx5/linux/mlx5_os.c @@ -152,6 +152,7 @@ mlx5_os_get_dev_attr(void *ctx, struct mlx5_dev_attr *device_attr) #ifdef HAVE_IBV_DEVICE_TUNNEL_SUPPORT device_attr->tunnel_offloads_caps = dv_attr.tunnel_offloads_caps; #endif + strlcpy(device_attr->fw_ver, attr_ex.orig_attr.fw_ver, sizeof(device_attr->fw_ver)); return err; } -- 2.17.1