net/i40e: fix flag for MAC address write
authorIgor Ryzhov <iryzhov@nfware.com>
Mon, 15 Jan 2018 08:32:18 +0000 (11:32 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Sun, 21 Jan 2018 14:51:52 +0000 (15:51 +0100)
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 <iryzhov@nfware.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/i40e/i40e_ethdev.c

index 46cd3fa..a0887d0 100644 (file)
@@ -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