From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP; 17 Aug 2017 06:05:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,387,1498546800"; d="scan'208";a="120036784" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.57]) ([10.237.220.57]) by orsmga004.jf.intel.com with ESMTP; 17 Aug 2017 06:05:29 -0700 To: Wenzhuo Lu , dev@dpdk.org Cc: jingjing.wu@intel.com, beilei.xing@intel.com, Stephen Hurd , Ajit Khaparde References: <1500929487-72896-1-git-send-email-wenzhuo.lu@intel.com> <1500991766-4430-1-git-send-email-wenzhuo.lu@intel.com> From: Ferruh Yigit Message-ID: Date: Thu, 17 Aug 2017 14:05:28 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <1500991766-4430-1-git-send-email-wenzhuo.lu@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [PATCH v2] net/i40e: new API to add VF MAC address from PF X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Aug 2017 13:05:32 -0000 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 <...>