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 1F0CB1B82D for ; Wed, 31 Jan 2018 20:31:48 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Jan 2018 11:31:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,441,1511856000"; d="scan'208";a="23934684" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.252.19.13]) ([10.252.19.13]) by FMSMGA003.fm.intel.com with ESMTP; 31 Jan 2018 11:31:46 -0800 To: Radu Nicolau , dev@dpdk.org Cc: thomas@monjalon.net, declan.doherty@intel.com References: <1517235962-25128-1-git-send-email-radu.nicolau@intel.com> From: Ferruh Yigit Message-ID: Date: Wed, 31 Jan 2018 19:31:46 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <1517235962-25128-1-git-send-email-radu.nicolau@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] test/bonding: assign non-zero MAC to null devices 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: Wed, 31 Jan 2018 19:31:49 -0000 On 1/29/2018 2:26 PM, Radu Nicolau wrote: Hi Radu, Can you please describe why this is needed? > Signed-off-by: Radu Nicolau > --- > test/test/test_link_bonding_rssconf.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/test/test/test_link_bonding_rssconf.c b/test/test/test_link_bonding_rssconf.c > index cf9c4b0..518c4c1 100644 > --- a/test/test/test_link_bonding_rssconf.c > +++ b/test/test/test_link_bonding_rssconf.c > @@ -505,6 +505,7 @@ test_setup(void) > int port_id; > char name[256]; > struct slave_conf *port; > + struct ether_addr mac_addr = {0}; > > if (test_params.mbuf_pool == NULL) { > > @@ -536,6 +537,10 @@ test_setup(void) > TEST_ASSERT_SUCCESS(retval, "Failed to configure virtual ethdev %s\n", > name); > > + /* assign a non-zero MAC */ > + mac_addr.addr_bytes[5] = 0x10 + port->port_id; > + rte_eth_dev_default_mac_addr_set(port->port_id, &mac_addr); > + > rte_eth_dev_info_get(port->port_id, &port->dev_info); > } > >