| /dpdk/drivers/net/hns3/ |
| H A D | hns3_rxtx_vec.h | 14 struct rte_mbuf **free = txq->free; in hns3_tx_bulk_free_buffers() local 36 if (nb_free && m->pool != free[0]->pool) { in hns3_tx_bulk_free_buffers() 37 rte_mempool_put_bulk(free[0]->pool, (void **)free, in hns3_tx_bulk_free_buffers() 41 free[nb_free++] = m; in hns3_tx_bulk_free_buffers() 45 rte_mempool_put_bulk(free[0]->pool, (void **)free, nb_free); in hns3_tx_bulk_free_buffers()
|
| /dpdk/lib/port/ |
| H A D | rte_swx_port_ring.c | 76 free(p->pkts); in reader_create() 77 free(p->params.name); in reader_create() 78 free(p); in reader_create() 146 free(p->pkts); in reader_free() 147 free(p->params.name); in reader_free() 148 free(p); in reader_free() 216 free(p->pkts); in writer_create() 217 free(p); in writer_create() 285 free(p->pkts); in writer_free() 287 free(port); in writer_free() [all …]
|
| H A D | rte_swx_port_fd.c | 57 free(p); in reader_create() 82 free(p->pkts); in reader_free() 83 free(p); in reader_free() 185 free(p); in writer_create() 270 free(p->pkts); in writer_free() 271 free(p); in writer_free() 287 .free = reader_free, 294 .free = writer_free,
|
| H A D | rte_swx_port_ethdev.c | 73 free(p); in reader_create() 151 free(p->pkts); in reader_free() 152 free(p); in reader_free() 205 free(p); in writer_create() 285 free(p->pkts); in writer_free() 286 free(port); in writer_free() 302 .free = reader_free, 309 .free = writer_free,
|
| /dpdk/lib/pipeline/ |
| H A D | rte_swx_pipeline_spec.c | 44 free(s->name); in extobj_spec_free() 50 free(s->pragma); in extobj_spec_free() 82 free(s->name); in extobj_statement_parse() 119 free(s->name); in struct_spec_free() 128 free(s->fields); in struct_spec_free() 264 free(name); in struct_block_parse() 301 free(s->name); in header_spec_free() 516 free(instr); in action_block_parse() 689 free(name); in table_key_block_parse() 781 free(name); in table_actions_block_parse() [all …]
|
| H A D | rte_swx_ctl.c | 290 free(entry); in table_entry_free() 770 free(m); in selector_group_members_free() 793 free(m); in selector_pending_group_members_free() 1177 free(ctl); in rte_swx_ctl_pipeline_free() 2062 free(m); in rte_swx_ctl_pipeline_selector_group_delete() 2166 free(m); in rte_swx_ctl_pipeline_selector_group_member_delete() 2236 free(g); in selector_rollfwd_finalize() 2825 free(s0); in rte_swx_ctl_pipeline_table_entry_read() 2830 free(s0); in rte_swx_ctl_pipeline_table_entry_read() 2949 free(s0); in rte_swx_ctl_pipeline_learner_default_entry_read() [all …]
|
| /dpdk/drivers/net/i40e/ |
| H A D | i40e_rxtx_vec_common.h | 88 struct rte_mbuf *m, *free[RTE_I40E_TX_MAX_FREE_BUF_SZ]; in i40e_tx_free_bufs() local 105 free[i] = txep[i].mbuf; in i40e_tx_free_bufs() 108 rte_mempool_put_bulk(free[0]->pool, (void **)free, n); in i40e_tx_free_bufs() 114 free[0] = m; in i40e_tx_free_bufs() 119 if (likely(m->pool == free[0]->pool)) { in i40e_tx_free_bufs() 120 free[nb_free++] = m; in i40e_tx_free_bufs() 122 rte_mempool_put_bulk(free[0]->pool, in i40e_tx_free_bufs() 123 (void *)free, in i40e_tx_free_bufs() 125 free[0] = m; in i40e_tx_free_bufs() 130 rte_mempool_put_bulk(free[0]->pool, (void **)free, nb_free); in i40e_tx_free_bufs()
|
| /dpdk/devtools/cocci/ |
| H A D | nullfree.cocci | 2 // Remove unnecessary NULL pointer checks before free functions 3 // All these functions work like libc free which allows 4 // free(NULL) as a no-op. 10 - if (E != NULL) free(E); 11 + free(E);
|
| /dpdk/lib/eal/common/ |
| H A D | hotplug_mp.c | 178 free(bundle->peer); in __handle_secondary_request() 179 free(bundle); in __handle_secondary_request() 204 free(bundle); in handle_secondary_request() 216 free(bundle->peer); in handle_secondary_request() 217 free(bundle); in handle_secondary_request() 286 free(da); in __handle_primary_request() 299 free(bundle->peer); in __handle_primary_request() 300 free(bundle); in __handle_primary_request() 338 free(bundle); in handle_primary_request() 352 free(bundle->peer); in handle_primary_request() [all …]
|
| H A D | eal_common_trace_utils.c | 151 free(arg); in eal_trace_args_save() 168 free(arg->val); in eal_trace_args_free() 169 free(arg); in eal_trace_args_free() 235 free(pattern); in eal_trace_mode_args_save() 240 free(pattern); in eal_trace_mode_args_save() 263 free(dir_path); in eal_trace_dir_args_save() 333 free(dir_path); in trace_mkdir() 338 free(dir_path); in trace_mkdir()
|
| H A D | malloc_mp.c | 289 free(ms); in handle_alloc_request() 350 free(entry); in handle_request() 393 free(entry); in handle_request() 462 free(entry); in handle_sync_response() 487 free(entry); in handle_sync_response() 532 free(state->ms); in handle_sync_response() 533 free(entry); in handle_sync_response() 588 free(entry); in handle_rollback_response() 688 free(reply.msgs); in request_sync() 767 free(entry); in request_to_primary() [all …]
|
| /dpdk/app/test/ |
| H A D | resource.c | 120 free(p); in resource_untar() 130 free(p); in resource_untar() 170 free(p); in resource_untar() 176 free(p); in resource_untar() 206 free(p); in resource_rm_by_tar() 256 free(p); in resource_rm_by_tar() 260 free(p); in resource_rm_by_tar() 265 free(p); in resource_rm_by_tar()
|
| H A D | test_graph_perf.c | 309 free(ename[i]); in graph_node_count_edges() 441 free(ename[k]); in graph_init() 495 free(ename[j]); in graph_init() 504 free(ename[k]); in graph_init() 567 free(ename[k]); in graph_init() 586 free(node_map); in graph_init() 589 free(snk_nodes); in graph_init() 590 free(src_nodes); in graph_init() 595 free(node_map); in graph_init() 599 free(snk_nodes); in graph_init() [all …]
|
| H A D | test_barrier.c | 210 free(pt); in plock_test() 211 free(lpt); in plock_test() 212 free(sum); in plock_test() 262 free(pt); in plock_test() 263 free(lpt); in plock_test() 264 free(sum); in plock_test()
|
| /dpdk/doc/guides/prog_guide/ |
| H A D | stack_lib.rst | 13 user-specified socket, with either standard (lock-based) or lock-free 23 * Query a stack's current depth and number of free entries. 28 The library supports two types of stacks: standard (lock-based) and lock-free. 42 Lock-free Stack 45 The lock-free stack consists of a linked list of elements, each containing a 47 lock-free property means that multiple threads can push and pop simultaneously, 51 The lock-free push operation enqueues a linked list of pointers by pointing the 57 The lock-free pop operation first reserves one or more list elements by 63 The linked list elements themselves are maintained in a lock-free LIFO, and are 67 The lock-free behavior is selected by passing the *RTE_STACK_F_LF* flag to
|
| /dpdk/drivers/net/dpaa/fmlib/ |
| H A D | fm_lib.c | 57 free(p_dev); in fm_open() 90 free(p_dev); in fm_close() 132 free(p_dev); in fm_pcd_open() 160 free(p_dev); in fm_pcd_close() 241 free(p_dev); in fm_pcd_net_env_characteristics_delete() 318 free(p_dev); in fm_pcd_kg_scheme_delete() 348 free(p_dev); in fm_port_open() 380 free(p_fm_port); in fm_port_open() 381 free(p_dev); in fm_port_open() 388 free(p_dev); in fm_port_open() [all …]
|
| /dpdk/drivers/net/mlx5/ |
| H A D | mlx5_utils.c | 216 pool->cfg.free(olc); in mlx5_ipool_update_global_cache() 262 pool->cfg.free(olc); in mlx5_ipool_allocate_from_global() 308 pool->cfg.free(p); in mlx5_ipool_allocate_from_global() 324 pool->cfg.free(p); in mlx5_ipool_allocate_from_global() 355 pool->cfg.free(olc); in mlx5_ipool_allocate_from_global() 492 pool->cfg.free(olc); in _mlx5_ipool_free_cache() 550 trunk->free--; in mlx5_ipool_malloc() 554 if (!trunk->free) { in mlx5_ipool_malloc() 609 trunk->free++; in mlx5_ipool_free() 720 pool->cfg.free(gc); in mlx5_ipool_destroy() [all …]
|
| /dpdk/drivers/net/ixgbe/ |
| H A D | ixgbe_rxtx_vec_common.h | 83 struct rte_mbuf *m, *free[RTE_IXGBE_TX_MAX_FREE_BUF_SZ]; in ixgbe_tx_free_bufs() local 99 free[0] = m; in ixgbe_tx_free_bufs() 104 if (likely(m->pool == free[0]->pool)) in ixgbe_tx_free_bufs() 105 free[nb_free++] = m; in ixgbe_tx_free_bufs() 107 rte_mempool_put_bulk(free[0]->pool, in ixgbe_tx_free_bufs() 108 (void *)free, nb_free); in ixgbe_tx_free_bufs() 109 free[0] = m; in ixgbe_tx_free_bufs() 114 rte_mempool_put_bulk(free[0]->pool, (void **)free, nb_free); in ixgbe_tx_free_bufs()
|
| /dpdk/drivers/mempool/ring/ |
| H A D | rte_mempool_ring.c | 148 .free = common_ring_free, 157 .free = common_ring_free, 166 .free = common_ring_free, 175 .free = common_ring_free, 185 .free = common_ring_free, 195 .free = common_ring_free,
|
| /dpdk/lib/metrics/ |
| H A D | rte_metrics_telemetry.c | 70 free(xstats_names); in rte_metrics_tel_reg_port_ethdev_to_metrics() 134 free(eth_xstats); in rte_metrics_tel_update_metrics_ethdev() 146 free(eth_xstats); in rte_metrics_tel_update_metrics_ethdev() 149 free(eth_xstats); in rte_metrics_tel_update_metrics_ethdev() 218 free(metrics); in rte_metrics_tel_format_port() 219 free(names); in rte_metrics_tel_format_port() 223 free(metrics); in rte_metrics_tel_format_port() 224 free(names); in rte_metrics_tel_format_port() 354 free(names); in rte_metrics_tel_stat_names_to_ids() 368 free(names); in rte_metrics_tel_stat_names_to_ids() [all …]
|
| /dpdk/lib/ip_frag/ |
| H A D | ip_frag_internal.c | 225 struct ip_frag_pkt *pkt, *free, *stale, *lru; in ip_frag_find() local 232 free = NULL; in ip_frag_find() 238 if ((pkt = ip_frag_lookup(tbl, key, tms, &free, &stale)) == NULL) { in ip_frag_find() 243 free = stale; in ip_frag_find() 250 } else if (free != NULL && in ip_frag_find() 256 free = NULL; in ip_frag_find() 263 if (free != NULL) { in ip_frag_find() 264 ip_frag_tbl_add(tbl, free, key, tms); in ip_frag_find() 265 pkt = free; in ip_frag_find() 286 struct ip_frag_pkt **free, struct ip_frag_pkt **stale) in ip_frag_lookup() argument [all …]
|
| /dpdk/drivers/net/ice/ |
| H A D | ice_rxtx_vec_common.h | 86 struct rte_mbuf *m, *free[ICE_TX_MAX_FREE_BUF_SZ]; in ice_tx_free_bufs_vec() local 102 free[0] = m; in ice_tx_free_bufs_vec() 107 if (likely(m->pool == free[0]->pool)) { in ice_tx_free_bufs_vec() 108 free[nb_free++] = m; in ice_tx_free_bufs_vec() 110 rte_mempool_put_bulk(free[0]->pool, in ice_tx_free_bufs_vec() 111 (void *)free, in ice_tx_free_bufs_vec() 113 free[0] = m; in ice_tx_free_bufs_vec() 118 rte_mempool_put_bulk(free[0]->pool, (void **)free, nb_free); in ice_tx_free_bufs_vec()
|
| /dpdk/lib/ring/ |
| H A D | rte_ring_peek_elem_pvt.h | 117 uint32_t free, head, next; in __rte_ring_do_enqueue_start() local 122 behavior, &head, &next, &free); in __rte_ring_do_enqueue_start() 126 &head, &free); in __rte_ring_do_enqueue_start() 134 free = 0; in __rte_ring_do_enqueue_start() 138 *free_space = free - n; in __rte_ring_do_enqueue_start()
|
| /dpdk/drivers/bus/pci/linux/ |
| H A D | pci.c | 232 free(dev); in pci_scan_one() 240 free(dev); in pci_scan_one() 249 free(dev); in pci_scan_one() 258 free(dev); in pci_scan_one() 267 free(dev); in pci_scan_one() 307 free(dev); in pci_scan_one() 316 free(dev); in pci_scan_one() 330 free(dev); in pci_scan_one() 385 free(dev); in pci_scan_one() 438 free(buf_copy); in parse_pci_addr_format() [all …]
|
| /dpdk/drivers/net/bnxt/ |
| H A D | bnxt_txr.c | 363 struct rte_mbuf **free = txq->free; in bnxt_tx_cmp_fast() local 378 free[blk++] = *tx_buf; in bnxt_tx_cmp_fast() 386 rte_mempool_put_bulk(free[0]->pool, (void *)free, blk); in bnxt_tx_cmp_fast() 396 struct rte_mbuf **free = txq->free; in bnxt_tx_cmp() local 425 free[blk++] = mbuf; in bnxt_tx_cmp() 433 (void *)free, in bnxt_tx_cmp() 437 free[0] = mbuf; in bnxt_tx_cmp() 444 rte_mempool_put_bulk(pool, (void *)free, blk); in bnxt_tx_cmp()
|