From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 98D211B65F for ; Fri, 10 Nov 2017 06:44:56 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Nov 2017 21:44:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,372,1505804400"; d="scan'208";a="1242365683" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga002.fm.intel.com with ESMTP; 09 Nov 2017 21:44:55 -0800 Received: from FMSMSX109.amr.corp.intel.com (10.18.116.9) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 9 Nov 2017 21:44:55 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx109.amr.corp.intel.com (10.18.116.9) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 9 Nov 2017 21:44:54 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.213]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.152]) with mapi id 14.03.0319.002; Fri, 10 Nov 2017 13:44:53 +0800 From: "Tan, Jianfeng" To: ? ? , dev CC: yuanhan.liu , "Xie, Huawei" Thread-Topic: The virtio device mac is empty in vhostuser type. Thread-Index: AQHTWQo3bCFMH6O52U6BVU/dlleQZaMNGjug Date: Fri, 10 Nov 2017 05:44:52 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] The virtio device mac is empty in vhostuser type. 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: Fri, 10 Nov 2017 05:44:57 -0000 Hi, > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of ? ? > Sent: Thursday, November 9, 2017 11:24 AM > To: dev > Cc: yuanhan.liu; Xie, Huawei > Subject: [dpdk-dev] The virtio device mac is empty in vhostuser type. >=20 > Hi, >=20 > When I attached a virtio device to ovs bridge in vhostuser type, the virt= ual > port does not have the mac address. > After checked the dpdk code, I found the 'mac' which is the member of > struct 'virtio_net' is empty. > It only been assigned in case VHOST_USER_SEND_RARP of function > 'vhost_user_msg_handler'. > But the comments said VHOST_USER_SEND_RARP would be handled during > VM migration. We can treat virtio and vhost as a back-to-back connected cable: virtio and= vhost (pmd) have their own mac. >=20 > Therefore I would like to ask when I launch the dpdk vhost-user program, > how could I get the virtio NIC MAC address? Usually, we do ARP learn on this vhost port to get the mac address of virti= o. Thanks, Jianfeng >=20 > Thanks > ________________________________ > Best Regards, > Hering > heringlinux@outlook.com