| /dpdk/doc/guides/prog_guide/ |
| H A D | event_ethernet_rx_adapter.rst | 33 the service function. 41 a service function. 60 function. The callback function is invoked if the adapter needs to use a 72 if the adapter needs to use a service function. 106 The ``rte_event_eth_rx_adapter_caps_get()`` function allows 112 function. 129 a service core to the service function as show below. 144 service function if one exists. 164 The ``rte_event_eth_rx_adapter_queue_conf_get()`` function reports 172 The ``rte_event_eth_rx_adapter_queue_stats_get()`` function reports [all …]
|
| H A D | event_ethernet_tx_adapter.rst | 18 which runs as a rte_service function. The service function dequeues events 37 a service function. 41 ``rte_event_eth_tx_adapter_create_ext()`` function is passed a callback function. 42 The callback function is invoked if the adapter needs to use a service function 63 ``rte_event_eth_tx_adapter_queue_add()`` function. A queue value 75 The ``rte_event_eth_tx_adapter_caps_get()`` function allows 103 If the adapter uses a service function, the application can assign 104 a service core to the service function as shown below. 124 function. 131 should use the ``rte_event_enqueue_burst()`` function. [all …]
|
| H A D | efd_lib.rst | 43 function can be used to direct a certain flow to a target based on 78 key, as this is dictated by the hash function. 133 that key with the correct hash function. 141 Intuitively, finding a hash function that maps each of a large number 234 The EFD function to insert a key or update a key to a new value is 235 ``rte_efd_update()``. This function will update an existing key to 248 This function is not multi-thread safe and should only be called 262 lookup function. ``rte_efd_lookup_bulk()`` is the bulk lookup function, 274 To delete a certain key in an EFD table, the function 283 This function is not multi-thread safe and should only be called [all …]
|
| H A D | telemetry_lib.rst | 15 function that will format the library specific stats into the correct data 26 When creating a callback function in a library/app, it must be of the following type: 33 An example callback function is shown below: 41 For more detail on the callback function parameters, please refer to the 80 The callback function provided by the library must format its telemetry 101 by the handler function in the library/app, placed in a JSON reply by telemetry:: 111 a brownie recipe is constructed in the callback function shown below: 122 by the handler function in telemetry, placed in a JSON reply by telemetry:: 151 in the required format ("/library/command"), the callback function that
|
| H A D | event_crypto_adapter.rst | 17 The adapter uses an EAL service core function for SW based packet transfer 95 a service function). 117 and setup, it can use the ``rte_event_crypto_adapter_create_ext()`` function. 118 The ``rte_event_crypto_adapter_create_ext()`` function is passed as a callback 119 function. The callback function is invoked if the adapter needs to use a 120 service function and needs to create an event port for it. The callback is 166 The ``rte_event_crypto_adapter_caps_get()`` function allows 211 Configure the service function 214 If the adapter uses a service function, the application is required to assign 215 a service core to the service function as show below. [all …]
|
| H A D | pcapng_lib.rst | 23 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
|
| H A D | metrics_lib.rst | 16 values contained within the metric library by calling an update function 40 This function **must** be called from a primary process, but otherwise 78 the ``rte_metrics_update_value()`` function. This uses the metric key 91 using the ``rte_metrics_update_values()`` function: 110 the ``rte_metrics_get_values()`` function that return an array of 113 ``rte_metrics_get_names()`` function that returns an array of 169 This function **must** be called from a primary process. 197 done using the helper function ``rte_stats_bitrate_reg()``. 213 ``rte_stats_bitrate_calc()``. The frequency at which this function 216 desired, this function should be called once a second. [all …]
|
| /dpdk/doc/guides/sample_app_ug/ |
| H A D | hello_world.rst | 38 This is done in the main() function using the following code: 46 The argc and argv arguments are provided to the rte_eal_init() function. 52 Once the EAL is initialized, the application is ready to launch a function on an lcore. 54 The following is the definition of the function: 58 :start-after: Launch a function on lcore. 8< 59 :end-before: >8 End of launching function on lcore. 61 The code that launches the function on each lcore is as follows: 65 :start-after: Launches the function on each lcore. 8< 66 :end-before: >8 End of launching the function on each lcore. 77 …er to the *DPDK API Reference* for detailed information on the rte_eal_mp_remote_launch() function.
|
| H A D | flow_classify.rst | 77 The ``main()`` function performs the initialization and calls the execution 82 function. The value returned is the number of parsed arguments: 98 The ``main()`` function also allocates a mempool to hold the mbufs 111 ``port_init()`` function which is explained in the next section: 151 The ``lcore_main()`` function is explained below. 165 ``rte_eth_dev_configure()`` function. 185 The Add Rules function 189 ``add_classify_rule`` function which calls the 198 The Lcore Main function 201 As we saw above the ``main()`` function calls an application function on the [all …]
|
| H A D | flow_filtering.rst | 50 and runs the main loop function. 54 function. The value returned is the number of parsed arguments: 76 ``init_port()`` function which is explained in the next section: 94 ``main_loop()`` function. Which is explained below. 115 ``rte_eth_dev_configure()`` function and the ``port_conf_default`` struct: 159 The main_loop function 162 As we saw above the ``main()`` function calls an application function to handle 163 the main loop. For the flow filtering application the main_loop function 184 The generate_ipv4_flow function 188 This function is located in the ``flow_blocks.c`` file. [all …]
|
| H A D | skeleton.rst | 47 The ``main()`` function performs the initialization and calls the execution 52 function. The value returned is the number of parsed arguments: 73 The ``main()`` function also initializes all the ports using the user defined 74 ``port_init()`` function which is explained in the next section: 83 function on an lcore. In this example ``lcore_main()`` is called on a single 93 The ``lcore_main()`` function is explained below. 109 ``rte_eth_dev_configure()`` function. 135 As we saw above the ``main()`` function calls an application function on the 136 available lcores. For the Basic Forwarding application the lcore function 164 The ``rte_eth_tx_burst()`` function frees the memory buffers of packets that
|
| H A D | dma.rst | 121 function. The value returned is the number of parsed arguments: 142 The ``main()`` function also initializes the ports: 150 Each port is configured using ``port_init()`` function. The Ethernet 152 function and the ``port_conf`` struct. The RSS is enabled so that 232 The processing lcores launching function are described below. 238 function in order to start processing for each lcore: 246 The function launches Rx/Tx processing functions on configured lcores 257 The structure is initialized in 'main()' function with the values 276 function. When using hardware copy mode the packets are enqueued in 294 is used to pass the packets to the TX function. [all …]
|
| H A D | rxtx_callbacks.rst | 59 The ``main()`` function performs the application initialization and calls the 60 execution threads for each lcore. This function is effectively identical to 61 the ``main()`` function explained in :doc:`skeleton`. 63 The ``lcore_main()`` function is also identical. 65 The main difference is in the user defined ``port_init()`` function where the 81 The RX and TX callbacks are added to the ports/queues as function pointers: 90 to callback function pointers as a ``void*``. In the examples above ``NULL`` 107 The DPDK function ``rte_rdtsc()`` is used to add a cycle count timestamp to 123 The ``calc_latency()`` function accumulates the total number of packets and
|
| H A D | timer.rst | 37 …ation, the timer subsystem must be initialized, by calling the rte_timer_subsystem_init() function. 64 rte_timer_manage() function must be called or not. 70 In the main() function, the two timers are initialized. 83 The callback function is timer0_cb(). 87 The callback function is timer1_cb(). 96 In this case, the timer is stopped using the rte_timer_stop() function. 104 rte_timer_reset() function:
|
| H A D | ptpclient.rst | 91 The ``main()`` function performs the initialization and calls the execution 96 function. The value returned is the number of parsed arguments: 124 The ``main()`` function also initializes all the ports using the user defined 125 ``port_init()`` function with portmask provided by user: 135 function on an lcore. In this example ``lcore_main()`` is called on a single 142 The ``lcore_main()`` function is explained below. 148 As we saw above the ``main()`` function calls an application function on the 181 The ``parse_ptp_frames()`` function processes PTP packets, implementing slave 187 :end-before: >8 End of function processes PTP packets.
|
| H A D | l2_forward_real_virtual.rst | 63 This application can use the virtual function available in the system and 145 The preferred way to parse parameters is to use the getopt() function, 148 The parsing of arguments is done in the l2fwd_parse_args() function. 153 This is done at the beginning of the main() function: 184 The rte_pktmbuf_pool_create() function uses the default mbuf pool and mbuf 194 The main part of the code in the main() function relates to the initialization of the driver. 207 The rte_eth_dev_configure() function is used to configure the number of queues for a port: 273 Then, each mbuf in the table is processed by the l2fwd_simple_forward() function. 291 Then, the packet is sent using the l2fwd_send_packet (m, dst_port) function. 295 using the burst-oriented send function, which is more efficient. [all …]
|
| H A D | link_status_intr.rst | 85 The main part of the code in the main() function relates to the initialization of the driver. 98 The rte_eth_dev_configure() function is used to configure the number of queues for a port: 125 An example callback function that has been written as indicated below. 132 This function is called when a link status interrupt is present for the right port. 148 … done only after calling the rte_eth_dev_configure() function and before calling any other functio… 212 In the lsi_main_loop() function, the main task is to read ingress packets from the RX queues. 224 Then, each mbuf in the table is processed by the lsi_simple_forward() function. 239 Then, the packet is sent using the lsi_send_packet(m, dst_port) function. 243 the burst-oriented send function, which is more efficient. 249 The lsi_send_packet() function stores the packet in a per-lcore and per-txport table. [all …]
|
| H A D | l2_forward_job_stats.rst | 53 This application can use the virtual function available in the system and 115 The preferred way to parse parameters is to use the getopt() function, 118 The parsing of arguments is done in the l2fwd_parse_args() function. 123 This is done at the beginning of the main() function: 152 The rte_pktmbuf_pool_create() function uses the default mbuf pool and mbuf 173 The rte_eth_dev_configure() function is used to configure the number of queues for a port: 258 In the l2fwd_main_loop() function three loops are placed. 289 Then, each mbuf in the table is processed by the l2fwd_simple_forward() function. 326 Then, the packet is sent using the l2fwd_send_packet (m, dst_port) function. 330 using the burst-oriented send function, which is more efficient. [all …]
|
| /dpdk/drivers/crypto/ccp/ |
| H A D | ccp_pci.c | 53 uint8_t *bus, uint8_t *devid, uint8_t *function) in ccp_parse_pci_addr_format() argument 61 char *function; in ccp_parse_pci_addr_format() member 76 splitaddr.function = strchr(splitaddr.devid, '.'); in ccp_parse_pci_addr_format() 77 if (splitaddr.function == NULL) in ccp_parse_pci_addr_format() 79 *splitaddr.function++ = '\0'; in ccp_parse_pci_addr_format() 86 *function = (uint8_t)strtoul(splitaddr.function, NULL, 10); in ccp_parse_pci_addr_format()
|
| H A D | ccp_crypto.c | 1539 function.raw = 0; in ccp_perform_passthru() 1625 function.raw = 0; in ccp_perform_hmac() 1709 function.raw = 0; in ccp_perform_hmac() 1806 function.raw = 0; in ccp_perform_sha() 1890 function.raw = 0; in ccp_perform_sha3_hmac() 1955 function.raw = 0; in ccp_perform_sha3_hmac() 2036 function.raw = 0; in ccp_perform_sha3() 2091 function.raw = 0; in ccp_perform_aes_cmac() 2246 function.raw = 0; in ccp_perform_aes() 2389 function.raw = 0; in ccp_perform_3des() [all …]
|
| /dpdk/lib/pci/ |
| H A D | rte_pci.c | 53 in = get_u8_pciaddr_field(in, &dev_addr->function, '\0'); in pci_bdf_parse() 88 in = get_u8_pciaddr_field(in, &dev_addr->function, '\0'); in pci_dbdf_parse() 101 addr->devid, addr->function) >= 0); in rte_pci_device_name() 114 (addr->bus << 16) | (addr->devid << 8) | addr->function; in rte_pci_addr_cmp() 116 (addr2->bus << 16) | (addr2->devid << 8) | addr2->function; in rte_pci_addr_cmp()
|
| /dpdk/kernel/freebsd/nic_uio/ |
| H A D | nic_uio.c | 78 uint32_t function; member 153 unsigned int function = pci_get_function(dev); in nic_uio_probe() local 162 function == pci_get_function(detached_devices[i])) { in nic_uio_probe() 185 function = strtol(token, NULL, 10); in nic_uio_probe() 189 function == pci_get_function(dev)) { in nic_uio_probe() 258 uint32_t bus, device, function; in nic_uio_load() local 292 function = strtol(token, NULL, 10); in nic_uio_load() 294 dev = pci_find_bsf(bus, device, function); in nic_uio_load()
|
| /dpdk/doc/guides/nics/ |
| H A D | hns3.rst | 68 Used to select Rx burst function, supported value are ``vec``, ``sve``, 70 ``vec``, if supported use the ``vec`` Rx function which indicates the 72 ``sve``, if supported use the ``sve`` Rx function which indicates the 74 ``simple``, if supported use the ``simple`` Rx function which indicates 76 ``common``, if supported use the ``common`` Rx function which indicates 88 Used to select Tx burst function, supported value are ``vec``, ``sve``, 90 ``vec``, if supported use the ``vec`` Tx function which indicates the 92 ``sve``, if supported use the ``sve`` Tx function which indicates the 200 RSS Flow supports to set hash input set, hash function, enable hash 224 Set hash function as simple xor. [all …]
|
| /dpdk/doc/guides/contributing/ |
| H A D | abi_versioning.rst | 130 arguments. Occasionally that function may need to change to accommodate new 144 versioned symbol ``b@DPDK_n`` to the internal function ``be``. 151 fully qualified function ``p``, so that if a symbol becomes versioned, it 171 Assume we have a function as follows 209 The addition of a parameter to the function is ABI breaking as the function is 295 the macros used for versioning symbols and we have annotated the function as 298 Immediately after the function, we add the VERSION_SYMBOL macro. 317 function name, with the ``v22`` suffix, and implement it appropriately. 344 ``rte_acl_create@DPDK_22``, which points to the above newly named function. 420 enable the function version macros when building. [all …]
|
| /dpdk/lib/gpudev/ |
| H A D | gpudev.c | 24 #define GPU_DRV_RET(function) \ argument 25 ((function != 0) ? -(rte_errno = EPERM) : (rte_errno = 0)) 43 rte_gpu_callback_t *function; member 376 rte_gpu_callback_t *function, void *user_data) in rte_gpu_callback_register() argument 387 if (function == NULL) { in rte_gpu_callback_register() 407 callback->function == function && in rte_gpu_callback_register() 419 callback->function = function; in rte_gpu_callback_register() 432 rte_gpu_callback_t *function, void *user_data) in rte_gpu_callback_unregister() argument 443 if (function == NULL) { in rte_gpu_callback_unregister() 461 callback->function != function || in rte_gpu_callback_unregister() [all …]
|