From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 00516A09FD; Fri, 18 Dec 2020 13:08:32 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C9106CAB6; Fri, 18 Dec 2020 13:08:30 +0100 (CET) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.176.14]) by dpdk.org (Postfix) with ESMTP id CBE01CAAF for ; Fri, 18 Dec 2020 13:08:27 +0100 (CET) Received: from desktop.home (dynamic-2a00-1028-8b40-015e-9d87-7658-a3eb-82bc.ipv6.broadband.iol.cz [IPv6:2a00:1028:8b40:15e:9d87:7658:a3eb:82bc]) (authenticated bits=0) by eva.fit.vutbr.cz (8.16.1/8.16.1) with ESMTPSA id 0BIC8OS7022856 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 18 Dec 2020 13:08:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stud.fit.vutbr.cz; s=studfit; t=1608293307; bh=Lg9axv/ZYhbTtenUsstcuBB9uaczhRpMxn6yn9BWX2U=; h=From:To:Cc:Subject:Date; b=t5hnNjQJoO5XJaQLbnuemMKvckwpQXutwY3skHg7n3e2RanD/lZIwBqqyVt5EYcyi RCiDSkZs/bep9mmHFIt0nw8Ux5R4rh+mfbPWhCWskr7O3ueyGm1Nz01HZ7XlDtCDrD +gT/oTHLD1jlRzPtE+odaJo7ZoGZqKjS6IuGaIOA= From: Kamil Vojanec To: dev@dpdk.org Cc: viktorin@cesnet.cz Date: Fri, 18 Dec 2020 13:08:23 +0100 Message-Id: <20201218120823.30907-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.15 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 4c863db1a..37d17fc05 100644 --- a/drivers/net/mlx5/linux/mlx5_os.c +++ b/drivers/net/mlx5/linux/mlx5_os.c @@ -147,6 +147,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