From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id 19E0768BF for ; Fri, 11 Apr 2014 12:48:09 +0200 (CEST) Received: from hmsreliant.think-freely.org ([2001:470:8:a08:7aac:c0ff:fec2:933b] helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1WYZ1W-0007eo-Fr; Fri, 11 Apr 2014 06:49:45 -0400 Date: Fri, 11 Apr 2014 06:49:29 -0400 From: Neil Horman To: Olivier Matz Message-ID: <20140411104929.GA911@hmsreliant.think-freely.org> References: <1460632.jOzC6OEr8u@xps13> <1397201813-26627-1-git-send-email-olivier.matz@6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1397201813-26627-1-git-send-email-olivier.matz@6wind.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Score: -2.9 (--) X-Spam-Status: No Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v2 07/11 1/2] vdev: new registration API X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Apr 2014 10:48:09 -0000 On Fri, Apr 11, 2014 at 09:36:52AM +0200, Olivier Matz wrote: > Instead of having a list of virtual device drivers in EAL code, add an > API to register drivers. Thanks to this new registration method, we can > remove the references to pmd_ring, pmd_pcap and pmd_xenvirt in EAL code. > This also enables the ability to register a virtual device driver as > a shared library. > > The registration is done in an init function flaged with > __attribute__((constructor)). The new convention is to name this > function rte_pmd_xyz_init(). The per-device init function is renamed > rte_pmd_xyz_devinit(). > > By the way the internal PMDs are now also .so/standalone ready. Let's do > it later on. It will be required to ease maintenance. > > Signed-off-by: Olivier Matz I just posted a patch to separate pmd linkage from the applications yesterday, which will work with the existing API. See my series on the introduction of the PMD_INIT and PMD_INIT_NONPCI macros. Neil