From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v2 12/32] net/i40e: set VF MAC from PF support Date: Wed, 7 Dec 2016 14:29:51 +0000 Message-ID: References: <1480637533-37425-1-git-send-email-wenzhuo.lu@intel.com> <1481081535-37448-1-git-send-email-wenzhuo.lu@intel.com> <1481081535-37448-13-git-send-email-wenzhuo.lu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit To: Wenzhuo Lu , dev@dpdk.org Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 07DAF2C60 for ; Wed, 7 Dec 2016 15:29:54 +0100 (CET) In-Reply-To: <1481081535-37448-13-git-send-email-wenzhuo.lu@intel.com> 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 12/7/2016 3:31 AM, Wenzhuo Lu wrote: > Support setting VF MAC address from PF. > User can call the API on PF to set a specific > VF's MAC address. > > This will reset the VF. > > Signed-off-by: Ferruh Yigit > --- <...> > > +/** > + * Set the VF MAC address. > + * > + * This will reset the vf. It may be good if I add a comment that this also will remove all existing mac filters. Same to commit log perhaps. > + * > + * @param port > + * The port identifier of the Ethernet device. > + * @param vf_id > + * VF id. > + * @param mac_addr > + * VF MAC address. > + * @return > + * - (0) if successful. > + * - (-ENODEV) if *port* invalid. > + * - (-EINVAL) if *vf* or *mac_addr* is invalid. > + */ > +int rte_pmd_i40e_set_vf_mac_addr(uint8_t port, uint16_t vf_id, > + struct ether_addr *mac_addr); > + <...>