From b4f42173a54a9304486cca74ba72d620680e13b1 Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Mon, 15 Jan 2018 11:32:18 +0300 Subject: [PATCH] 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 --- 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 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 -- 2.20.1