DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] Question on examples/multi_process app
@ 2016-03-22 20:03 Harish Patil
  2016-03-22 21:38 ` Bruce Richardson
  0 siblings, 1 reply; 11+ messages in thread
From: Harish Patil @ 2016-03-22 20:03 UTC (permalink / raw)
  To: dev

Hi,
I have a question regarding symmetric_mp and mp_server applications under
examples/multi_process. In those apps, rte_eth_promiscuous_enable() is
called before rte_eth_dev_start(). Is this the correct way to initialize
the port/device? As per the description in
http://dpdk.org/doc/api/rte__ethdev_8h.html:

"The functions exported by the application Ethernet API to setup a device
designated by its port identifier must be invoked in the following order:

* rte_eth_dev_configure()
* rte_eth_tx_queue_setup()
* rte_eth_rx_queue_setup()
* rte_eth_dev_start()

Then, the network application can invoke, in any order, the functions
exported by the Ethernet API to get the MAC address of a given device, to
get the speed and the status of a device physical link, to
receive/transmit [burst of] packets, and so on.”

So should I consider this as an application issue or whether the PMD is
expected to handle it? If PMD is to handle it, then should the PMD be:

1) Rejecting the Promisc config? OR
2) Cache the config and apply when dev_start() is called at later point?

Thanks,
Harish




^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-03-30 18:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-22 20:03 [dpdk-dev] Question on examples/multi_process app Harish Patil
2016-03-22 21:38 ` Bruce Richardson
2016-03-23 11:09   ` Ananyev, Konstantin
2016-03-23 11:45     ` Bruce Richardson
2016-03-23 11:48       ` Ananyev, Konstantin
2016-03-24  6:52         ` Harish Patil
2016-03-24 11:18           ` Ananyev, Konstantin
2016-03-24 18:36             ` Harish Patil
2016-03-25 14:18               ` Ananyev, Konstantin
2016-03-29 22:58                 ` Harish Patil
2016-03-30 18:53                   ` Harish Patil

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).