Home
last modified time | relevance | path

Searched refs:rsrc (Results 1 – 12 of 12) sorted by relevance

/dpdk/examples/l2fwd-event/
H A Dmain.c91 rsrc->event_mode = true; in l2fwd_event_parse_mode()
165 rsrc->port_pairs = true; in l2fwd_parse_port_pair_config()
311 if (rsrc->evt_vec.enabled && !rsrc->evt_vec.size) { in l2fwd_event_parse_args()
317 if (rsrc->evt_vec.enabled && !rsrc->evt_vec.timeout_ns) { in l2fwd_event_parse_args()
385 if (rsrc->event_mode) in l2fwd_launch_one_lcore()
409 if (rsrc->force_quit) in check_all_ports_link_status()
572 print_stats(rsrc); in l2fwd_event_print_stats()
692 if (rsrc->event_mode) in main()
714 if (rsrc->event_mode) in main()
717 check_all_ports_link_status(rsrc, rsrc->enabled_port_mask); in main()
[all …]
H A Dl2fwd_event.c205 while (!rsrc->force_quit) { in l2fwd_event_loop_single()
252 while (!rsrc->force_quit) { in l2fwd_event_loop_burst()
303 l2fwd_event_loop(rsrc, in l2fwd_event_main_loop_tx_d()
381 &rsrc->eth_addr[vec->port]); in l2fwd_event_vector_fwd()
436 while (!rsrc->force_quit) { in l2fwd_event_loop_vector()
501 l2fwd_event_loop_vector(rsrc, in l2fwd_event_main_loop_tx_d_mac_vec()
508 l2fwd_event_loop_vector(rsrc, in l2fwd_event_main_loop_tx_d_brst_mac_vec()
515 l2fwd_event_loop_vector(rsrc, in l2fwd_event_main_loop_tx_q_mac_vec()
522 l2fwd_event_loop_vector(rsrc, in l2fwd_event_main_loop_tx_q_brst_mac_vec()
560 rsrc->evt_rsrc = evt_rsrc; in l2fwd_event_resource_setup()
[all …]
H A Dl2fwd_poll.c15 dst_port = rsrc->dst_ports[portid]; in l2fwd_poll_simple_forward()
17 if (rsrc->mac_updating) in l2fwd_poll_simple_forward()
24 rsrc->port_stats[dst_port].tx += sent; in l2fwd_poll_simple_forward()
62 while (!rsrc->force_quit) { in l2fwd_poll_main_loop()
78 rsrc->port_stats[port_id].tx += sent; in l2fwd_poll_main_loop()
94 rsrc->port_stats[port_id].rx += nb_rx; in l2fwd_poll_main_loop()
124 rsrc->rx_queue_per_lcore) { in l2fwd_poll_lcore_config()
163 &rsrc->port_stats[port_id].dropped); in l2fwd_poll_init_tx_buffers()
180 rsrc->poll_rsrc = poll_rsrc; in l2fwd_poll_resource_setup()
181 l2fwd_poll_lcore_config(rsrc); in l2fwd_poll_resource_setup()
[all …]
H A Dl2fwd_event_internal_port.c22 struct l2fwd_event_resources *evt_rsrc = rsrc->evt_rsrc; in l2fwd_event_device_setup_internal_port()
38 if ((rsrc->enabled_port_mask & (1 << port_id)) == 0) in l2fwd_event_device_setup_internal_port()
183 event_q_conf.schedule_type = rsrc->sched_type; in l2fwd_event_queue_setup_internal_port()
215 if ((rsrc->enabled_port_mask & (1 << port_id)) == 0) in l2fwd_rx_tx_adapter_setup_internal_port()
231 if ((rsrc->enabled_port_mask & (1 << port_id)) == 0) in l2fwd_rx_tx_adapter_setup_internal_port()
234 if (rsrc->evt_vec.enabled) { in l2fwd_rx_tx_adapter_setup_internal_port()
243 eth_q_conf.vector_sz = rsrc->evt_vec.size; in l2fwd_rx_tx_adapter_setup_internal_port()
245 rsrc->evt_vec.timeout_ns; in l2fwd_rx_tx_adapter_setup_internal_port()
246 eth_q_conf.vector_mp = rsrc->evt_vec_pool; in l2fwd_rx_tx_adapter_setup_internal_port()
262 eth_q_conf.ev.sched_type = rsrc->sched_type; in l2fwd_rx_tx_adapter_setup_internal_port()
[all …]
H A Dl2fwd_event.h16 typedef uint32_t (*event_device_setup_cb)(struct l2fwd_resources *rsrc);
17 typedef void (*event_port_setup_cb)(struct l2fwd_resources *rsrc);
18 typedef void (*event_queue_setup_cb)(struct l2fwd_resources *rsrc,
20 typedef void (*adapter_setup_cb)(struct l2fwd_resources *rsrc);
21 typedef void (*event_loop_cb)(struct l2fwd_resources *rsrc);
68 void l2fwd_event_resource_setup(struct l2fwd_resources *rsrc);
71 void l2fwd_event_service_setup(struct l2fwd_resources *rsrc);
H A Dl2fwd_common.h125 struct l2fwd_resources *rsrc = mz->addr; in l2fwd_get_rsrc() local
127 memset(rsrc, 0, sizeof(struct l2fwd_resources)); in l2fwd_get_rsrc()
128 rsrc->mac_updating = true; in l2fwd_get_rsrc()
129 rsrc->event_mode = true; in l2fwd_get_rsrc()
130 rsrc->rx_queue_per_lcore = 1; in l2fwd_get_rsrc()
131 rsrc->sched_type = RTE_SCHED_TYPE_ATOMIC; in l2fwd_get_rsrc()
132 rsrc->timer_period = 10 * rte_get_timer_hz(); in l2fwd_get_rsrc()
142 int l2fwd_event_init_ports(struct l2fwd_resources *rsrc);
H A Dl2fwd_event_generic.c20 l2fwd_event_device_setup_generic(struct l2fwd_resources *rsrc) in l2fwd_event_device_setup_generic() argument
22 struct l2fwd_event_resources *evt_rsrc = rsrc->evt_rsrc; in l2fwd_event_device_setup_generic()
40 if ((rsrc->enabled_port_mask & (1 << port_id)) == 0) in l2fwd_event_device_setup_generic()
180 event_q_conf.schedule_type = rsrc->sched_type; in l2fwd_event_queue_setup_generic()
243 eth_q_conf.ev.sched_type = rsrc->sched_type; in l2fwd_rx_tx_adapter_setup_generic()
245 if ((rsrc->enabled_port_mask & (1 << port_id)) == 0) in l2fwd_rx_tx_adapter_setup_generic()
248 if (rsrc->evt_vec.enabled) { in l2fwd_rx_tx_adapter_setup_generic()
257 eth_q_conf.vector_sz = rsrc->evt_vec.size; in l2fwd_rx_tx_adapter_setup_generic()
259 rsrc->evt_vec.timeout_ns; in l2fwd_rx_tx_adapter_setup_generic()
260 eth_q_conf.vector_mp = rsrc->evt_vec_pool; in l2fwd_rx_tx_adapter_setup_generic()
[all …]
H A Dl2fwd_common.c8 l2fwd_event_init_ports(struct l2fwd_resources *rsrc) in l2fwd_event_init_ports() argument
24 if (rsrc->event_mode) { in l2fwd_event_init_ports()
38 if ((rsrc->enabled_port_mask & (1 << port_id)) == 0) { in l2fwd_event_init_ports()
79 rte_eth_macaddr_get(port_id, &rsrc->eth_addr[port_id]); in l2fwd_event_init_ports()
89 rsrc->pktmbuf_pool); in l2fwd_event_init_ports()
112 RTE_ETHER_ADDR_BYTES(&rsrc->eth_addr[port_id])); in l2fwd_event_init_ports()
H A Dl2fwd_poll.h10 typedef void (*poll_main_loop_cb)(struct l2fwd_resources *rsrc);
23 void l2fwd_poll_resource_setup(struct l2fwd_resources *rsrc);
/dpdk/drivers/common/cnxk/
H A Droc_sso_irq.c11 struct sso_rsrc *rsrc = param; in sso_hwgrp_irq() local
14 intr = plt_read64(rsrc->base + SSO_LF_GGRP_INT); in sso_hwgrp_irq()
21 plt_write64(intr, rsrc->base + SSO_LF_GGRP_INT); in sso_hwgrp_irq()
26 struct sso_rsrc *rsrc) in sso_hwgrp_register_irq() argument
33 plt_write64(~0ull, rsrc->base + SSO_LF_GGRP_INT_ENA_W1C); in sso_hwgrp_register_irq()
45 struct sso_rsrc *rsrc = param; in sso_hws_irq() local
48 intr = plt_read64(rsrc->base + SSOW_LF_GWS_INT); in sso_hws_irq()
55 plt_write64(intr, rsrc->base + SSOW_LF_GWS_INT); in sso_hws_irq()
60 struct sso_rsrc *rsrc) in sso_hws_register_irq() argument
125 struct sso_rsrc *rsrc) in sso_hwgrp_unregister_irq() argument
[all …]
/dpdk/examples/l3fwd/
H A Dl3fwd_event.c24 static struct l3fwd_event_resources *rsrc; in l3fwd_get_eventdev_rsrc() local
26 if (rsrc != NULL) in l3fwd_get_eventdev_rsrc()
27 return rsrc; in l3fwd_get_eventdev_rsrc()
29 rsrc = rte_zmalloc("l3fwd", sizeof(struct l3fwd_event_resources), 0); in l3fwd_get_eventdev_rsrc()
30 if (rsrc != NULL) { in l3fwd_get_eventdev_rsrc()
31 rsrc->sched_type = RTE_SCHED_TYPE_ATOMIC; in l3fwd_get_eventdev_rsrc()
32 rsrc->eth_rx_queues = 1; in l3fwd_get_eventdev_rsrc()
33 return rsrc; in l3fwd_get_eventdev_rsrc()
/dpdk/drivers/event/dlb2/pf/base/
H A Ddlb2_resource.c61 static void dlb2_init_fn_rsrc_lists(struct dlb2_function_resources *rsrc) in dlb2_init_fn_rsrc_lists() argument
64 dlb2_list_init_head(&rsrc->avail_domains); in dlb2_init_fn_rsrc_lists()
65 dlb2_list_init_head(&rsrc->used_domains); in dlb2_init_fn_rsrc_lists()
66 dlb2_list_init_head(&rsrc->avail_ldb_queues); in dlb2_init_fn_rsrc_lists()
67 dlb2_list_init_head(&rsrc->avail_dir_pq_pairs); in dlb2_init_fn_rsrc_lists()
70 dlb2_list_init_head(&rsrc->avail_ldb_ports[i]); in dlb2_init_fn_rsrc_lists()