| 686 | } |
| 687 | |
| 688 | void __rte_noinline |
| 689 | __rte_node_stream_alloc(struct rte_graph *graph, struct rte_node *node) |
| 690 | { |
| 691 | uint16_t size = node->size; |
| 692 | |
| 693 | RTE_VERIFY(size != UINT16_MAX); |
| 694 | /* Allocate double amount of size to avoid immediate realloc */ |
| 695 | size = RTE_MIN(UINT16_MAX, RTE_MAX(RTE_GRAPH_BURST_SIZE, size * 2)); |
| 696 | node->objs = rte_realloc_socket(node->objs, size * sizeof(void *), |
| 697 | RTE_CACHE_LINE_SIZE, graph->socket); |
| 698 | RTE_VERIFY(node->objs); |
| 699 | node->size = size; |
| 700 | node->realloc_count++; |
| 701 | } |
| 702 | |
| 703 | void __rte_noinline |
| 704 | __rte_node_stream_alloc_size(struct rte_graph *graph, struct rte_node *node, |
no test coverage detected