Lines Matching refs:socket
719 int socket, ret; in init_routing_table() local
722 for (socket = 0; socket < RTE_MAX_NUMA_NODES; socket++) { in init_routing_table()
723 if (socket_lpm[socket]) { in init_routing_table()
724 lpm = socket_lpm[socket]; in init_routing_table()
740 socket, in init_routing_table()
747 if (socket_lpm6[socket]) { in init_routing_table()
748 lpm6 = socket_lpm6[socket]; in init_routing_table()
764 socket, in init_routing_table()
782 int socket; in init_mem() local
792 socket = rte_lcore_to_socket_id(lcore_id); in init_mem()
794 if (socket == SOCKET_ID_ANY) in init_mem()
795 socket = 0; in init_mem()
797 if (socket_direct_pool[socket] == NULL) { in init_mem()
799 socket); in init_mem()
800 snprintf(buf, sizeof(buf), "pool_direct_%i", socket); in init_mem()
803 0, RTE_MBUF_DEFAULT_BUF_SIZE, socket); in init_mem()
808 socket_direct_pool[socket] = mp; in init_mem()
811 if (socket_indirect_pool[socket] == NULL) { in init_mem()
813 socket); in init_mem()
814 snprintf(buf, sizeof(buf), "pool_indirect_%i", socket); in init_mem()
817 socket); in init_mem()
822 socket_indirect_pool[socket] = mp; in init_mem()
825 if (socket_lpm[socket] == NULL) { in init_mem()
826 RTE_LOG(INFO, IP_FRAG, "Creating LPM table on socket %i\n", socket); in init_mem()
827 snprintf(buf, sizeof(buf), "IP_FRAG_LPM_%i", socket); in init_mem()
833 lpm = rte_lpm_create(buf, socket, &lpm_config); in init_mem()
838 socket_lpm[socket] = lpm; in init_mem()
841 if (socket_lpm6[socket] == NULL) { in init_mem()
842 RTE_LOG(INFO, IP_FRAG, "Creating LPM6 table on socket %i\n", socket); in init_mem()
843 snprintf(buf, sizeof(buf), "IP_FRAG_LPM_%i", socket); in init_mem()
845 lpm6 = rte_lpm6_create(buf, socket, &lpm6_config); in init_mem()
850 socket_lpm6[socket] = lpm6; in init_mem()
864 int socket, ret; in main() local
932 socket = (int) rte_lcore_to_socket_id(rx_lcore_id); in main()
933 if (socket == SOCKET_ID_ANY) in main()
934 socket = 0; in main()
938 rxq->direct_pool = socket_direct_pool[socket]; in main()
939 rxq->indirect_pool = socket_indirect_pool[socket]; in main()
940 rxq->lpm = socket_lpm[socket]; in main()
941 rxq->lpm6 = socket_lpm6[socket]; in main()
983 socket, &rxq_conf, in main()
984 socket_direct_pool[socket]); in main()
1018 socket = (int) rte_lcore_to_socket_id(lcore_id); in main()
1025 socket, txconf); in main()