Searched refs:data (Results 1 - 25 of 484) sorted by relevance

1234567891011>>

/vpp/src/examples/vlib/
H A Delog_samples.c20 elog_four_int_sample (u32 * data) argument
28 u32 data[4]; member in struct:__anon42
31 ed->data[0] = data[0];
32 ed->data[1] = data[1];
33 ed->data[2] = data[2];
34 ed->data[3] = data[
38 elog_four_int_track_sample(u32 * data) argument
47 u32 data[4]; member in struct:__anon43
75 elog_one_datum_sample(u32 data) argument
[all...]
/vpp/src/vpp-api/client/
H A Dvppapiclient.h20 typedef void (*vac_callback_t)(unsigned char * data, int len);
25 int vac_read(char **data, int *l, unsigned short timeout);
26 int vac_write(char *data, int len);
/vpp/src/plugins/nat/lib/
H A Dnat_inlines.h22 u8 *data; local
30 data = (u8 *) (tcp + 1);
31 for (; opts_len > 0; opts_len -= opt_len, data += opt_len)
33 kind = data[0];
46 opt_len = data[1];
54 mss = *(u16 *) (data + 2);
61 clib_memcpy_fast (data + 2, &mss_value_net, 2);
/vpp/src/plugins/ioam/encap/
H A Dip6_ioam_e2e.h46 ioam_e2e_data_t *data = NULL; local
51 data = &ioam_e2e_main.e2e_data[index];
52 return &(data->seqno_data);
58 ioam_seqno_data *data = NULL; local
60 data = ioam_e2ec_get_seqno_data_from_flow_ctx(flow_ctx);
61 return data->seq_num;
H A Dip6_ioam_seqno.c34 * Only if we are encap node, then add PPC data.
45 ioam_seqno_data *data; local
51 data = ioam_e2ec_get_seqno_data_from_flow_ctx(opaque_index);
53 e2e->e2e_hdr.e2e_data = clib_host_to_net_u32(++data->seq_num);
68 ioam_seqno_data *data; local
70 data = ioam_e2ec_get_seqno_data_from_flow_ctx(opaque_index);
72 ioam_analyze_seqno(&data->seqno_rx,
H A Dip6_ioam_e2e.c48 ioam_e2e_config_handler (void *data, u8 disable) argument
50 int *analyse = data;
104 ioam_e2e_data_t *data; local
109 pool_get(ioam_e2e_main.e2e_data, data);
110 data->flow_ctx = ctx;
111 ioam_seqno_init_data(&data->seqno_data);
112 return ((u32) (data - ioam_e2e_main.e2e_data));
121 data = pool_elt_at_index(ioam_e2e_main.e2e_data, i);
122 if (data && (data
[all...]
/vpp/src/plugins/ioam/lib-e2e/
H A Dioam_seqno_lib.c54 ioam_seqno_init_data (ioam_seqno_data * data) argument
56 data->seq_num = 0;
57 ioam_seqno_init_rx_info (&data->seqno_rx);
62 ioam_seqno_init_rx_info (seqno_rx_info * data) argument
64 seqno_bitmap *bitmap = &data->bitmap;
71 data->dup_packets = 0;
72 data->lost_packets = 0;
73 data->reordered_packets = 0;
74 data->rx_packets = 0;
/vpp/src/vnet/tcp/
H A Dtcp_debug.h111 _(CC_INPUT, CC, 2, "ooo data delivered") \
155 u32 data[_size]; \
180 ed->data[0] = _tc->c_lcl_ip.ip4.as_u8[0]; \
181 ed->data[1] = _tc->c_lcl_ip.ip4.as_u8[1]; \
182 ed->data[2] = _tc->c_lcl_ip.ip4.as_u8[2]; \
183 ed->data[3] = _tc->c_lcl_ip.ip4.as_u8[3]; \
184 ed->data[4] = clib_net_to_host_u16(_tc->c_lcl_port); \
198 ed->data[0] = _tc->c_rmt_ip.ip4.as_u8[0]; \
199 ed->data[1] = _tc->c_rmt_ip.ip4.as_u8[1]; \
200 ed->data[
[all...]
H A Dtcp_packet.h23 _ (FIN) /**< No more data from sender. */ \
62 u32 seq_number; /**< Sequence number of the first data octet in this
65 * first data octet is ISN+1 */
73 u16 checksum; /**< Checksum of TCP pseudo header and data. */
74 u16 urgent_pointer; /**< Seq number of the byte after the urgent data. */
191 * @param to TCP options data structure to be populated
198 const u8 *data; local
204 data = (const u8 *) (th + 1);
210 for (; opts_len > 0; opts_len -= opt_len, data += opt_len)
212 kind = data[
308 tcp_options_write(u8 * data, tcp_options_t * opts) argument
[all...]
/vpp/extras/vom/vom/
H A Dstat_reader.cpp83 uint64_t** data; local
85 data = sde.get_stat_segment_simple_counter_data();
90 for (int k = 0; k < m_client.vec_len(data); k++) {
91 count.packets += data[k][i];
104 vlib_counter_t** data; local
106 data = sde.get_stat_segment_combined_counter_data();
111 for (int k = 0; k < m_client.vec_len(data); k++) {
112 count.packets += data[k][i].packets;
113 count.bytes += data[k][i].bytes;
H A Dl2_vtr_cmds.cpp34 (m_hw_item.data() == other.m_hw_item.data() && m_itf == other.m_itf) &&
45 payload.vtr_op = m_hw_item.data().value();
H A Dhw.hpp38 * A HW::item is data that is either to be written to or read from
40 * The item is a pair of the data written/read and the result of that
50 item(const T& data) argument
51 : item_data(data)
76 item(const T& data, rc_t rc) argument
77 : item_data(data)
107 * Return the data read/written
109 T& data() { return (item_data); } function in class:VOM::HW::item
112 * Const reference to the data
114 const T& data() cons function in class:VOM::HW::item
[all...]
H A Dgbp_route_domain_cmds.cpp35 return ((m_hw_item.data() == other.m_hw_item.data()) &&
47 payload.rd.rd_id = m_hw_item.data();
49 payload.rd.ip4_table_id = m_hw_item.data();
50 payload.rd.ip6_table_id = m_hw_item.data();
78 return (m_hw_item.data() == other.m_hw_item.data());
88 payload.rd_id = m_hw_item.data();
/vpp/extras/deprecated/vppinfra/
H A Dzvec.c61 /* Decode given compressed data. Return number of compressed data
97 zvec_encode (uword coding, uword data, uword * n_result_bits) argument
103 would break for data - 1 <= coding. */
104 ASSERT (data <= coding - 1);
111 explicit_end = ((data & (c - 1)) == data);
115 result = ((data << t) | t) << shift;
117 /* data bits */ (c == 0 ? BITS (uword) : min_log2 (c))
121 data
132 get_data(void *data, uword data_bytes, uword is_signed) argument
153 put_data(void *data, uword data_bytes, uword is_signed, uword x) argument
190 zvec_encode_inline(uword * zvec, uword * zvec_n_bits, uword coding, void *data, uword data_stride, uword n_data, uword data_bytes, uword is_signed) argument
252 zvec_decode_inline(uword * zvec, uword * zvec_n_bits, uword coding, void *data, uword data_stride, uword n_data, uword data_bytes, uword is_signed) argument
[all...]
H A Dtest_zvec.c67 uword coding, data, d[2], limit, n_zdata_bits[2]; local
77 for (data = 0; data <= limit; data++)
79 d[0] = zvec_encode (coding, data, &n_zdata_bits[0]);
85 ASSERT (data == d[1]);
/vpp/extras/libmemif/examples/icmp_responder-mt/
H A Dmain.c108 /* thread data specific for each thread */
217 evt.data.fd = fd;
238 evt.data.fd = fd;
270 memif_thread_data_t *data = (memif_thread_data_t *) ptr; local
271 memif_connection_t *c = &memif_connection[data->index];
275 data->rx_bufs = malloc (sizeof (memif_buffer_t) * MAX_MEMIF_BUFS);
276 data->tx_bufs = malloc (sizeof (memif_buffer_t) * MAX_MEMIF_BUFS);
277 data->rx_buf_num = 0;
278 data->tx_buf_num = 0;
280 data
373 memif_thread_data_t *data = (memif_thread_data_t *) ptr; local
[all...]
/vpp/src/vnet/adj/
H A Drewrite.h73 /* Number of bytes in rewrite data. */
90 u8 data[0]; member in struct:vnet_rewrite_header_t_
135 clib_memset (rw->data, 0xfe, max_size);
140 int max_size, void *data, int data_bytes)
147 clib_memcpy_fast (rw->data, data, data_bytes);
148 clib_memset (rw->data + data_bytes, 0xfe, max_size - data_bytes);
151 #define vnet_rewrite_set_data(rw,data,data_bytes) \
154 (data), \
161 return rw->data;
139 vnet_rewrite_set_data_internal(vnet_rewrite_header_t * rw, int max_size, void *data, int data_bytes) argument
[all...]
/vpp/src/plugins/unittest/
H A Dllist_test.c42 u32 data; member in struct:list_elt
100 e->data = 1;
124 e->data = i;
137 if (i != e->data)
138 LLIST_TEST (0, "incorrect element i = %u data = %u", i, e->data);
172 e->data = i;
185 if (i != e->data)
186 LLIST_TEST (0, "incorrect element i = %u data = %u", i, e->data);
[all...]
/vpp/src/vnet/ip/
H A Dip_checksum.c45 uword data = pointer_to_uword (_data); local
60 && (data % (2 * sizeof (t))) != 0) \
62 sum0 += * uword_to_pointer (data, t *); \
63 data += sizeof (t); \
68 if (PREDICT_TRUE ((data & 1) == 0))
77 ip_csum_t *d = uword_to_pointer (data, ip_csum_t *);
87 data = pointer_to_uword (d);
94 sum0 = ip_csum_with_carry (sum0, * uword_to_pointer (data, t *)); \
95 data += sizeof (t); \
H A Dip_packet.h153 ip_csum (void *data, u16 n_left) argument
164 sum = (n_left & 1) ? ((u8 *) data)[n_left - 1] << 8 : 0;
172 v1 = u16x16_load_unaligned (data);
173 v2 = u16x16_load_unaligned (data + 32);
184 data += 64;
189 v1 = u16x16_load_unaligned (data);
193 v1 = u16x16_byte_swap (u16x16_load_unaligned (data));
197 data += 32;
202 v1 = u16x16_load_unaligned (data);
219 sum += clib_net_to_host_u16 (*((u16 *) data
[all...]
H A Dicmp4.h51 icmp4_error_set_vnet_buffer (vlib_buffer_t * b, u8 type, u8 code, u32 data) argument
55 vnet_buffer (b)->ip.icmp.data = data;
/vpp/src/vlib/pci/
H A Dpci.c173 u8 *data = va_arg (*args, u8 *); local
180 if (vec_len (data) < 3)
183 while (p + 3 < vec_len (data))
186 if (data[p] == 0 && data[p + 1] == 0)
189 if (p + data[p + 2] > vec_len (data))
199 if (*(u16 *) & data[p] == *(u16 *) c[0])
204 if (data[p + 2])
214 s = format (s, "%c%c: ", data[
[all...]
/vpp/src/vpp-api/python/vpp_papi/
H A Dvpp_serializer.py47 def conversion_required(data, field_type):
48 if check(data):
51 if type(data).__name__ in vpp_format.conversion_table[field_type]:
57 def conversion_packer(data, field_type):
58 t = type(data).__name__
60 conversion_table[field_type][t](data))
63 def conversion_unpacker(data, field_type):
65 return data
66 return vpp_format.conversion_unpacker_table[field_type](data)
73 def pack(self, data, kwarg
[all...]
/vpp/src/plugins/igmp/
H A Digmp_timer.h33 * @param data - Data registered by the client at schedule time.
35 typedef void (*igmp_timer_function_t) (u32 obj, void *data);
45 void *data);
52 extern void igmp_timer_set_data (igmp_timer_id_t t, void *data);
/vpp/src/vnet/ipsec/
H A Desp.h30 u8 data[0]; member in struct:__anon48
62 * AES GCM Additional Authentication data
72 u32 data[3]; member in struct:esp_aead_t_
109 esp_aad_fill (u8 * data, const esp_header_t * esp, const ipsec_sa_t * sa) argument
113 aad = (esp_aead_t *) data;
114 aad->data[0] = esp->spi;
119 aad->data[1] = (u32) clib_host_to_net_u32 (sa->seq_hi);
120 aad->data[2] = esp->seq;
126 aad->data[1] = esp->seq;
132 * The post data structur
[all...]

Completed in 17 milliseconds

1234567891011>>