| /dpdk/lib/eal/common/ |
| H A D | eal_common_lcore.c | 246 callback_init(struct lcore_callback *callback, unsigned int lcore_id) in callback_init() argument 248 if (callback->init == NULL) in callback_init() 251 callback->name, lcore_id); in callback_init() 252 return callback->init(lcore_id, callback->arg); in callback_init() 256 callback_uninit(struct lcore_callback *callback, unsigned int lcore_id) in callback_uninit() argument 258 if (callback->uninit == NULL) in callback_uninit() 261 callback->name, lcore_id); in callback_uninit() 262 callback->uninit(lcore_id, callback->arg); in callback_uninit() 266 free_callback(struct lcore_callback *callback) in free_callback() argument 268 free(callback->name); in free_callback() [all …]
|
| H A D | rte_keepalive.c | 36 rte_keepalive_failure_callback_t callback; member 94 if (keepcfg->callback) in rte_keepalive_dispatch_pings() 95 keepcfg->callback( in rte_keepalive_dispatch_pings() 121 rte_keepalive_create(rte_keepalive_failure_callback_t callback, in rte_keepalive_create() argument 130 keepcfg->callback = callback; in rte_keepalive_create() 139 rte_keepalive_relay_callback_t callback, in rte_keepalive_register_relay_callback() argument 142 keepcfg->relay_callback = callback; in rte_keepalive_register_relay_callback()
|
| H A D | rte_service.c | 42 * running this service callback. When not set, a core may take the 43 * lock and then run the service callback. 252 if (spec->callback == NULL || strlen(spec->name) == 0) 390 int rc = s->spec.callback(userdata); in service_runner_do_callback() 410 s->spec.callback(userdata);
|
| /dpdk/lib/gpudev/ |
| H A D | gpudev.c | 382 struct rte_gpu_callback *callback; in rte_gpu_callback_register() local 407 TAILQ_FOREACH(callback, callbacks, next) { in rte_gpu_callback_register() 408 if (callback->event == event && in rte_gpu_callback_register() 409 callback->function == function && in rte_gpu_callback_register() 410 callback->user_data == user_data) { in rte_gpu_callback_register() 417 callback = malloc(sizeof(*callback)); in rte_gpu_callback_register() 418 if (callback == NULL) { in rte_gpu_callback_register() 424 callback->function = function; in rte_gpu_callback_register() 425 callback->user_data = user_data; in rte_gpu_callback_register() 426 callback->event = event; in rte_gpu_callback_register() [all …]
|
| /dpdk/lib/eal/freebsd/ |
| H A D | eal_interrupts.c | 87 struct rte_intr_callback *callback; in rte_intr_callback_register() local 118 callback = NULL; in rte_intr_callback_register() 121 callback = calloc(1, sizeof(*callback)); in rte_intr_callback_register() 122 if (callback == NULL) { in rte_intr_callback_register() 127 callback->cb_fn = cb; in rte_intr_callback_register() 128 callback->cb_arg = cb_arg; in rte_intr_callback_register() 129 callback->pending_delete = 0; in rte_intr_callback_register() 130 callback->ucb_fn = NULL; in rte_intr_callback_register() 156 TAILQ_INSERT_TAIL(&(src->callbacks), callback, next); in rte_intr_callback_register() 201 if (callback != NULL) in rte_intr_callback_register() [all …]
|
| /dpdk/doc/guides/prog_guide/ |
| H A D | telemetry_lib.rst | 14 responsible for registering their own commands, and providing the callback 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 47 This callback is an example of handling multiple commands in one callback, 80 The callback function provided by the library must format its telemetry 91 callback needs to return five integer values in the data response, it can be 111 a brownie recipe is constructed in the callback function shown below: 151 in the required format ("/library/command"), the callback function that
|
| H A D | cmdline.rst | 28 * Ability to multiplex multiple commands to a single callback function 39 #. Define the callback function for the command 41 #. Provide a parse result structure instance for the command, linking the callback to the command 109 * An "extern" function prototype for the callback for each command 115 If so desired, the script can also output function stubs for the callback functions for each comman… 118 and the callback stubs will be written to an equivalent ".c" file. 124 without overwriting any code the user has added to the callback functions. 131 but the callback functions themselves obviously have to be provided by the user. 132 These callback functions must be provided as non-static functions in a C file, 138 the callback functions would be: [all …]
|
| H A D | vhost_lib.rst | 156 This callback is invoked when a virtio device becomes ready. ``vid`` 161 This callback is invoked when a virtio device is paused or shut down. 165 This callback is invoked when a specific queue's state is changed, for 170 This callback is invoked when the features is changed. For example, 176 This callback is invoked on new vhost-user socket connection. If DPDK 178 ``destroy_connection`` callback is received. 182 This callback is invoked when vhost-user socket connection is closed. 244 This function is only safe to call in vhost callback functions 264 This function is only safe to call in vhost callback functions 339 Inject the offloaded interrupt received by the 'guest_notify' callback,
|
| H A D | toeplitz_hash_lib.rst | 203 * A callback function and its userdata to check the tuple after it has been 207 there is a callback and a limit on the number of attempts to change the 208 tuple, if the callback function returns an error.
|
| /dpdk/doc/guides/sample_app_ug/ |
| H A D | timer.rst | 83 The callback function is timer0_cb(). 87 The callback function is timer1_cb(). 95 The callback for the first timer (timer0) only displays a message until a global counter reaches 20… 100 :start-after: timer0 callback. 8< 101 :end-before: >8 End of timer0 callback. 103 The callback for the second timer (timer1) displays a message and reloads the timer on the next lco… 108 :start-after: timer1 callback. 8< 109 :end-before: >8 End of timer1 callback.
|
| /dpdk/drivers/bus/vdev/ |
| H A D | rte_bus_vdev.h | 35 rte_vdev_add_custom_scan(rte_vdev_scan_callback callback, void *user_arg); 51 rte_vdev_remove_custom_scan(rte_vdev_scan_callback callback, void *user_arg);
|
| /dpdk/lib/cryptodev/ |
| H A D | cryptodev_trace_points.c | 52 lib.cryptodev.callback.register) 55 lib.cryptodev.callback.unregister) 172 lib.cryptodev.add.deq.callback) 175 lib.cryptodev.add.enq.callback) 178 lib.cryptodev.remove.deq.callback) 181 lib.cryptodev.remove.enq.callback)
|
| /dpdk/lib/eal/include/ |
| H A D | rte_keepalive.h | 38 * Keepalive failure callback. 50 * Keepalive relay callback. 75 * @param callback 78 * Data pointer to be passed to function callback. 83 rte_keepalive_failure_callback_t callback, 127 * Registers a 'live core' callback. 129 * The complement of the 'dead core' callback. This is called when a 135 * @param callback 138 * Data pointer to be passed to function callback. 142 rte_keepalive_relay_callback_t callback, [all...] |
| H A D | rte_service_component.h | 20 * Signature of callback function to run a service. 32 * This struct contains metadata about the service itself, the callback 40 /** The callback to invoke to run one iteration of the service. */ 41 rte_service_func callback; member 42 /** The userdata pointer provided to the service callback. */ 77 * -EINVAL Attempted to register an invalid service (eg, no callback
|
| /dpdk/lib/eal/linux/ |
| H A D | eal_interrupts.c | 489 struct rte_intr_callback *callback; in rte_intr_callback_register() local 500 callback = calloc(1, sizeof(*callback)); in rte_intr_callback_register() 501 if (callback == NULL) { in rte_intr_callback_register() 505 callback->cb_fn = cb; in rte_intr_callback_register() 506 callback->cb_arg = cb_arg; in rte_intr_callback_register() 507 callback->pending_delete = 0; in rte_intr_callback_register() 508 callback->ucb_fn = NULL; in rte_intr_callback_register() 519 TAILQ_INSERT_TAIL(&(src->callbacks), callback, next); in rte_intr_callback_register() 531 free(callback); in rte_intr_callback_register() 532 callback = NULL; in rte_intr_callback_register() [all …]
|
| /dpdk/app/test-bbdev/ |
| H A D | main.h | 95 test_callback *callback; member 108 .callback = test_func_##name, \
|
| H A D | main.c | 323 ret |= (int) t->callback(); in run_all_tests() 335 ret |= (int) tp->test_to_run[i]->callback(); in run_parsed_tests()
|
| /dpdk/doc/guides/nics/ |
| H A D | vhost.rst | 78 The user can register an event callback handler with ``rte_eth_dev_callback_register()``. 79 The registered callback handler will be invoked with one of below event types. 87 …e of queue statuses were changed. Call ``rte_eth_vhost_get_queue_event()`` in the callback handler.
|
| /dpdk/lib/argparse/ |
| H A D | rte_argparse.h | 26 * 2) Callback: will invoke user callback to parse. 68 * When this flag is set, the callback type must be used for parsing. 104 * 1) If the filed is NULL, the callback way is used for parsing 112 * used as the first parameter to invoke callback. 156 /** User callback for parsing arguments. */ 157 rte_arg_parser_t callback; 158 /** Opaque which used to invoke callback. */ 164 rte_arg_parser_t callback; global() member
|
| H A D | rte_argparse.c | 142 ARGPARSE_LOG(ERR, "argument %s parsed by callback, value-type should not be set!", in verify_arg_saver() 147 if (obj->callback == NULL) { in verify_arg_saver() 148 ARGPARSE_LOG(ERR, "argument %s parsed by callback, but callback is NULL!", in verify_arg_saver() 192 ARGPARSE_LOG(ERR, "argument %s supports multiple times, should use callback to parse!", in verify_arg_flags() 541 ret = obj->callback((uint32_t)(uintptr_t)arg->val_set, value, obj->opaque); in parse_arg_val()
|
| /dpdk/drivers/common/iavf/ |
| H A D | iavf_adminq.h | 44 void *callback; /* cast from type IAVF_ADMINQ_CALLBACK */ member
|
| /dpdk/drivers/net/qede/base/ |
| H A D | ecore_hsi_init_tool.h | 382 struct init_callback_op callback /* callback init operation */; member
|
| H A D | ecore_init_ops.c | 522 rc = ecore_init_cmd_cb(p_hwfn, p_ptt, &cmd->callback); 524 cmd->callback.callback_id == DMAE_READY_CB)
|
| /dpdk/app/test/ |
| H A D | commands.c | 68 ret = t->callback(); in cmd_autotest_parsed()
|
| /dpdk/doc/guides/rel_notes/ |
| H A D | release_19_08.rst | 256 * eventdev: Event based Rx adapter callback 258 The mbuf pointer array in the event eth Rx adapter callback 263 The callback can drop packets and populate 264 a callback argument with the number of dropped packets.
|