Changeset 7ff881a


Ignore:
Timestamp:
12/05/17 17:01:38 (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:
b3199cf
Parents:
d83ba86a
Message:

Add dpdkndag to the erf_get_padding() fast path.

Also make erf_get_padding() an inline function to try and
reduce some function call overhead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_erf.c

    r0317e3c r7ff881a  
    124124 * so that the IP header is aligned on a 32 bit boundary.
    125125 */
    126 static int erf_get_padding(const libtrace_packet_t *packet)
     126static inline int erf_get_padding(const libtrace_packet_t *packet)
    127127{
    128128        if (packet->trace->format->type==TRACE_FORMAT_ERF ||
    129129                        packet->trace->format->type == TRACE_FORMAT_NDAG ||
    130                         packet->trace->format->type == TRACE_FORMAT_RAWERF) {
     130                        packet->trace->format->type == TRACE_FORMAT_RAWERF ||
     131                        packet->trace->format->type == TRACE_FORMAT_DPDK_NDAG) {
    131132                dag_record_t *erfptr = (dag_record_t *)packet->header;
    132133                switch((erfptr->type & 0x7f)) {
Note: See TracChangeset for help on using the changeset viewer.