From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v2] net/i40e: new API to add VF MAC address from PF Date: Thu, 17 Aug 2017 14:05:28 +0100 Message-ID: References: <1500929487-72896-1-git-send-email-wenzhuo.lu@intel.com> <1500991766-4430-1-git-send-email-wenzhuo.lu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: jingjing.wu@intel.com, beilei.xing@intel.com, Stephen Hurd , Ajit Khaparde To: Wenzhuo Lu , dev@dpdk.org Return-path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 15D0A2BF3 for ; Thu, 17 Aug 2017 15:05:31 +0200 (CEST) In-Reply-To: <1500991766-4430-1-git-send-email-wenzhuo.lu@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 vf " 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 <...>