DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] rx_eth_tx_burst not work in slave app.
@ 2014-09-19  9:12 zengxg14
  0 siblings, 0 replies; only message in thread
From: zengxg14 @ 2014-09-19  9:12 UTC (permalink / raw)
  To: dev

Hi all.

I wrote a program to recv and send pkt at the same port.
First  init the port then use below code to receive pkts and send pkts. It works OK.

Then I try the multi-process. I init the port in master app,  and run the recv and send in slave spp.
In this mode rx_eth_tx_burst() always return 0.

while ( 1 ) {
            int nb_rx, t;
            int tmp;
            nb_rx = rte_eth_rx_burst(1, 0, pkt_mbuf, BURST_COUNT);
            if (nb_rx == 0) {
            t = 0;
            while (t < nb_rx) {
                    tmp = rte_eth_tx_burst(1, 0, &pkt_mbuf[t], nb_rx - t);  
                    t += tmp;

What I found is: 
In single-process mode, the tx_pkt_burst is set to ixgbe_xmit_pkts_vec.
In multi-process mode, after the master app is up, it shows tx_pkt_burst is  ixgbe_xmit_pkts_vec.
But when the slave app is runing,   "perf top" shows ixgbe_xmit_pkts is runing,   not the ixgbe_xmit_pkts_vec.

How can I make the slave app still call the ixgbe_xmit_pkts_vec?

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-09-19  9:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-19  9:12 [dpdk-dev] rx_eth_tx_burst not work in slave app zengxg14

DPDK patches and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ https://inbox.dpdk.org/dev \
	public-inbox-index dev

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git