Re: [PATCH v2] net/i40e: new API to add VF MAC address from PF
From: Ferruh Yigit <hidden>
Date: 2017-08-17 13:05:31
On 7/25/2017 3:09 PM, Wenzhuo Lu wrote:
Currently, on i40e the parameter 'pool' of API rte_eth_dev_mac_addr_add means the VMDq pool, not VF.
The argument "pool" in rte_eth_dev_mac_addr_add() IS VMDq pool. This is not just for i40e, this is by API definition.
So, it's wrong to use it to set the VF MAC address.
Agreed, it seems testpmd function cmd_vf_mac_addr_parsed() implemented wrong.
As this API is also used by the VMDq example, ideally we need a parameter to tell the pool is VMDq or VF. But it's hard to change it because of the ABI change concern.
I think we shouldn't NOT update rte_eth_dev_mac_addr_add() API, it is not wrong. But should fix testpmd ""mac_addr add port <port_id> vf <vf_id> <mac_addr>" command. Can you please update this patch as two patches: 1- i40e rte_pmd_i40e_add_vf_mac_addr() API 2- Fix testpmd function, instead of inserting new i40e API replace it with wrong rte_eth_dev_mac_addr_add() call. And I guess bnxt driver also has API to add VF MAC, can you add that one too?
Now the solution is to provide a new API, users can call it to add VF MAC address from PF on i40e. Signed-off-by: Wenzhuo Lu <redacted>
<...>