Changeset a6f2d1d for lib/format_dpdk.c


Ignore:
Timestamp:
12/14/17 11:05:07 (3 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
cachetimestamps, develop, dpdk-ndag, etsilive, master, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance
Children:
e54bd5f
Parents:
8efa986
Message:

Fix bug where per_stream is not initialised when doing dpdk output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_dpdk.c

    r8efa986 ra6f2d1d  
    616616static int dpdk_init_output(libtrace_out_t *libtrace)
    617617{
     618        dpdk_per_stream_t stream = DPDK_EMPTY_STREAM;
    618619        char err[500];
    619620        err[0] = 0;
     
    637638        FORMAT(libtrace)->burst_size = 0;
    638639        FORMAT(libtrace)->burst_offset = 0;
     640
     641        FORMAT(libtrace)->per_stream = libtrace_list_init(sizeof(struct dpdk_per_stream_t));
     642        libtrace_list_push_back(FORMAT(libtrace)->per_stream, &stream);
    639643
    640644        if (dpdk_init_environment(libtrace->uridata, FORMAT(libtrace), err, sizeof(err)) != 0) {
Note: See TracChangeset for help on using the changeset viewer.