Changeset e63d80d


Ignore:
Timestamp:
09/29/15 10:19:59 (6 years ago)
Author:
Shane Alcock <salcock@…>
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:
d391ce0
Parents:
02cbc14
Message:

Add bucket data structure for keeping track of packet buffers

A bucket can contain anywhere from 1 to N packets and will point to a
buffer owned by libtrace. Libtrace can signal that it is finished with an
individual packet and when all packets associated with the buffer are
finished, the buffer will be freed automatically.

This should make buffer management easier for formats like bpf and RT where
multiple packets can be read at once and will allow us to retain zero-copy
behaviour (aside from the initial read) in a parallel libtrace program.

Location:
lib
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • lib/Makefile.am

    r0f6bc3f re63d80d  
    55        data-struct/vector.h data-struct/message_queue.h \
    66        data-struct/deque.h data-struct/linked_list.h \
    7         data-struct/sliding_window.h hash_toeplitz.h
     7        data-struct/sliding_window.h hash_toeplitz.h \
     8        data-struct/buckets.h
    89
    910AM_CFLAGS=@LIBCFLAGS@ @CFLAG_VISIBILITY@ -pthread
     
    6768                data-struct/sliding_window.c data-struct/object_cache.c \
    6869                data-struct/linked_list.c hash_toeplitz.c combiner_ordered.c \
     70                data-struct/buckets.c \
    6971                combiner_sorted.c combiner_unordered.c \
    7072                pthread_spinlock.c pthread_spinlock.h
Note: See TracChangeset for help on using the changeset viewer.