From: Igor Ryzhov <iryzhov@nfware.com>
To: dev@dpdk.org
Cc: beilei.xing@intel.com, stable@dpdk.org
Subject: [dpdk-stable] [PATCH v3] net/i40e: fix flag sent to mac_address_write
Date: Mon, 15 Jan 2018 11:32:18 +0300 [thread overview]
Message-ID: <1516005138-29551-1-git-send-email-iryzhov@nfware.com> (raw)
In-Reply-To: <1515665247-14772-1-git-send-email-iryzhov@nfware.com>
Current flag is in wrong byte order.
Use defined macro as it is done in Linux driver.
Fixes: e18e01e92c29 ("i40e: support default MAC address setting")
Cc: stable@dpdk.org
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
---
v3:
* fix commit message
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
next prev parent reply other threads:[~2018-01-15 8:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1515624018-12555-1-git-send-email-iryzhov@nfware.com>
2018-01-11 10:07 ` [dpdk-stable] [PATCH v2] " Igor Ryzhov
2018-01-12 2:22 ` Xing, Beilei
2018-01-15 8:32 ` Igor Ryzhov
2018-01-15 8:32 ` Igor Ryzhov [this message]
2018-01-15 10:18 ` [dpdk-stable] [dpdk-dev] [PATCH v3] " 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=1516005138-29551-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).