From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-x236.google.com (mail-wg0-x236.google.com [IPv6:2a00:1450:400c:c00::236]) by dpdk.org (Postfix) with ESMTP id 0AE1B68F1 for ; Wed, 12 Jun 2013 16:54:19 +0200 (CEST) Received: by mail-wg0-f54.google.com with SMTP id n11so612138wgh.33 for ; Wed, 12 Jun 2013 07:54:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=xYBzru/cNoBBvl7NTRKWb0Nt8srOi38DCMxFU2iBNR0=; b=hYB4C/xYGPeejJ1D1LucmVHgQdBmQJtaKUMObCy8DfJfMTr9vGkSpmSwB07b4Ew8Mo sL65pZaZTxn9b59YspwuX2wBNdzPKuaFyTyCmZtK+1O1UQl4cXsY2Gf7sa6bQd/2aCzG +/ColLiXGifubWGEUr1J7m0zo8+3yvLg5hBdA7AAmQdr93hAG5AGCnEdFuEPoaPUBm1T Uaz/Dp/8Ilj2Y1ZDUqb3UTBNsEcyco+OCzZNS1LM3Xj3SUZhBrSmc61R7mejNxD57Oz6 SwGKlPsWE02tYfK+rYbFrvKBcM+XGZfttQOic+fIoyx8oHaZkd/2Wk0Qq4tgDWPLqIkc 9DBw== X-Received: by 10.180.107.163 with SMTP id hd3mr4688017wib.8.1371048869856; Wed, 12 Jun 2013 07:54:29 -0700 (PDT) Received: from [10.16.0.195] (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id dj7sm3930620wib.6.2013.06.12.07.54.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Jun 2013 07:54:29 -0700 (PDT) Message-ID: <51B88BA7.9080605@6wind.com> Date: Wed, 12 Jun 2013 16:54:31 +0200 From: Olivier MATZ User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.6esrpre) Gecko/20120817 Icedove/10.0.6 MIME-Version: 1.0 To: Antti Kantee References: <1371023487-23617-1-git-send-email-thomas.monjalon@6wind.com> <51B87027.40703@cs.hut.fi> <51B87065.2020600@iki.fi> In-Reply-To: <51B87065.2020600@iki.fi> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQlbnWIOCMiX/gNvRKdmCF5NayBQ2HYN01UjTecMGzWqR4MVmLrWK6C44nJ1WPTIPy1NcBIw Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] eal: add support for shared object drivers 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: Wed, 12 Jun 2013 14:54:20 -0000 Hi Antti, > > For instance, testpmd -d librte_pmd_xxx.so can be used to enable xxx > driver > > support on testpmd without any recompilation of testpmd. > > What's the use case? Load any other pmd driver dynamically (ex: mellanox driver) > Unless I'm missing something, testpmd still needs > an explicit rte_pmd_foo_init() call. It's of course not difficult to > sprinkle some __attribute__((constructor))'s into the pmd's Yes, you need to do it in the pmd's constructor. Olivier