Lines Matching refs:socket
722 int socket, ret; in init_routing_table() local
725 for (socket = 0; socket < RTE_MAX_NUMA_NODES; socket++) { in init_routing_table()
726 if (socket_lpm[socket]) { in init_routing_table()
727 lpm = socket_lpm[socket]; in init_routing_table()
743 socket, in init_routing_table()
750 if (socket_lpm6[socket]) { in init_routing_table()
751 lpm6 = socket_lpm6[socket]; in init_routing_table()
767 socket, in init_routing_table()
785 int socket; in init_mem() local
795 socket = rte_lcore_to_socket_id(lcore_id); in init_mem()
797 if (socket == SOCKET_ID_ANY) in init_mem()
798 socket = 0; in init_mem()
800 if (socket_direct_pool[socket] == NULL) { in init_mem()
802 socket); in init_mem()
803 snprintf(buf, sizeof(buf), "pool_direct_%i", socket); in init_mem()
806 0, RTE_MBUF_DEFAULT_BUF_SIZE, socket); in init_mem()
811 socket_direct_pool[socket] = mp; in init_mem()
814 if (socket_indirect_pool[socket] == NULL) { in init_mem()
816 socket); in init_mem()
817 snprintf(buf, sizeof(buf), "pool_indirect_%i", socket); in init_mem()
820 socket); in init_mem()
825 socket_indirect_pool[socket] = mp; in init_mem()
828 if (socket_lpm[socket] == NULL) { in init_mem()
829 RTE_LOG(INFO, IP_FRAG, "Creating LPM table on socket %i\n", socket); in init_mem()
830 snprintf(buf, sizeof(buf), "IP_FRAG_LPM_%i", socket); in init_mem()
836 lpm = rte_lpm_create(buf, socket, &lpm_config); in init_mem()
841 socket_lpm[socket] = lpm; in init_mem()
844 if (socket_lpm6[socket] == NULL) { in init_mem()
845 RTE_LOG(INFO, IP_FRAG, "Creating LPM6 table on socket %i\n", socket); in init_mem()
846 snprintf(buf, sizeof(buf), "IP_FRAG_LPM_%i", socket); in init_mem()
848 lpm6 = rte_lpm6_create(buf, socket, &lpm6_config); in init_mem()
853 socket_lpm6[socket] = lpm6; in init_mem()
867 int socket, ret; in main() local
935 socket = (int) rte_lcore_to_socket_id(rx_lcore_id); in main()
936 if (socket == SOCKET_ID_ANY) in main()
937 socket = 0; in main()
941 rxq->direct_pool = socket_direct_pool[socket]; in main()
942 rxq->indirect_pool = socket_indirect_pool[socket]; in main()
943 rxq->lpm = socket_lpm[socket]; in main()
944 rxq->lpm6 = socket_lpm6[socket]; in main()
985 socket, &rxq_conf, in main()
986 socket_direct_pool[socket]); in main()
1020 socket = (int) rte_lcore_to_socket_id(lcore_id); in main()
1027 socket, txconf); in main()