From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by dpdk.org (Postfix) with ESMTP id 5C66D68CF for ; Fri, 11 Apr 2014 16:29:51 +0200 (CEST) Received: by mail-wi0-f180.google.com with SMTP id q5so1111520wiv.13 for ; Fri, 11 Apr 2014 07:31:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=zsVJBfzmHSlAb4yXSC0G6C70aUgX7aqQPhT76lH52oQ=; b=S7l/fHLwr7E70IRS78mpnXzIiSpqF6oBvkWb0K25ZHiFxnczJcloHLGgaL6mcGb9D6 46rfx7xihqZIYJN+tvHhV8gtDzzVrAB/yXZFRG7shdXOVLNVT8Ny8WBnLi0K330o1G6f mL0q4iqw0EJq47zhZcZAaBMomocPVX3JQxNVBH7tYjoFEmF76Qa309+GojpnF3sFNhSf 3DSd6UoIy8qIGOOYnnkki9wWal/DUQUGT3xhWVBtAzQv3RlCgW0j3fI2myZcQz8Y7ugb WMQGRYvMKMcwjJ7aAXY9RiHXHCjuLfeDrC78DqVC5D8GSjVBNWOoxXXbz8+c0CDIkECw yUWw== X-Gm-Message-State: ALoCoQk6vm+J5RTAzyl8+NUz5QLIi90glQbr2D50x6IpXeutn8IcrAox0t06rRwheiKVdDJ67o0v X-Received: by 10.180.76.244 with SMTP id n20mr3791547wiw.17.1397226688505; Fri, 11 Apr 2014 07:31:28 -0700 (PDT) Received: from xps13.localnet (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id hm5sm11539485wjc.17.2014.04.11.07.31.27 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Apr 2014 07:31:27 -0700 (PDT) From: Thomas Monjalon To: Olivier Matz Date: Fri, 11 Apr 2014 16:31:27 +0200 Message-ID: <1914752.42SHRlBSDZ@xps13> Organization: 6WIND User-Agent: KMail/4.12.3 (Linux/3.13.7-1-ARCH; KDE/4.12.3; x86_64; ; ) In-Reply-To: <1397201813-26627-1-git-send-email-olivier.matz@6wind.com> References: <1460632.jOzC6OEr8u@xps13> <1397201813-26627-1-git-send-email-olivier.matz@6wind.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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 14:29:51 -0000 2014-04-11 09:36, Olivier Matz: > 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 Acked-by: Thomas Monjalon Applied for version 1.6.0r2. Thank you -- Thomas