From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: default unicast mac address - was: add multicast address filtering Date: Fri, 29 May 2015 08:18:57 -0700 Message-ID: <20150529081857.383fe0c3@urahara> References: <1432825523-19006-1-git-send-email-ivan.boule@6wind.com> <1432825523-19006-2-git-send-email-ivan.boule@6wind.com> <20150528092256.292e566c@urahara> <3149965.63Z4QvtXnx@xps13> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Thomas Monjalon Return-path: Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by dpdk.org (Postfix) with ESMTP id 75FBD58E4 for ; Fri, 29 May 2015 17:18:58 +0200 (CEST) Received: by padbw4 with SMTP id bw4so62786190pad.0 for ; Fri, 29 May 2015 08:18:57 -0700 (PDT) In-Reply-To: <3149965.63Z4QvtXnx@xps13> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Fri, 29 May 2015 15:12:28 +0200 Thomas Monjalon wrote: > Hi Stephen, > > Looking at mac address management, you and Changchun added an entry in > driver ops to be able to change the default mac address with virtio: > http://dpdk.org/browse/dpdk/commit/?id=5186fb1f37fe986 > Other ops functions (mac_addr_add/remove) manage the secondary unicast > mac addresses and have a wrapper function in the API: > http://dpdk.org/doc/api/rte__ethdev_8h.html#aa2b81750086f5f9e55cf65e5cf9f2c58 > > It seems now that the review of the above patch was too weak and I'd like > these issues to be fixed: > - mac_addr_set must be wrapped by rte_eth_dev_mac_addr_set() > - eth_mac_addr_set_t must be fixed to explicitly state that it > replaces the default address Sure, also some other drivers need mac_addr_set hook.