Changeset 47321fd


Ignore:
Timestamp:
02/09/15 14:21:06 (6 years ago)
Author:
Richard Sanger <rsangerarj@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
83695bf, a194aaf, b585975
Parents:
4bdc4c2
Message:

DPDK now returns upon libtrace_halt

I think this might be driver specific, some DPDK drivers
seem to loop in rte_rte_rx_burst until at least one packet is returned.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_dpdk.c

    r4bdc4c2 r47321fd  
    12781278        /* Poll for a single packet */
    12791279        nb_rx = rte_eth_rx_burst(FORMAT(libtrace)->port,
    1280                             FORMAT(libtrace)->queue_id, pkts_burst, 1);       
     1280                            FORMAT(libtrace)->queue_id, pkts_burst, 1);
    12811281        if (nb_rx > 0) { /* Got a packet - otherwise we keep spining */
    12821282            return dpdk_ready_pkt(libtrace, packet, pkts_burst[0]);
     1283        }
     1284        if (libtrace_halt) {
     1285            return 0;
    12831286        }
    12841287    }
Note: See TracChangeset for help on using the changeset viewer.