Home
last modified time | relevance | path

Searched refs:callback (Results 1 – 25 of 84) sorted by relevance

1234

/dpdk/lib/eal/common/
H A Deal_common_lcore.c247 return callback->init(lcore_id, callback->arg); in callback_init()
257 callback->uninit(lcore_id, callback->arg); in callback_uninit()
263 free(callback->name); in free_callback()
264 free(callback); in free_callback()
277 callback = calloc(1, sizeof(*callback)); in rte_lcore_callback_register()
281 free(callback); in rte_lcore_callback_register()
286 callback->arg = arg; in rte_lcore_callback_register()
304 callback = NULL; in rte_lcore_callback_register()
310 callback->name, callback->init == NULL ? "NO " : "", in rte_lcore_callback_register()
314 return callback; in rte_lcore_callback_register()
[all …]
H A Drte_keepalive.c33 rte_keepalive_failure_callback_t callback; member
91 if (keepcfg->callback) in rte_keepalive_dispatch_pings()
92 keepcfg->callback( in rte_keepalive_dispatch_pings()
118 rte_keepalive_create(rte_keepalive_failure_callback_t callback, in rte_keepalive_create() argument
127 keepcfg->callback = callback; in rte_keepalive_create()
136 rte_keepalive_relay_callback_t callback, in rte_keepalive_register_relay_callback() argument
139 keepcfg->relay_callback = callback; in rte_keepalive_register_relay_callback()
/dpdk/lib/gpudev/
H A Dgpudev.c406 if (callback->event == event && in rte_gpu_callback_register()
414 callback = malloc(sizeof(*callback)); in rte_gpu_callback_register()
415 if (callback == NULL) { in rte_gpu_callback_register()
419 callback->function = function; in rte_gpu_callback_register()
420 callback->user_data = user_data; in rte_gpu_callback_register()
421 callback->event = event; in rte_gpu_callback_register()
460 if (callback->event != event || in rte_gpu_callback_unregister()
466 free(callback); in rte_gpu_callback_unregister()
484 free(callback); in gpu_free_callbacks()
498 if (callback->event != event || callback->function == NULL) in rte_gpu_notify()
[all …]
/dpdk/doc/guides/sample_app_ug/
H A Drxtx_callbacks.rst12 In the sample application a user defined callback is applied to all received
13 packets to add a timestamp. A separate callback is applied to all packets
19 callback.
53 The sections below explain the additional RX/TX callback code.
89 More than one callback can be added and additional information can be passed
90 to callback function pointers as a ``void*``. In the examples above ``NULL``
99 The ``add_timestamps()`` callback is added to the RX port and is applied to
105 :end-before: >8 End of callback addition and application.
115 The ``calc_latency()`` callback is added to the TX port and is applied to all
121 :end-before: >8 End of callback addition.
H A Dtimer.rst83 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.
H A Dkeep_alive.rst25 callback function is invoked to restart the packet processing core;
26 A real life application might use this callback function to notify a
93 fault management entity through a callback function.
99 rte_keepalive and the callback function to invoke in the
H A Dlink_status_intr.rst15 The Link Status Interrupt sample application registers a user space callback for the link status in…
125 An example callback function that has been written as indicated below.
136 The param parameter is the address of the parameter for the callback.
144 :start-after: RTE callback register. 8<
145 :end-before: >8 End of registering lsi interrupt callback.
149 If lsc is initialized with 0, the callback is never called since no interrupt event would ever be p…
/dpdk/lib/eal/freebsd/
H A Deal_interrupts.c87 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()
201 if (callback != NULL) in rte_intr_callback_register()
202 TAILQ_REMOVE(&(src->callbacks), callback, next); in rte_intr_callback_register()
[all …]
/dpdk/doc/guides/prog_guide/
H A Dtelemetry_lib.rst14 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 Dmulti_proc_support.rst229 Before any messages can be received, a callback will need to be registered.
231 function accepts a unique callback name, and a function pointer to a callback
232 that will be called when a message or a request matching this callback name
236 specific callback function, ``rte_mp_action_unregister()`` function can be
237 called to ensure that callback will not be triggered again.
245 * ``name`` - message name. This name must match receivers' callback name.
288 event (such as an alarm) while handling asynchronous IPC callback.
292 callback to), along with a response descriptor like the one described above.
299 To receive a message, a name callback must be registered using the
302 message to be delivered and for the callback to be trigger.
[all …]
H A Devent_ethernet_tx_adapter.rst41 ``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
43 and needs to create an event port for it. The callback is expected to fill the
115 This function calls the start callback of the eventdev PMD if supported,
165 the counts from the eventdev PMD callback if the callback is supported, and
H A Dkernel_nic_interface.rst61 userspace callback and supporting async requests (default=off):
206 callback and locks it back after callback. Also enables asynchronous request to
261 [up|down] dev <ifaceX>``. The DPDK application can register a callback for
283 dev <ifaceX>``. If the user sets this callback function to NULL,
285 callback handler in the rte_kni library ``kni_config_mac_address()``
293 [on|off] dev <ifaceX>``. If the user sets this callback function to
295 callback handler in the rte_kni library ``kni_config_promiscusity()``
303 user sets this callback function to NULL, but sets the ``port_id`` field to
304 a value other than -1, a default callback handler in the rte_kni library
309 the ``rte_kni_handle_request()`` function. Any user callback function
[all …]
H A Dvhost_lib.rst147 This callback is invoked when a virtio device becomes ready. ``vid``
152 This callback is invoked when a virtio device is paused or shut down.
156 This callback is invoked when a specific queue's state is changed, for
161 This callback is invoked when the features is changed. For example,
167 This callback is invoked on new vhost-user socket connection. If DPDK
169 ``destroy_connection`` callback is received.
173 This callback is invoked when vhost-user socket connection is closed.
235 This function is only safe to call in vhost callback functions
255 This function is only safe to call in vhost callback functions
/dpdk/drivers/bus/vdev/
H A Dvdev.c47 rte_vdev_scan_callback callback; member
70 rte_vdev_add_custom_scan(rte_vdev_scan_callback callback, void *user_arg) in rte_vdev_add_custom_scan() argument
78 if (custom_scan->callback == callback && in rte_vdev_add_custom_scan()
86 custom_scan->callback = callback; in rte_vdev_add_custom_scan()
98 rte_vdev_remove_custom_scan(rte_vdev_scan_callback callback, void *user_arg) in rte_vdev_remove_custom_scan() argument
105 if (custom_scan->callback != callback || in rte_vdev_remove_custom_scan()
506 if (custom_scan->callback != NULL) in vdev_scan()
514 custom_scan->callback(custom_scan->user_arg); in vdev_scan()
H A Drte_bus_vdev.h169 rte_vdev_add_custom_scan(rte_vdev_scan_callback callback, void *user_arg);
185 rte_vdev_remove_custom_scan(rte_vdev_scan_callback callback, void *user_arg);
/dpdk/app/test/
H A Dtest_service_cores.c150 service.callback = dummy_cb; in dummy_register()
186 service.callback = dummy_cb; in service_get_by_name()
219 service.callback = dummy_cb; in service_probe_capability()
234 service.callback = dummy_cb; in service_probe_capability()
266 service.callback = dummy_cb; in service_attr_get()
361 service.callback = dummy_cb; in service_lcore_attr_get()
649 service.callback = dummy_mt_safe_cb; in service_threaded_test()
652 service.callback = dummy_mt_unsafe_cb; in service_threaded_test()
789 service.callback = delay_as_a_mt_safe_service; in service_app_lcore_poll_impl()
793 service.callback = delay_as_a_service; in service_app_lcore_poll_impl()
H A Dtest.h186 test_callback *callback; member
195 .callback = func, \
/dpdk/lib/eal/include/
H A Drte_keepalive.h84 rte_keepalive_failure_callback_t callback,
143 rte_keepalive_relay_callback_t callback,
H A Drte_service_component.h37 rte_service_func callback; member
/dpdk/lib/eal/linux/
H A Deal_interrupts.c489 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()
531 free(callback); in rte_intr_callback_register()
532 callback = NULL; in rte_intr_callback_register()
538 free(callback); in rte_intr_callback_register()
[all …]
/dpdk/app/test-bbdev/
H A Dmain.h95 test_callback *callback; member
108 .callback = test_func_##name, \
H A Dmain.c321 ret |= (int) t->callback(); in run_all_tests()
333 ret |= (int) tp->test_to_run[i]->callback(); in run_parsed_tests()
/dpdk/doc/guides/nics/
H A Dvhost.rst72 The user can register an event callback handler with ``rte_eth_dev_callback_register()``.
73 The registered callback handler will be invoked with one of below event types.
81 …e of queue statuses were changed. Call ``rte_eth_vhost_get_queue_event()`` in the callback handler.
/dpdk/drivers/net/tap/
H A Dtap_tcmsgs.c212 int (*callback)(struct nlmsghdr *, void *), void *arg) in qdisc_iterate()
224 if (tap_nl_recv(nlsk_fd, callback, &args) < 0) in qdisc_iterate()
H A Dtap_netlink.h31 int tap_nl_recv(int nlsk_fd, int (*callback)(struct nlmsghdr *, void *),

1234