From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 1A10B4C91 for ; Tue, 11 Sep 2018 13:36:05 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Sep 2018 04:36:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,360,1531810800"; d="scan'208";a="69974863" Received: from fyigit-mobl.ger.corp.intel.com (HELO [10.237.221.56]) ([10.237.221.56]) by fmsmga008.fm.intel.com with ESMTP; 11 Sep 2018 04:36:04 -0700 To: Cian Ferriter Cc: dev@dpdk.org References: <1536594737-4341-1-git-send-email-cian.ferriter@intel.com> From: Ferruh Yigit Openpgp: preference=signencrypt Message-ID: <073cb78e-0c5b-bdac-2beb-0c7b6af37a39@intel.com> Date: Tue, 11 Sep 2018 12:36:03 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1536594737-4341-1-git-send-email-cian.ferriter@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v2] net/pcap: Generate unique MAC addresses for interfaces 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: Tue, 11 Sep 2018 11:36:06 -0000 On 9/10/2018 4:52 PM, Cian Ferriter wrote: > The MAC addresses are generated in a similar manner as in the TAP PMD, > where the address is based on the number of PCAP ports created. > > This is useful for the purposes of debugging DPDK applications using > PCAP devices instead of real devices where multiple devices should still > have unique MAC addresses. This method was chosen over randomly > assigning MAC addresses to make the creation of pcaps, specifically > matching the destination ethernet address field to an interface, easier. > > Signed-off-by: Cian Ferriter Acked-by: Ferruh Yigit