From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f52.google.com (mail-lf0-f52.google.com [209.85.215.52]) by dpdk.org (Postfix) with ESMTP id 0D9444CE4 for ; Sun, 4 Sep 2016 09:45:12 +0200 (CEST) Received: by mail-lf0-f52.google.com with SMTP id g62so108635769lfe.3 for ; Sun, 04 Sep 2016 00:45:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=rznw4evEmNP4Sn62H49YU896HAZ6RGTra9zlLxEYFbI=; b=hK5yn80lyte4ocEkS6eMTSMcLuNXSPJ2D1D9yxvXjfzxek4NK64bJmcP5gocTrjsEH uQqg8LW8uFF7bKkc77O9bxyLgqBF0ulfQAx2fCT8SXaIFgu3PmmXH+vTX2pTUAOFMBHm LPc36KP3TZIJbvMEw2E8mBmP8VMWJ0maLSAJa8JkdKd6e7O9lKYpjewadwJDNE7hjoH3 i98z4YOwqklVe9wPSWFDIMmvfTPF8M9mbx0d9YnbUvwc+gauT+r6m3xnEx+UtKkNz5cm SaD+cnhviKXsfsEYmg8S4uSGs5qAmIfazvuDw0RLplf4A9pRO6MZP4fT4qtIqNiTKsSR 48ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=rznw4evEmNP4Sn62H49YU896HAZ6RGTra9zlLxEYFbI=; b=TS8mWCvfJnYiqjM/ASyVWYWbHtBCOZ3/8JmJOaydx9Ohfj2qeRcXnmeGJzMX/5zn2I osM7uovoQMoe6A8c4NdhVLpeuZOzJMvxxblYXs4B7Lv5WSRbAC0+IcgNXih9eHab20eQ ZZR1WL1jupTmrKu9RzVMU/SfhM+bjS/iFH1/mhZpXfgmO+pfxJj+sgxVxFKQBW314gvH OUrm2yUcTvJTWifFdvjZFj9473Fx/8YJZlYbRvSgj0BVws9tUI9f9rp9F5XhvwrfVv5f w9wS6ZBJqx2nxHNYsx5qyqtnbM0gk6isBJe24RRy7Ei4ZRLl+Y5qIcDnNQmcFSXqHElU QBhQ== X-Gm-Message-State: AE9vXwNqwpk9mtgYvLsL5331hyf4YmDtRbIqCnv44z/keUj7Yw8MJDTLwMECMddF1SlVFg== X-Received: by 10.25.207.14 with SMTP id f14mr7341868lfg.231.1472975111280; Sun, 04 Sep 2016 00:45:11 -0700 (PDT) Received: from [188.122.24.174] (host-188-122-24-174.finemedia.pl. [188.122.24.174]) by smtp.gmail.com with ESMTPSA id e1sm919244lfe.46.2016.09.04.00.45.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Sep 2016 00:45:10 -0700 (PDT) To: Eli Britstein , "dev@dpdk.org" References: From: faust1002 Message-ID: <3df8916e-6ebc-a330-821b-57a1c77305ff@gmail.com> Date: Sun, 4 Sep 2016 09:45:09 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] Loading external PMD 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: Sun, 04 Sep 2016 07:45:12 -0000 Hello, Well, I see another problem here. I do not use rte_eth_driver_register function at all, because my device is pure virtual. When I was writting my own PMD, I used pcap PMD and null PMD as a starting point. Best regards On 04.09.2016 09:15, Eli Britstein wrote: > Hi > > In your PMD, you should mark your init function as constructor, in which you should register your PMD as a DPDK driver. > You can look at Intel's "memnic" example (though not maintained, and not being compiled with recent versions, you can take it as a reference). > > The function I mean from it: > > /* shared object initializer */ > void __attribute__((constructor)) > rte_memnic_pmd_init(void) > { > rte_eth_driver_register(&rte_memnic_pmd); > } > > Eli > >> -----Original Message----- >> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of faust1002 >> Sent: Saturday, 03 September, 2016 1:21 PM >> To: dev@dpdk.org >> Subject: [dpdk-dev] Loading external PMD >> >> Hello, >> I want to write my own PMD for testing and debugging purposes. I compiled >> it as shared library and I was going to load it using "-d" >> option. Unfortunately, it didn't work. >> I walked through DPDK source code I found out that "-d" options does hardly >> anything (please correct me if I am wrong). Could you explain me what was >> initial purpose of "-d" option? >> If the option is obsolete / not implemented / whatever, this information >> should be placed in documentation. Current description is IHMO misleading. >> I wonder if there is any other way of using my own PMD expect linking binary >> with it. >> Best regards > ------------------------------------------------------------------------------------------------------------------------------------------------- > This email and any files transmitted and/or attachments with it are confidential and proprietary information of > Toga Networks Ltd., and intended solely for the use of the individual or entity to whom they are addressed. > If you have received this email in error please notify the system manager. This message contains confidential > information of Toga Networks Ltd., and is intended only for the individual named. If you are not the named > addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately > by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not > the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on > the contents of this information is strictly prohibited. > ------------------------------------------------------------------------------------------------------------------------------------------------ >