Home
last modified time | relevance | path

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

12345678910

/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()
20 if (used != 2 || strcmp(buf, "[]")) 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()
28 if (used != (int)strlen(expected)) in test_basic_array()
38 int used = 0; in test_basic_obj() local
40 used = rte_tel_json_add_obj_uint(buf, sizeof(buf), used, in test_basic_obj()
42 used = rte_tel_json_add_obj_uint(buf, sizeof(buf), used, in test_basic_obj()
46 if (used != (int)strlen(expected)) in test_basic_obj()
[all …]
/dpdk/lib/telemetry/
H A Dtelemetry_json.h163 rte_tel_json_empty_array(char *buf, const int len, const int used) in rte_tel_json_empty_array() argument
165 return used + __json_snprintf(buf + used, len - used, "[]"); in rte_tel_json_empty_array()
170 rte_tel_json_empty_obj(char *buf, const int len, const int used) in rte_tel_json_empty_obj() argument
172 return used + __json_snprintf(buf + used, len - used, "{}"); in rte_tel_json_empty_obj()
177 rte_tel_json_str(char *buf, const int len, const int used, const char *str) in rte_tel_json_str() argument
179 return used + __json_format_str(buf + used, len - used, "\"", str, "\""); in rte_tel_json_str()
184 rte_tel_json_add_array_string(char *buf, const int len, const int used, in rte_tel_json_add_array_string() argument
187 int ret, end = used - 1; /* strip off final delimiter */ in rte_tel_json_add_array_string()
188 if (used <= 2) /* assume empty, since minimum is '[]' */ in rte_tel_json_add_array_string()
192 return ret == 0 ? used : end + ret; in rte_tel_json_add_array_string()
[all …]
H A Dtelemetry.c183 size_t used = 0; in container_to_json()
191 used = rte_tel_json_empty_obj(out_buf, buf_len, 0); in container_to_json()
193 used = rte_tel_json_empty_array(out_buf, buf_len, 0); in container_to_json()
197 used = rte_tel_json_add_array_uint(out_buf, in container_to_json()
198 buf_len, used, in container_to_json()
202 used = rte_tel_json_add_array_int(out_buf, in container_to_json()
203 buf_len, used, in container_to_json()
207 used = rte_tel_json_add_array_string(out_buf, in container_to_json()
208 buf_len, used, in container_to_json()
215 used in container_to_json()
166 size_t used = 0; container_to_json() local
244 size_t buf_len, prefix_used, used = 0; output_json() local
359 int used = snprintf(out_buf, sizeof(out_buf), "{\"%.*s\":null}", perform_command() local
[all...]
H A Dtelemetry_legacy.c153 int used = snprintf(out_buf, sizeof(out_buf), "{\"status_code\": " in send_error_response() local
155 if (write(s, out_buf, used) < 0) { in send_error_response()
166 int ret, used = 0; in perform_command() local
175 used += ret; in perform_command()
176 if (write(s, out_buf, used) < 0) in perform_command()
/dpdk/lib/eal/common/
H A Deal_common_fbarray.c116 bool used) in find_next_n() argument
171 if (!used) in find_next_n()
224 if (!used) in find_next_n()
267 rte_errno = used ? ENOENT : ENOSPC; in find_next_n()
272 find_next(const struct rte_fbarray *arr, unsigned int start, bool used) in find_next() argument
301 if (!used) in find_next()
323 rte_errno = used ? ENOENT : ENOSPC; in find_next()
328 find_contig(const struct rte_fbarray *arr, unsigned int start, bool used) in find_contig() argument
353 if (!used) in find_contig()
390 bool used) in find_prev_n() argument
[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/rawdevs/
H A Dcnxk_bphy.rst35 use. The script ``dpdk-devbind.py`` script included with DPDK can be used to
39 ``dpdk-devbind.py --status-dev misc`` can be used to see the state of those
60 Message is used to get information about link state.
69 Message is used to enable or disable internal loopback.
78 Message is used to enable or disable PTP mode.
87 Message is used to change link mode.
96 Message is used to set link up or down.
105 Message is used to start or stop accepting traffic.
114 Message is used to change operating mode from eCPRI to CPRI along with other
125 Message is used to enable TX for SERDES configured in CPRI mode.
[all …]
H A Dcnxk_gpio.rst45 tells PMD which GPIO controller should be used. Available controllers are
51 sort list of available gpiochips is used.
68 be used. For example passing `--vdev=cnxk_gpio,gpiochip=448,allowlist=[0,1,2,3]`
90 Message is used to set output to low or high. This does not work for GPIOs
102 Message is used to set edge that triggers interrupt.
113 Message is used to change GPIO direction to either input or output.
124 Message is used to set whether pin is active low.
135 Message is used to read GPIO value. Value can be 0 (low) or 1 (high).
146 Message is used to read GPIO edge.
157 Message is used to read GPIO direction.
[all …]
/dpdk/usertools/telemetry-endpoints/
H A Dmemory.py17 used = 0
22 used += z["Length"]
36 (MEM_USED, max(0, used), {}),
/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.
69 It is used to restore legacy behavior for offloading that was not
H A Dvirtio.rst29 In Rx, packets described by the used descriptors in vring are available
32 In Tx, packets described by the used descriptors in vring are available
162 By default, the non-vector callbacks are used:
165 or ``virtio_recv_pkts_packed`` will be used, otherwise
167 will be used.
169 * For Tx: ``virtio_xmit_pkts`` or ``virtio_xmit_pkts_packed`` will be used.
172 Vector callbacks will be used when:
192 * For Rx: If in-order is enabled then ``virtio_recv_pkts_inorder`` is used.
194 * For Tx: If in-order is enabled then ``virtio_xmit_pkts_inorder`` is used.
205 interrupt, Rx interrupts, and Tx interrupts. Config interrupt is used for
[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
48 The `accel-config <https://github.com/intel/idxd-config>`_ utility library can be used for configur…
57 and the work-queues, which are used by applications to assign work to the device,
65 …queues to groups for passing descriptors to the engines a similar accel-config command can be used.
119 The HW devices to be used will need to be bound to a user-space IO driver for use.
120 The ``dpdk-devbind.py`` script can be used to view the state of the devices
130 The above device when used by a DPDK application will be accessible via dmadevs with names:
154 the value used as the DPDK ``--file-prefix`` parameter may be used as a workqueue
159 are also available to further restrict the device list that will be used.
[all …]
H A Dodm.rst30 can be used to show the presence of supported hardware.
37 The HW devices to be used will need to be bound to a user-space IO driver.
38 The ``dpdk-devbind.py`` script can be used to view the state of the devices
47 To use the devices from an application, the dmadev API can be used.
82 which allows for alternate engines to be used with alternate VFs
/dpdk/doc/guides/linux_gsg/
H A Dlinux_drivers.rst14 Depending on the PMD being used, a corresponding kernel driver should be loaded,
30 …It is recommended that ``vfio-pci`` be used as the kernel module for DPDK-bound ports in all cases.
31 If an IOMMU is unavailable, the ``vfio-pci`` can be used in :ref:`no-iommu<vfio_noiommu>` mode.
32 …ason, vfio is unavailable, then UIO-based modules, ``igb_uio`` and ``uio_pci_generic`` may be used.
35 Most devices require that the hardware to be used by DPDK be unbound from the kernel driver it uses,
37 …ports or other hardware under Linux* control will be ignored and cannot be used by the application.
42 This utility can be used to provide a view of the current state of the network ports on the system,
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.
[all …]
/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/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/sample_app_ug/
H A Dipsec_secgw.rst84 to be used will be determined by the operating conditions and the underlying device
107 processing is done entirely in HW. This mode can be used to benchmark the raw
109 (used also by poll mode). When --single-sa option is used in conjunction with event
210 option is not used as packets are dynamically scheduled to cores by HW.
361 and software crypto devices are detected, hardware devices will be used.
469 * Optional: Yes, default priority 0 will be used
477 * Optional: Yes, default address 0.0.0.0 and mask of 0 will be used
488 * Optional: Yes, default address 0.0.0.0 and mask of 0 will be used
499 * Optional: yes, default range of 0 to 0 will be used
507 * Optional: yes, default range of 0 to 0 will be used
[all …]
H A Dtest_pipeline.rst58 :numref:`table_test_pipeline_1` describes the table types used and how they are populated.
71 The available options are ext (extendable bucket) or lru (least recently used).
101 … | The default table rule (used in the case of a lo…
124 … | The default table rule (used in the case of a lo…
147 … | The default table rule (used in the case of a lo…
179 … | The default table rule (used in the case of a lo…
183 … | within the packet meta data to be later used by core |
220 … | The default table rule (used in the case of a lo…
228 Regardless of the table type used for the core B pipeline,
229 the same input traffic can be used to hit all table entries with uniform distribution,
/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…
H A Dpdump.rst13 * The ``dpdk-pdump`` tool can only be used in conjunction with a primary
17 tool has to be used with any application other than the testpmd, user
102 Size of the ring. This value is used internally for ring creation. The ring will be used to enqueue…
106 Size of the mbuf data. This is used internally for mempool creation. Ideally this value must be sam…
107 the primary application's mempool's mbuf data size which is used for packet RX. This is an optional…
111 Total number mbufs in mempool. This is used internally for mempool creation. This is an optional pa…
/dpdk/lib/vhost/
H A Dvdpa.c174 idx = vq->used->idx; in rte_vdpa_relay_vring_used()
175 idx_m = s_vring->used->idx; in rte_vdpa_relay_vring_used()
177 vq->used->flags = s_vring->used->flags; in rte_vdpa_relay_vring_used()
180 /* copy used entry, used ring logging is not covered here */ in rte_vdpa_relay_vring_used()
181 vq->used->ring[idx & (vq->size - 1)] = in rte_vdpa_relay_vring_used()
182 s_vring->used->ring[idx & (vq->size - 1)]; in rte_vdpa_relay_vring_used()
184 desc_id = vq->used->ring[idx & (vq->size - 1)].id; in rte_vdpa_relay_vring_used()
245 /* used id in rte_vdpa_relay_vring_used()
[all...]
/dpdk/examples/vhost/
H A Dvirtio_net.c215 vr->used->ring[used_idx].id = desc_indexes[i]; in vs_enqueue_pkts()
216 vr->used->ring[used_idx].len = pkts[i]->pkt_len + in vs_enqueue_pkts()
228 vr->used->ring[used_idx].len = dev->hdr_len; in vs_enqueue_pkts()
235 rte_atomic_fetch_add_explicit((uint16_t __rte_atomic *)&vr->used->idx, count, in vs_enqueue_pkts()
400 rte_prefetch0(&vr->used->ring[used_idx]); in vs_dequeue_pkts()
417 vr->used->ring[used_idx].id = desc_indexes[i]; in vs_dequeue_pkts()
418 vr->used->ring[used_idx].len = 0; in vs_dequeue_pkts()
447 rte_atomic_fetch_add_explicit((uint16_t __rte_atomic *)&vr->used->idx, i, in vs_dequeue_pkts()
/dpdk/drivers/net/virtio/
H A Dvirtio_ring.h97 struct vring_used *used; member
131 #define vring_avail_event(vr) (*(uint16_t *)&(vr)->used->ring[(vr)->num])
162 vr->used = (void *) in vring_init_split()

12345678910