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: e18e01e92c ("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>
This commit is contained in:
Igor Ryzhov 2018-01-15 11:32:18 +03:00 committed by Ferruh Yigit
parent 380818b318
commit b4f42173a5

View 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