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 A6B0EA0C46; Mon, 27 Sep 2021 16:59:19 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B91F941145; Mon, 27 Sep 2021 16:58:19 +0200 (CEST) Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) by mails.dpdk.org (Postfix) with ESMTP id 05E13410DA for ; Mon, 27 Sep 2021 15:36:30 +0200 (CEST) Received: by mail-pl1-f169.google.com with SMTP id n2so11769816plk.12 for ; Mon, 27 Sep 2021 06:36:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oneconvergence.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=QMZGgcKsTHVITNhrU1NujhLwXbn579ZPlhx0FqiZX1A=; b=PFh0xR6ebdwpuytS5E48B68UHF7fcEEiFnOo5gTs3MAYm+UuFhvwpInqSPP0QKTBjv Ju9zIayujKRXvrXQoOVJgfUwEVO/rSWzkdp6/Kx1RNKMNbblvgkQ7eWr8BUJLvDO79Ip +fTF2SfOj/B5UQHsp3YFWTBHGod9AYysVwXaE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=QMZGgcKsTHVITNhrU1NujhLwXbn579ZPlhx0FqiZX1A=; b=jGBN7lAYcdYP5nw8sNNMZzSAuhKuFzMnh0m81Ptnjj0I74/gl329TdtKvo74+XmHrS AQdjh8cPX8NXa6hxbz7snprNQvNZFmwD8MOBQTNNAEGyJJZymNmPk0FounM2gk6gj3gX IK7znqckwvGkRhFWQ1ltMymxILHrQsLsBMf7C+xXeWV73ylv0gXMY1FOmQntlQFj+sxR AhY3hKdHSfK0f6bj/A10WDI6QPuAwo3V95kucw/Fx2F6q1C2NFvEZ6IMeF8fEOxGQlon HB3lJo1RK/etLKSAH7VDx/khBI3IW5tQSRG6Et+VcoPDa3DO5kkIlwbZubD6VUu4r07J mLxg== X-Gm-Message-State: AOAM531D4S0Fa56Yrqs5jJzkba6hUHORDUwbR7zztyQwzKlzSTq9TuiY fxm2SzaP1waE4qhuFFgkeBSzjA== X-Google-Smtp-Source: ABdhPJxQH/PwPsKyyLmcmk3A6ERbC5rjKYejGD6SnFvaG2bN2FeD7eSiMYzL/R+uwzjSHrVAD2bhyA== X-Received: by 2002:a17:902:c612:b0:13c:9801:a336 with SMTP id r18-20020a170902c61200b0013c9801a336mr22499079plr.27.1632749789287; Mon, 27 Sep 2021 06:36:29 -0700 (PDT) Received: from srikanth-ThinkPad-T450.domain.name ([223.178.22.200]) by smtp.gmail.com with ESMTPSA id t6sm17342274pfh.63.2021.09.27.06.36.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 06:36:29 -0700 (PDT) From: Srikanth Kaka To: Matan Azrad , Viacheslav Ovsiienko Cc: dev@dpdk.org, Vag Singh , Anand Thulasiram , Srikanth Kaka Date: Mon, 27 Sep 2021 19:04:41 +0530 Message-Id: <20210927133450.10653-11-srikanth.k@oneconvergence.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210927133450.10653-1-srikanth.k@oneconvergence.com> References: <20210927133450.10653-1-srikanth.k@oneconvergence.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Mon, 27 Sep 2021 16:58:07 +0200 Subject: [dpdk-dev] [PATCH 10/19] net/mlx5: fix socket MAC request 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" Use correct socket request type and ifreq for FreeBSD Signed-off-by: Srikanth Kaka Signed-off-by: Vag Singh Signed-off-by: Anand Thulasiram --- drivers/net/mlx5/freebsd/mlx5_ethdev_os.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/mlx5/freebsd/mlx5_ethdev_os.c b/drivers/net/mlx5/freebsd/mlx5_ethdev_os.c index 5cf3eab65a..03ae2e4aa9 100644 --- a/drivers/net/mlx5/freebsd/mlx5_ethdev_os.c +++ b/drivers/net/mlx5/freebsd/mlx5_ethdev_os.c @@ -14,11 +14,11 @@ #include #include #include +#include #include #include #include #include -#include #include #include #include @@ -1612,9 +1612,9 @@ mlx5_get_mac(struct rte_eth_dev *dev, uint8_t (*mac)[RTE_ETHER_ADDR_LEN]) struct ifreq request; int ret; - ret = mlx5_ifreq(dev, SIOCGIFHWADDR, &request); + ret = mlx5_ifreq(dev, SIOCGHWADDR, &request); if (ret) return ret; - memcpy(mac, request.ifr_hwaddr.sa_data, RTE_ETHER_ADDR_LEN); + memcpy(mac, request.ifr_addr.sa_data, RTE_ETHER_ADDR_LEN); return 0; } -- 2.30.2