From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier MATZ Subject: Re: [PATCH] eal: add support for shared object drivers Date: Wed, 12 Jun 2013 16:54:31 +0200 Message-ID: <51B88BA7.9080605@6wind.com> References: <1371023487-23617-1-git-send-email-thomas.monjalon@6wind.com> <51B87027.40703@cs.hut.fi> <51B87065.2020600@iki.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: dev-VfR2kkLFssw@public.gmane.org To: Antti Kantee Return-path: In-Reply-To: <51B87065.2020600-X3B1VOXEql0@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 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