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 80A2C2A5E for ; Tue, 21 Feb 2017 13:25:21 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Feb 2017 04:25:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,189,1484035200"; d="scan'208";a="1113596786" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.137]) ([10.237.220.137]) by fmsmga001.fm.intel.com with ESMTP; 21 Feb 2017 04:25:19 -0800 To: Jan Blunck , dev@dpdk.org References: <1487152929-23627-1-git-send-email-jblunck@infradead.org> <1487600262-14382-8-git-send-email-jblunck@infradead.org> Cc: david.marchand@6wind.com, shreyansh.jain@nxp.com From: Ferruh Yigit Message-ID: Date: Tue, 21 Feb 2017 12:25:18 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <1487600262-14382-8-git-send-email-jblunck@infradead.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v2 7/8] eal: add virtual device name helper function 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, 21 Feb 2017 12:25:21 -0000 On 2/20/2017 2:17 PM, Jan Blunck wrote: > This adds the rte_vdev_device_name() helper function to retrieve the > rte_vdev_device name which makes moving the name of the low-level > device into struct rte_device easier in the future. > > Signed-off-by: Jan Blunck <...> > +const char * > +rte_vdev_device_name(const struct rte_vdev_device *dev) > +{ > + return dev->device.devargs->virt.drv_name; > +} Can this function be static?