| /dpdk/app/test/ |
| H A D | test_devargs.c | 91 if ((list[i].bus_kv > 0 || list[i].bus != NULL) && in test_valid_devargs_cases() 94 list[i].devargs); in test_valid_devargs_cases() 100 if (list[i].bus != NULL && in test_valid_devargs_cases() 103 list[i].devargs, da.bus->name, list[i].bus); in test_valid_devargs_cases() 106 if ((list[i].class_kv > 0 || list[i].class != NULL) && in test_valid_devargs_cases() 109 list[i].devargs); in test_valid_devargs_cases() 118 list[i].devargs, da.cls->name, list[i].class); in test_valid_devargs_cases() 124 if (list[i].name != NULL && in test_valid_devargs_cases() 127 list[i].devargs, da.name, list[i].name); in test_valid_devargs_cases() 172 ret = test_valid_devargs_cases(list, RTE_DIM(list)); in test_valid_devargs() [all …]
|
| /dpdk/drivers/net/qede/base/ |
| H A D | bcm_osal.h | 204 (list)->head = NULL; \ 206 (list)->cnt = 0; \ 219 (list)->cnt++; \ 232 (list)->cnt++; \ 236 (type *)((list)->head) 242 (list)->head = (list)->head->next; \ 248 (list)->cnt--; \ 252 (list)->tail = (list)->tail->prev; \ 258 (list)->cnt--; \ 263 (list)->cnt--; \ [all …]
|
| H A D | ecore_spq.c | 678 struct ecore_spq_entry, list); in ecore_spq_get_entry() 727 OSAL_LIST_PUSH_TAIL(&p_ent->list, in ecore_spq_add_entry() 738 list); in ecore_spq_add_entry() 760 OSAL_LIST_PUSH_TAIL(&p_ent->list, &p_spq->pending); in ecore_spq_add_entry() 764 OSAL_LIST_PUSH_HEAD(&p_ent->list, &p_spq->pending); in ecore_spq_add_entry() 808 OSAL_LIST_REMOVE_ENTRY(&p_ent->list, head); in ecore_spq_post_list() 809 OSAL_LIST_PUSH_TAIL(&p_ent->list, in ecore_spq_post_list() 815 OSAL_LIST_REMOVE_ENTRY(&p_ent->list, in ecore_spq_post_list() 836 struct ecore_spq_entry, list); in ecore_spq_pend_post() 969 list, struct ecore_spq_entry) { in ecore_spq_completion() [all …]
|
| /dpdk/drivers/common/mlx5/ |
| H A D | mlx5_common_utils.c | 37 struct mlx5_list *list; in mlx5_list_create() local 49 if (!list) in mlx5_list_create() 64 if (mlx5_list_init(&list->l_inconst, &list->l_const, gc) != 0) { in mlx5_list_create() 65 mlx5_free(list); in mlx5_list_create() 69 return list; in mlx5_list_create() 126 return _mlx5_list_lookup(&list->l_inconst, &list->l_const, ctx); in mlx5_list_lookup() 273 entry = _mlx5_list_register(&list->l_inconst, &list->l_const, ctx, in mlx5_list_register() 335 ret = _mlx5_list_unregister(&list->l_inconst, &list->l_const, entry, in mlx5_list_unregister() 374 mlx5_list_uninit(&list->l_inconst, &list->l_const); in mlx5_list_destroy() 375 mlx5_free(list); in mlx5_list_destroy() [all …]
|
| H A D | mlx5_common_utils.h | 187 struct mlx5_list_entry *mlx5_list_lookup(struct mlx5_list *list, 202 struct mlx5_list_entry *mlx5_list_register(struct mlx5_list *list, 218 int mlx5_list_unregister(struct mlx5_list *list, 228 void mlx5_list_destroy(struct mlx5_list *list); 240 mlx5_list_get_entry_num(struct mlx5_list *list);
|
| /dpdk/lib/stack/ |
| H A D | rte_stack_lf_c11.h | 34 __rte_stack_lf_push_elems(struct rte_stack_lf_list *list, in __rte_stack_lf_push_elems() argument 42 old_head = list->head; in __rte_stack_lf_push_elems() 59 (rte_int128_t *)&list->head, in __rte_stack_lf_push_elems() 69 __atomic_add_fetch(&list->len, num, __ATOMIC_RELEASE); in __rte_stack_lf_push_elems() 73 __rte_stack_lf_pop_elems(struct rte_stack_lf_list *list, in __rte_stack_lf_pop_elems() argument 83 len = __atomic_load_n(&list->len, __ATOMIC_RELAXED); in __rte_stack_lf_pop_elems() 91 if (__atomic_compare_exchange_n(&list->len, in __rte_stack_lf_pop_elems() 101 old_head = list->head; in __rte_stack_lf_pop_elems() 137 old_head = list->head; in __rte_stack_lf_pop_elems() 159 (rte_int128_t *)&list->head, in __rte_stack_lf_pop_elems()
|
| H A D | rte_stack_lf_generic.h | 34 __rte_stack_lf_push_elems(struct rte_stack_lf_list *list, in __rte_stack_lf_push_elems() argument 42 old_head = list->head; in __rte_stack_lf_push_elems() 64 (rte_int128_t *)&list->head, in __rte_stack_lf_push_elems() 71 rte_atomic64_add((rte_atomic64_t *)&list->len, num); in __rte_stack_lf_push_elems() 75 __rte_stack_lf_pop_elems(struct rte_stack_lf_list *list, in __rte_stack_lf_pop_elems() argument 85 uint64_t len = rte_atomic64_read((rte_atomic64_t *)&list->len); in __rte_stack_lf_pop_elems() 91 if (rte_atomic64_cmpset((volatile uint64_t *)&list->len, in __rte_stack_lf_pop_elems() 96 old_head = list->head; in __rte_stack_lf_pop_elems() 132 old_head = list->head; in __rte_stack_lf_pop_elems() 141 (rte_int128_t *)&list->head, in __rte_stack_lf_pop_elems()
|
| H A D | rte_stack_lf_stubs.h | 19 __rte_stack_lf_push_elems(struct rte_stack_lf_list *list, in __rte_stack_lf_push_elems() argument 26 RTE_SET_USED(list); in __rte_stack_lf_push_elems() 31 __rte_stack_lf_pop_elems(struct rte_stack_lf_list *list, in __rte_stack_lf_pop_elems() argument 38 RTE_SET_USED(list); in __rte_stack_lf_pop_elems()
|
| /dpdk/drivers/common/qat/ |
| H A D | qat_common.c | 31 struct qat_sgl *list = (struct qat_sgl *)list_in; in qat_sgl_fill_array() local 42 list->buffers[nr].len = rte_pktmbuf_data_len(buf) - offset; in qat_sgl_fill_array() 43 list->buffers[nr].resrvd = 0; in qat_sgl_fill_array() 50 buf_len += list->buffers[nr].len; in qat_sgl_fill_array() 53 list->buffers[nr].len -= buf_len - data_len; in qat_sgl_fill_array() 69 list->num_bufs = ++nr; in qat_sgl_fill_array() 71 QAT_DP_LOG(INFO, "SGL with %d buffers:", list->num_bufs); in qat_sgl_fill_array() 72 for (nr = 0; nr < list->num_bufs; nr++) { in qat_sgl_fill_array() 75 nr, list->buffers[nr].len, in qat_sgl_fill_array() 76 list->buffers[nr].addr); in qat_sgl_fill_array() [all …]
|
| /dpdk/drivers/vdpa/ifc/ |
| H A D | ifcvf_vdpa.c | 106 return list; in find_internal_resource_by_vdev() 130 return list; in find_internal_resource_by_dev() 890 if (list == NULL) { in ifcvf_dev_config() 917 if (list == NULL) { in ifcvf_dev_close() 958 if (list == NULL) { in ifcvf_set_features() 989 if (list == NULL) { in ifcvf_get_vfio_group_fd() 1005 if (list == NULL) { in ifcvf_get_vfio_device_fd() 1206 list = rte_zmalloc("ifcvf", sizeof(*list), 0); in ifcvf_pci_probe() 1207 if (list == NULL) in ifcvf_pci_probe() 1266 rte_free(list); in ifcvf_pci_probe() [all …]
|
| /dpdk/drivers/net/ice/ |
| H A D | ice_switch_filter.c | 399 if (!list) { in ice_switch_create() 451 rte_free(list); in ice_switch_create() 1229 list[t].type = ICE_ESP; in ice_switch_parse_pattern() 1287 list[t].type = ICE_AH; in ice_switch_parse_pattern() 1420 list[t].type = ICE_GTP; in ice_switch_parse_pattern() 1453 list[t].type = ICE_GTP; in ice_switch_parse_pattern() 1866 list = rte_zmalloc(NULL, item_num * sizeof(*list), 0); in ice_switch_parse_pattern_action() 1867 if (!list) { in ice_switch_parse_pattern_action() 1921 ((struct sw_meta *)*meta)->list = list; in ice_switch_parse_pattern_action() 1925 rte_free(list); in ice_switch_parse_pattern_action() [all …]
|
| /dpdk/drivers/common/cnxk/ |
| H A D | roc_npc_utils.c | 345 struct npc_prio_flow_list_head *list; in npc_slide_mcam_entries() local 349 list = &npc->prio_flow_list[prio]; in npc_slide_mcam_entries() 355 curr = TAILQ_FIRST(list); in npc_slide_mcam_entries() 483 struct npc_prio_flow_list_head *list; in npc_sort_mcams_by_user_prio_level() local 515 head = TAILQ_FIRST(list); in npc_sort_mcams_by_user_prio_level() 541 struct npc_prio_flow_list_head *list; in npc_insert_into_flow_list() local 545 curr = TAILQ_FIRST(list); in npc_insert_into_flow_list() 598 struct npc_prio_flow_list_head *list; in npc_find_mcam_ref_entry() local 604 head = TAILQ_FIRST(list); in npc_find_mcam_ref_entry() 697 curr = TAILQ_FIRST(list); in npc_delete_prio_list_entry() [all …]
|
| H A D | roc_nix_tm.c | 23 list = &nix->shaper_profile_list; in nix_tm_clear_shaper_profiles() 100 struct nix_tm_node_list *list; in nix_tm_txsch_reg_config() local 113 TAILQ_FOREACH(node, list, node) { in nix_tm_txsch_reg_config() 140 struct nix_tm_node_list *list; in nix_tm_update_parent_info() local 327 struct nix_tm_node_list *list; in nix_tm_bp_config_set() local 409 struct nix_tm_node_list *list; in nix_tm_bp_config_get() local 591 struct nix_tm_node_list *list; in nix_tm_sq_flush_pre() local 704 struct nix_tm_node_list *list; in nix_tm_sq_flush_post() local 971 struct nix_tm_node_list *list; in nix_tm_node_delete() local 1097 struct nix_tm_node_list *list; in nix_tm_assign_resources() local [all …]
|
| H A D | roc_nix_tm_utils.c | 86 struct nix_tm_node_list *list; in nix_tm_find_prio_anchor() local 88 list = nix_tm_node_list(nix, tree); in nix_tm_find_prio_anchor() 117 struct nix_tm_node_list *list; in nix_tm_node_search() local 120 list = nix_tm_node_list(nix, tree); in nix_tm_node_search() 121 TAILQ_FOREACH(node, list, node) { in nix_tm_node_search() 354 struct nix_tm_node_list *list; in nix_tm_check_rr() local 365 TAILQ_FOREACH(node, list, node) { in nix_tm_check_rr() 424 struct nix_tm_node_list *list; in nix_tm_validate_prio() local 923 struct nix_tm_node_list *list; in nix_tm_resource_estimate() local 989 struct nix_tm_node_list *list; in roc_nix_tm_leaf_cnt() local [all …]
|
| /dpdk/drivers/net/mlx5/linux/ |
| H A D | mlx5_os.c | 2013 if (!list) { in mlx5_os_pci_probe_pf() 2036 list[ns].cdev = cdev; in mlx5_os_pci_probe_pf() 2124 memset(&list[ns].info, 0, sizeof(list[ns].info)); in mlx5_os_pci_probe_pf() 2131 list[ns].cdev = cdev; in mlx5_os_pci_probe_pf() 2133 list[ns].ifindex = 0; in mlx5_os_pci_probe_pf() 2163 list[ns].ifindex = in mlx5_os_pci_probe_pf() 2231 qsort(list, ns, sizeof(*list), mlx5_dev_spawn_data_cmp); in mlx5_os_pci_probe_pf() 2239 if (list[0].pf_bond >= 0 && list[0].info.representor) in mlx5_os_pci_probe_pf() 2253 list[i].eth_dev = mlx5_dev_spawn(cdev->dev, &list[i], ð_da, in mlx5_os_pci_probe_pf() 2323 if (list) in mlx5_os_pci_probe_pf() [all …]
|
| /dpdk/doc/guides/prog_guide/ |
| H A D | stack_lib.rst | 45 The lock-free stack consists of a linked list of elements, each containing a 52 list's tail to the current stack head, and using a CAS to swing the stack head 53 pointer to the head of the list. The operation retries if it is unsuccessful 54 (i.e. the list changed between reading the head and modifying it), else it 57 The lock-free pop operation first reserves one or more list elements by 59 without blocking. It then dequeues pointers by walking the list -- starting 61 walking the list, the data pointers are recorded in an object table. 78 1. Thread A reads head pointer X and stores the pointed-to list element. 79 2. Other threads modify the list such that the head pointer is once again X, 83 In this case thread A would not detect that the list had changed, and would [all …]
|
| H A D | timer_lib.rst | 34 This means that adding and removing entries from the timer list for a core can be done in log(n) ti… 39 Depending on the timer state, we know if a timer is present in a list or not: 41 * STOPPED: no owner, not in a list 43 * CONFIG: owned by a core, must not be modified by another core, maybe in a list or not, dependin… 45 * PENDING: owned by a core, present in a list 47 * RUNNING: owned by a core, must not be modified by another core, present in a list 54 the skiplist is used as a regular list by iterating along the level 0 list, which contains all time… 56 To improve performance in the case where there are entries in the timer list but none of those time… 57 the expiry time of the first list entry is maintained within the per-core timer list structure itse… 63 a call to rte_timer_manage() returns without taking a lock in the case where the timer list for the…
|
| /dpdk/drivers/common/dpaax/ |
| H A D | dpaa_of.c | 82 list_add_tail(&f->node.list, &parent->files); in process_file() 131 list_add_tail(&subdir->node.list, &dt->subdirs); in iterate_dir() 171 list_for_each_entry(f, &d->files, node.list) { in linear_dir() 210 list_for_each_entry(dd, &d->subdirs, node.list) { in linear_dir() 229 INIT_LIST_HEAD(&root_dir.node.list); in of_init_path() 251 list_for_each_entry_safe(f, tmpf, &d->files, node.list) { in destroy_dir() 252 list_del(&f->node.list); in destroy_dir() 257 list_del(&dd->node.list); in destroy_dir() 335 list_for_each_entry(f, &d->files, node.list) in of_get_property() 404 if (c->node.list.next == &p->subdirs) in of_get_next_child() [all …]
|
| /dpdk/examples/ipsec-secgw/test/ |
| H A D | tun_aesgcm_defs.sh | 37 ssh ${REMOTE_HOST} ip xfrm policy list 38 ssh ${REMOTE_HOST} ip xfrm state list 72 ssh ${REMOTE_HOST} ip xfrm policy list 73 ssh ${REMOTE_HOST} ip xfrm state list 107 ssh ${REMOTE_HOST} ip xfrm policy list 108 ssh ${REMOTE_HOST} ip xfrm state list 140 ssh ${REMOTE_HOST} ip xfrm policy list 141 ssh ${REMOTE_HOST} ip xfrm state list
|
| H A D | tun_aesctr_sha1_defs.sh | 37 ssh ${REMOTE_HOST} ip xfrm policy list 38 ssh ${REMOTE_HOST} ip xfrm state list 72 ssh ${REMOTE_HOST} ip xfrm policy list 73 ssh ${REMOTE_HOST} ip xfrm state list 107 ssh ${REMOTE_HOST} ip xfrm policy list 108 ssh ${REMOTE_HOST} ip xfrm state list 140 ssh ${REMOTE_HOST} ip xfrm policy list 141 ssh ${REMOTE_HOST} ip xfrm state list
|
| H A D | tun_3descbc_sha1_defs.sh | 37 ssh ${REMOTE_HOST} ip xfrm policy list 38 ssh ${REMOTE_HOST} ip xfrm state list 72 ssh ${REMOTE_HOST} ip xfrm policy list 73 ssh ${REMOTE_HOST} ip xfrm state list 107 ssh ${REMOTE_HOST} ip xfrm policy list 108 ssh ${REMOTE_HOST} ip xfrm state list 140 ssh ${REMOTE_HOST} ip xfrm policy list 141 ssh ${REMOTE_HOST} ip xfrm state list
|
| H A D | tun_aescbc_sha1_defs.sh | 37 ssh ${REMOTE_HOST} ip xfrm policy list 38 ssh ${REMOTE_HOST} ip xfrm state list 72 ssh ${REMOTE_HOST} ip xfrm policy list 73 ssh ${REMOTE_HOST} ip xfrm state list 107 ssh ${REMOTE_HOST} ip xfrm policy list 108 ssh ${REMOTE_HOST} ip xfrm state list 140 ssh ${REMOTE_HOST} ip xfrm policy list 141 ssh ${REMOTE_HOST} ip xfrm state list
|
| /dpdk/drivers/net/vhost/ |
| H A D | rte_eth_vhost.c | 519 return list; in find_internal_resource() 801 if (list == NULL) { in new_device() 806 eth_dev = list->eth_dev; in new_device() 861 if (list == NULL) { in destroy_device() 957 if (list == NULL) { in vring_state_changed() 1006 if (list) in vhost_driver_setup() 1009 list = rte_zmalloc_socket(name, sizeof(*list), 0, numa_node); in vhost_driver_setup() 1010 if (list == NULL) in vhost_driver_setup() 1058 rte_free(list); in vhost_driver_setup() 1200 if (list) { in eth_dev_close() [all …]
|
| /dpdk/drivers/net/cnxk/ |
| H A D | cnxk_ethdev_sec.c | 87 struct cnxk_eth_sec_sess_list *list; in cnxk_eth_sec_sess_get_by_spi() local 90 list = inb ? &dev->inb.list : &dev->outb.list; in cnxk_eth_sec_sess_get_by_spi() 91 TAILQ_FOREACH(eth_sec, list, entry) { in cnxk_eth_sec_sess_get_by_spi() 106 TAILQ_FOREACH(eth_sec, &dev->inb.list, entry) { in cnxk_eth_sec_sess_get_by_sess() 112 TAILQ_FOREACH(eth_sec, &dev->outb.list, entry) { in cnxk_eth_sec_sess_get_by_sess()
|
| /dpdk/doc/guides/compressdevs/ |
| H A D | overview.rst | 21 "Out-of-place Scatter-gather list Input, Scatter-gather list Output", 26 "Out-of-place Scatter-gather list Input, Linear Buffers Output", 31 "Out-of-place Linear Buffers Input, Scatter-gather list Output",
|