31 #include <rte_config.h> 32 #include <rte_ether.h> 34 #define BUFFER_SIZE 2048 37 #ifdef FLEXNIC_TRACING 38 # include <tas_trace.h> 39 # define FLEXNIC_TRACE_RX 40 # define FLEXNIC_TRACE_TX 41 # define FLEXNIC_TRACE_DMA 42 # define FLEXNIC_TRACE_QMAN 43 # define FLEXNIC_TRACE_LEN (1024 * 1024 * 32) 44 int trace_thread_init(uint16_t
id);
45 int trace_event(uint16_t type, uint16_t length,
const void *buf);
46 int trace_event2(uint16_t type, uint16_t len_1,
const void *buf_1,
47 uint16_t len_2,
const void *buf_2);
52 extern unsigned fp_cores_max;
53 extern volatile unsigned fp_cores_cur;
54 extern volatile unsigned fp_scale_to;
60 #define QMAN_SET_RATE (1 << 0) 61 #define QMAN_SET_MAXCHUNK (1 << 1) 62 #define QMAN_SET_AVAIL (1 << 3) 63 #define QMAN_ADD_AVAIL (1 << 4) 66 uint32_t qman_timestamp(uint64_t tsc);
67 int qman_poll(
struct qman_thread *t,
unsigned num,
unsigned *q_ids,
69 int qman_set(
struct qman_thread *t, uint32_t
id, uint32_t rate, uint32_t avail,
70 uint16_t max_chunk, uint8_t flags);
71 uint32_t qman_next_ts(
struct qman_thread *t, uint32_t cur_ts);
73 void *util_create_shmsiszed(
const char *name,
size_t size,
void *addr);