Home
last modified time | relevance | path

Searched refs:used (Results 1 – 25 of 361) sorted by relevance

12345678910>>...15

/dpdk/lib/telemetry/
H A Dtelemetry_json.h51 return used + __json_snprintf(buf + used, len - used, "[]"); in rte_tel_json_empty_array()
58 return used + __json_snprintf(buf + used, len - used, "{}"); in rte_tel_json_empty_obj()
65 return used + __json_snprintf(buf + used, len - used, "\"%s\"", str); in rte_tel_json_str()
78 return ret == 0 ? used : end + ret; in rte_tel_json_add_array_string()
90 return ret == 0 ? used : end + ret; in rte_tel_json_add_array_int()
103 return ret == 0 ? used : end + ret; in rte_tel_json_add_array_u64()
119 return ret == 0 ? used : end + ret; in rte_tel_json_add_array_json()
130 int ret, end = used - 1; in rte_tel_json_add_obj_u64()
148 int ret, end = used - 1; in rte_tel_json_add_obj_int()
166 int ret, end = used - 1; in rte_tel_json_add_obj_str()
[all …]
H A Dtelemetry.c155 size_t used = 0; in container_to_json() local
166 buf_len, used, in container_to_json()
171 buf_len, used, in container_to_json()
176 buf_len, used, in container_to_json()
184 buf_len, used, in container_to_json()
189 buf_len, used, in container_to_json()
194 buf_len, used, in container_to_json()
215 return used; in container_to_json()
251 buf_len, used, in output_json()
281 used += strlcat(out_buf + used, "}", sizeof(out_buf) - used); in output_json()
[all …]
H A Dtelemetry_legacy.c152 int used = snprintf(out_buf, sizeof(out_buf), "{\"status_code\": " in send_error_response() local
154 if (write(s, out_buf, used) < 0) { in send_error_response()
165 int ret, used = 0; in perform_command() local
174 used += ret; in perform_command()
175 if (write(s, out_buf, used) < 0) in perform_command()
/dpdk/app/test/
H A Dtest_telemetry_json.c16 int used = 0; in test_basic_array() local
19 used = rte_tel_json_empty_array(buf, sizeof(buf), used); in test_basic_array()
23 used = rte_tel_json_add_array_string(buf, sizeof(buf), used, in test_basic_array()
25 used = rte_tel_json_add_array_int(buf, sizeof(buf), used, 42); in test_basic_array()
38 int used = 0; in test_basic_obj() local
40 used = rte_tel_json_add_obj_u64(buf, sizeof(buf), used, in test_basic_obj()
42 used = rte_tel_json_add_obj_u64(buf, sizeof(buf), used, in test_basic_obj()
61 used = rte_tel_json_add_array_string(buf, sizeof(buf), used, in test_overflow_array()
83 used = rte_tel_json_add_obj_u64(buf, sizeof(buf), used, in test_overflow_obj()
101 int used = 0; in test_large_array_element() local
[all …]
/dpdk/lib/eal/common/
H A Deal_common_fbarray.c116 bool used) in find_next_n() argument
171 if (!used) in find_next_n()
222 if (!used) in find_next_n()
293 if (!used) in find_next()
345 if (!used) in find_contig()
382 bool used) in find_prev_n() argument
434 if (!used) in find_prev_n()
497 if (!used) in find_prev_n()
570 if (!used) in find_prev()
617 if (!used) in find_rev_contig()
[all …]
/dpdk/doc/guides/rawdevs/
H A Dcnxk_gpio.rst38 tells PMD which GPIO controller should be used. Available controllers are
44 sort list of available gpiochips is used.
95 Message is used to set edge that triggers interrupt.
106 Message is used to change GPIO direction to either input or output.
117 Message is used to set whether pin is active low.
128 Message is used to read GPIO value. Value can be 0 (low) or 1 (high).
139 Message is used to read GPIO edge.
150 Message is used to read GPIO direction.
161 Message is used check whether inverted logic is active.
173 Message is used to install custom interrupt handler.
[all …]
H A Dcnxk_bphy.rst27 use. The script ``dpdk-devbind.py`` script included with DPDK can be used to
31 ``dpdk-devbind.py --status-dev misc`` can be used to see the state of those
52 Message is used to get information about link state.
61 Message is used to enable or disable internal loopback.
70 Message is used to enable or disable PTP mode.
79 Message is used to change link mode.
88 Message is used to set link up or down.
97 Message is used to start or stop accepting traffic.
113 Message is used to setup low level interrupt handling.
124 Message is used setup custom interrupt handler.
[all …]
H A Dioat.rst19 This PMD, when used on supported hardware, allows data copies, for example,
27 can be used to show the presence of supported hardware.
44 The following can be used to disable the ``dmadev`` drivers,
45 if the raw drivers are to be used instead::
135 the value used as the DPDK ``--file-prefix`` parameter may be used as a workqueue name prefix,
146 To use the devices from an application, the rawdev API can be used, along
149 structure parameters used by some of the rawdev APIs for IOAT rawdev
159 example, the following code snippet can be used to identify an IOAT
183 difference is that, because the parameter is used as input rather than
186 size to be used by the device. The ring size must be a power of two,
[all …]
/dpdk/drivers/crypto/virtio/
H A Dvirtqueue.h111 ((uint16_t)((vq)->vq_ring.used->idx - (vq)->vq_used_cons_idx))
140 return !(vq->vq_ring.used->flags & VRING_USED_F_NO_NOTIFY); in virtqueue_kick_prepare()
159 used_idx = (vq)->vq_ring.used->idx; \
167 (vq)->vq_used_cons_idx, (vq)->vq_ring.used->idx, \
168 (vq)->vq_ring.avail->flags, (vq)->vq_ring.used->flags); \
H A Dvirtio_ring.h64 struct vring_used *used; member
98 #define vring_avail_event(vr) (*(uint16_t *)&(vr)->used->ring[(vr)->num])
121 vr->used = (void *) in vring_init()
/dpdk/doc/guides/nics/
H A Dvhost.rst35 It is used to specify a path to connect to a QEMU virtio-net device.
39 It is used to specify the number of queues virtio-net device has.
44 It is used to enable iommu support in vhost library.
49 It is used to enable postcopy live-migration support in vhost library.
54 It is used to enable tso support in vhost library.
59 It is used to enable linear buffer support in vhost library.
64 It is used to enable external buffer support in vhost library.
H A Dvirtio.rst32 In Rx, packets described by the used descriptors in vring are available
249 By default, the non-vector callbacks are used:
252 or ``virtio_recv_pkts_packed`` will be used, otherwise
254 will be used.
259 Vector callbacks will be used when:
381 It is used to specify a path to connect to vhost backend.
385 It is used to specify the MAC address.
393 It is used to specify the queue size. (Default: 256)
397 It is used to specify the queue number. (Default: 1)
416 It is used to enable virtio device in-order feature.
[all …]
/dpdk/doc/guides/dmadevs/
H A Dioat.rst13 This PMD, when used on supported hardware, allows data copies, for example,
20 The ``dpdk-devbind.py`` script, included with DPDK, can be used to show the
42 user-space IO driver such as ``vfio-pci`` in order to be used by DPDK.
44 The ``dpdk-devbind.py`` script can be used to view the state of the devices using::
48 The ``dpdk-devbind.py`` script can also be used to bind devices to a suitable driver.
61 be used in the same way that other DPDK devices use them.
74 To use IOAT devices from an application, the ``dmadev`` API can be used.
98 When gathering completions, ``rte_dma_completed()`` should be used, up until the point an error
99 occurs with an operation. If an error was encountered, ``rte_dma_completed_status()`` must be used
H A Didxd.rst12 This PMD can be used in conjunction with Intel\ |reg| DSA devices to offload
19 The ``dpdk-devbind.py`` script, included with DPDK, can be used to show the
51 and the work-queues, which are used by applications to assign work to the device,
113 The HW devices to be used will need to be bound to a user-space IO driver for use.
114 The ``dpdk-devbind.py`` script can be used to view the state of the devices
141 the value used as the DPDK ``--file-prefix`` parameter may be used as a workqueue
146 are also available to further restrict the device list that will be used.
147 If the -a option is used, then any device that passes the ``dpdk_``
149 Similarly, when the block list is used,
162 To use the devices from an application, the dmadev API can be used.
[all …]
H A Dcnxk.rst28 can be used to show the presence of supported hardware.
34 The HW devices to be used will need to be bound to a user-space IO driver for use.
35 The ``dpdk-devbind.py`` script can be used to view the state of the devices
44 To use the devices from an application, the dmadev API can be used.
/dpdk/doc/guides/linux_gsg/
H A Dbuild_sample_apps.rst23 - Any kernel driver being used is loaded.
24 - In case needed, ports being used by the application should be
56 ``[domain:]bus:devid.func`` values. Cannot be used with ``-b`` option.
74 recommended that ``--socket-mem`` be used instead of this option.
89 The prefix text used for hugepage filenames.
101 Specify interrupt type to be used by VFIO (has no effect if VFIO is not used).
115 and that cores 0-3 are present and are to be used for running the application)::
121 The ``--proc-type`` and ``--file-prefix`` EAL options are used for running
134 On initialization of the EAL layer by a DPDK application, the logical cores to be used and their so…
171 …To avoid this issue, it is recommended that the ``--socket-mem`` option be used instead of the ``-…
[all …]
H A Dlinux_drivers.rst14 Depending on the PMD being used, a corresponding kernel driver should be loaded,
45 The following are some examples of how the script can be used.
48 Note that the UIO or VFIO kernel modules to be used,
54 to which devices can be used with VFIO.
56 Any Virtual Function device can usually be used with VFIO on its own,
143 If there is no IOMMU available on the system, VFIO can still be used,
156 After that, VFIO can be used with hardware devices as usual.
199 so any UUID generation tool can be used to create a new token.
202 The token will be used for all PF and VF ports within the application.
297 and other alternatives (such as UIO drivers) will have to be used.
[all …]
/dpdk/doc/guides/prog_guide/
H A Ddmadev.rst54 - A unique device index used to designate the DMA device in all functions
57 - A device name used to designate the DMA device in console messages, for
65 can be used to get the device info and supported features.
76 Enqueue APIs such as ``rte_dma_copy`` and ``rte_dma_fill`` can be used to
78 returned. This ``ring_idx`` can be used by applications to track per operation
81 The ``rte_dma_submit`` API is used to issue doorbell to hardware.
103 ``rte_dma_completed_status``, these are used to obtain the results of the
H A Dpcapng_lib.rst23 Before the library can be used, the function ``rte_pcapng_init``
32 the function ``rte_pcapng_mbuf_size`` should be used
36 The function ``rte_pcapng_copy`` is used to format and copy mbuf data
39 The function ``rte_pcapng_write_stats`` can be used
/dpdk/doc/guides/sample_app_ug/
H A Dl2_forward_crypto.rst93 Note that if --cipher_key is used, this will be ignored.
99 Note that if --cipher_iv is used, this will be ignored.
113 Note that if --auth_key is used, this will be ignored.
115 * auth_iv: set the auth IV to be used. Bytes has to be separated with ":"
119 Note that if --auth_iv is used, this will be ignored.
133 Note that if --aead_key is used, this will be ignored.
135 * aead_iv: set the AEAD IV to be used. Bytes has to be separated with ":"
139 Note that if --aead_iv is used, this will be ignored.
141 * aad: set the AAD to be used. Bytes has to be separated with ":"
145 Note that if --aad is used, this will be ignored.
[all …]
H A Dipsec_secgw.rst105 (used also by poll mode). When --single-sa option is used in conjunction with event
460 * Optional: Yes, default priority 0 will be used
559 * Optional: Yes, unless <aead_algo> is not used
576 * Optional: Yes, unless <aead_algo> is not used.
590 * Optional: Yes, unless <aead_algo> is not used
600 is used.
658 transport mode is used
670 transport mode is used
1040 used as a control path.
1086 On default library mode is used.
[all …]
/dpdk/lib/metrics/
H A Drte_metrics_telemetry.c447 int ret, used = 0; in handle_ports_all_stats_values() local
464 used += strlcpy(buffer, json_buffer, buf_len); in handle_ports_all_stats_values()
465 return used; in handle_ports_all_stats_values()
475 int ret, used = 0; in handle_global_stats_values() local
486 used += strlcpy(buffer, json_buffer, buf_len); in handle_global_stats_values()
487 return used; in handle_global_stats_values()
497 int ret, used = 0; in handle_ports_stats_values_by_name() local
527 used += strlcpy(buffer, json_buffer, buf_len); in handle_ports_stats_values_by_name()
528 return used; in handle_ports_stats_values_by_name()
/dpdk/doc/guides/vdpadevs/
H A Dsfc.rst19 device is to be used in vDPA mode. If this parameter is not specified, device
20 will be probed by net/sfc driver and will used as a net device.
64 Case-insensitive 1/y/yes/on or 0/n/no/off may be used to specify
76 Configures MAC address which would be used to setup MAC filters.
83 for the log types supported by the driver. The option is used with
89 be used either for some specific log type or for a subset of types.
/dpdk/doc/guides/tools/
H A Ddevbind.rst33 device is being used by a kernel driver, the ``vfio-pci`` driver, or no
36 - the driver being used e.g. ``drv=vfio-pci``
52 By default, devices which are used by Linux - as indicated by having
56 WARNING: This can lead to loss of network connection and should be used
62 Due to the way VFIO works, there are certain limitations to which devices can be used with VFIO.
64 …Any Virtual Function device can be used with VFIO on its own, but physical devices will require ei…
/dpdk/lib/vhost/
H A Dvdpa.c156 idx = vq->used->idx; in rte_vdpa_relay_vring_used()
157 idx_m = s_vring->used->idx; in rte_vdpa_relay_vring_used()
162 vq->used->ring[idx & (vq->size - 1)] = in rte_vdpa_relay_vring_used()
163 s_vring->used->ring[idx & (vq->size - 1)]; in rte_vdpa_relay_vring_used()
165 desc_id = vq->used->ring[idx & (vq->size - 1)].id; in rte_vdpa_relay_vring_used()
220 __atomic_store_n(&vq->used->idx, idx_m, __ATOMIC_RELEASE); in rte_vdpa_relay_vring_used()

12345678910>>...15