DPDK patches and discussions
 help / color / mirror / Atom feed
From: Neil Horman <nhorman@tuxdriver.com>
To: Malveeka Tewari <malveeka@gmail.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] rte_pmd_init_all() with DPDK 1.7.0
Date: Fri, 5 Dec 2014 14:49:46 -0500	[thread overview]
Message-ID: <20141205194946.GF29245@hmsreliant.think-freely.org> (raw)
In-Reply-To: <CAFpzwwMJxmjMjeRdPGss46TPejPD9aKOqNZrgf21tZrfrWL93w@mail.gmail.com>

On Fri, Dec 05, 2014 at 11:30:41AM -0800, Malveeka Tewari wrote:
> Hi all
> 
> I have a very basic DPDK app that runs in two modes: sender and sniffer.
> 
> In the sender mode, the app just reads data from a shared memory buffer and
> sends packets out on a port using rte_eth_tx_burst.
> In the sniffer mode, the app polls for incoming packets on a port using
> rte_eth_rx_burst and writes them to a shared memory buffer.
> 
> I was using DPDK-1.6.0 initially and everything worked fine. However, I
> recently upgraded to DPDK 1.7.0.For that, I had to comment out the
> rte_pmd_init_all() method for the app to compile successfully.
> Now, the sender mode still works fine, but in the sniffer mode, the app is
> not able to receive any packet.
> 
> Am I missing any step in moving from DPDK 1.6.0 to DPDK 1.7.0?
> Is there a way to debug why the app is not receiving packets with the DPDK
> 1.7.0 library?
> 

rte_pmd_init_all no longer exits, as the pmd are initialized via constructors
that run automatically.  The constructors which run are defined by the method
which you use to build and run DPDK.  If you are building as a static library,
every pmd which you compile should be automaticaly initalized if they are
physical device pmds, along with any devices you have created via the --vdev
command line option.  If you've build shared libraries, you need to do one of
two things:

1) Link the pmd with your appilcation (via the gcc/icc/clang -lrte_pmd_* option),
so that you get a DT_NEEDED entry in your binary and the pmd intalizes
automatically

or

2) Use the -d option on the command line to specify a pmd DSO to load via the
dlopen method.


Neil

      reply	other threads:[~2014-12-05 19:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-05 19:30 Malveeka Tewari
2014-12-05 19:49 ` Neil Horman [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141205194946.GF29245@hmsreliant.think-freely.org \
    --to=nhorman@tuxdriver.com \
    --cc=dev@dpdk.org \
    --cc=malveeka@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).