From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f68.google.com (mail-lf0-f68.google.com [209.85.215.68]) by dpdk.org (Postfix) with ESMTP id 8A6C71B1CF for ; Wed, 10 Jan 2018 23:40:32 +0100 (CET) Received: by mail-lf0-f68.google.com with SMTP id z124so600513lfd.10 for ; Wed, 10 Jan 2018 14:40:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nfware-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=TbutuQu4bW0iLlHbVgtvoszx/D3T2X4kRa51ZXNL9fM=; b=dLkJaBjgOujUC2x6uNQD7lgXog3w8SPR78LoanGG//nVQhdBUCzCxj0MxSSntEGHyp 35uBJ+c0x/G7xMJNuMa+hMRoqfKrwf6Ma6DPOUQX4wTkAlanNZOqcuRJgF+HeTO/CHQR NbTEOJH3a8LL+wFF1zxSiJN1H11ZnuEhYexMKo14LkPgfsBg1+n2fAzMP8EuHnCIm0dv j0u2OG7HadxIJwAA7ekQeaJ+EcFftGYSrMSP9miAavTQ6ZzP5ngUr3cRyTQSA5GzK6Af g37NNYUWQcwn+4Bs6V900DDEkm50TTgGASARUtQerAG9INyMWn4xHAan9whPilPD9kYM 8Szw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=TbutuQu4bW0iLlHbVgtvoszx/D3T2X4kRa51ZXNL9fM=; b=DBmu6K3r4LuXtI6LzVefNw7+uHArVJiJlM4ILGuxNbPVAkA2TZ16JrhNNqzSNXZwZ9 i+S3nexkYOTd9/IW0mfINkobsbPB0QnPcBUGyxWc3siP7KKHrzlb5WfsKcQ9E/rlDN1v cq7KsKOY05xcPoUJFAbQf2D0T7+S34W0n+OizViWjU+JT5GSLQmRfkxqD1HKgBVb3mCy qDqO275WH0xheX3juKF5hUT28YVUGszxKd8sMIWRJWKuu0gz2EsGnbS/5um/IhkpA4n9 KsP8GzHnk0lKQsKGslPXRP97Jhz6KuVKDkK7Tlw93IM3MGPP/NycUCRyGqqN9OUT+49N BV5w== X-Gm-Message-State: AKGB3mIY0iQCDz81Q8KC7947ujQrwHqHjbYGCvHHavQburlYsbL01uIs fWbejkFtRzB2FK8ProtqED+YYAGo X-Google-Smtp-Source: ACJfBosxxHb5AGEWyZR3E5u1+kclVVWy3z5fMah+mQzY+0DYcaAnt9eY4aYN5uHZMaqX/nZyDCN/Wg== X-Received: by 10.46.32.148 with SMTP id g20mr7406198lji.133.1515624031392; Wed, 10 Jan 2018 14:40:31 -0800 (PST) Received: from localhost.localdomain ([77.105.179.114]) by smtp.gmail.com with ESMTPSA id u72sm1148915lfi.64.2018.01.10.14.40.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 10 Jan 2018 14:40:30 -0800 (PST) From: Igor Ryzhov To: dev@dpdk.org Date: Thu, 11 Jan 2018 01:40:18 +0300 Message-Id: <1515624018-12555-1-git-send-email-iryzhov@nfware.com> X-Mailer: git-send-email 2.6.4 Subject: [dpdk-dev] [PATCH] i40e: fix flag sent to mac_address_write 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: , X-List-Received-Date: Wed, 10 Jan 2018 22:40:32 -0000 Use the same value as in Linux driver. Signed-off-by: Igor Ryzhov --- drivers/net/i40e/i40e_ethdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 285d92b..93b9dd0 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -10795,8 +10795,7 @@ static void i40e_set_default_mac_addr(struct rte_eth_dev *dev, return; } - /* Flags: 0x3 updates port address */ - i40e_aq_mac_address_write(hw, 0x3, mac_addr->addr_bytes, NULL); + i40e_aq_mac_address_write(hw, I40E_AQC_WRITE_TYPE_LAA_WOL, mac_addr->addr_bytes, NULL); } static int -- 2.6.4