From: Igor Ryzhov Date: Mon, 15 Jan 2018 08:32:18 +0000 (+0300) Subject: net/i40e: fix flag for MAC address write X-Git-Tag: spdx-start~80 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=b4f42173a54a9304486cca74ba72d620680e13b1;p=dpdk.git net/i40e: fix flag for MAC address write Current flag is in wrong byte order for i40e_aq_mac_address_write, and just uses the well defined macro instead. Fixes: e18e01e92c29 ("i40e: support default MAC address setting") Cc: stable@dpdk.org Signed-off-by: Igor Ryzhov Acked-by: Beilei Xing --- diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 46cd3fadff..a0887d0cdb 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -11005,8 +11005,8 @@ static void i40e_set_default_mac_addr(struct rte_eth_dev *dev, } memcpy(&pf->dev_addr, mac_addr, ETH_ADDR_LEN); - /* 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