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) {
                    rte_delay_us(20);
                    continue;
            }
            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?
 
zengxg

^ 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

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