DPDK patches and discussions
 help / color / mirror / Atom feed
From: Igor Ryzhov <iryzhov@nfware.com>
To: dev@dpdk.org
Cc: beilei.xing@intel.com, stable@dpdk.org
Subject: [dpdk-dev] [PATCH v2] net/i40e: fix flag sent to mac_address_write
Date: Thu, 11 Jan 2018 13:07:27 +0300	[thread overview]
Message-ID: <1515665247-14772-1-git-send-email-iryzhov@nfware.com> (raw)
In-Reply-To: <1515624018-12555-1-git-send-email-iryzhov@nfware.com>

Use the same value as in Linux driver.

Fixes: e18e01e92c29 ("i40e: support default MAC address setting")
Cc: stable@dpdk.org

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
---
v2:
* fix checkpatch warning (long line)
* fix commit subject
* add Fixes line
* CC to stable
---
 drivers/net/i40e/i40e_ethdev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c
index 285d92b..055b9e8 100644
--- a/drivers/net/i40e/i40e_ethdev.c
+++ b/drivers/net/i40e/i40e_ethdev.c
@@ -10795,8 +10795,8 @@ 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

  parent reply	other threads:[~2018-01-11 10:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-10 22:40 [dpdk-dev] [PATCH] i40e: " Igor Ryzhov
2018-01-11  8:12 ` Xing, Beilei
2018-01-11 10:07 ` Igor Ryzhov [this message]
2018-01-12  2:22   ` [dpdk-dev] [PATCH v2] net/i40e: " Xing, Beilei
2018-01-15  8:32     ` Igor Ryzhov
2018-01-15  8:32   ` [dpdk-dev] [PATCH v3] " Igor Ryzhov
2018-01-15 10:18     ` Xing, Beilei
2018-01-15 16:03       ` Zhang, Helin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1515665247-14772-1-git-send-email-iryzhov@nfware.com \
    --to=iryzhov@nfware.com \
    --cc=beilei.xing@intel.com \
    --cc=dev@dpdk.org \
    --cc=stable@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).