Lines Matching refs:socket
768 int socket, ret; in init_routing_table() local
771 for (socket = 0; socket < RTE_MAX_NUMA_NODES; socket++) { in init_routing_table()
772 if (socket_lpm[socket]) { in init_routing_table()
773 lpm = socket_lpm[socket]; in init_routing_table()
789 socket, in init_routing_table()
796 if (socket_lpm6[socket]) { in init_routing_table()
797 lpm6 = socket_lpm6[socket]; in init_routing_table()
813 socket, in init_routing_table()
824 setup_port_tbl(struct lcore_queue_conf *qconf, uint32_t lcore, int socket, in setup_port_tbl() argument
835 socket)) == NULL) { in setup_port_tbl()
851 int socket; in setup_queue_tbl() local
856 socket = rte_lcore_to_socket_id(lcore); in setup_queue_tbl()
857 if (socket == SOCKET_ID_ANY) in setup_queue_tbl()
858 socket = 0; in setup_queue_tbl()
866 socket)) == NULL) { in setup_queue_tbl()
892 MBUF_DATA_SIZE, socket); in setup_queue_tbl()
910 int socket; in init_mem() local
920 socket = rte_lcore_to_socket_id(lcore_id); in init_mem()
922 if (socket == SOCKET_ID_ANY) in init_mem()
923 socket = 0; in init_mem()
925 if (socket_lpm[socket] == NULL) { in init_mem()
926 RTE_LOG(INFO, IP_RSMBL, "Creating LPM table on socket %i\n", socket); in init_mem()
927 snprintf(buf, sizeof(buf), "IP_RSMBL_LPM_%i", socket); in init_mem()
933 lpm = rte_lpm_create(buf, socket, &lpm_config); in init_mem()
938 socket_lpm[socket] = lpm; in init_mem()
941 if (socket_lpm6[socket] == NULL) { in init_mem()
942 RTE_LOG(INFO, IP_RSMBL, "Creating LPM6 table on socket %i\n", socket); in init_mem()
943 snprintf(buf, sizeof(buf), "IP_RSMBL_LPM_%i", socket); in init_mem()
945 lpm6 = rte_lpm6_create(buf, socket, &lpm6_config); in init_mem()
950 socket_lpm6[socket] = lpm6; in init_mem()
1002 int ret, socket; in main() local
1070 socket = rte_lcore_to_socket_id(portid); in main()
1071 if (socket == SOCKET_ID_ANY) in main()
1072 socket = 0; in main()
1077 rxq->lpm = socket_lpm[socket]; in main()
1078 rxq->lpm6 = socket_lpm6[socket]; in main()
1126 socket, &rxq_conf, in main()
1152 socket = (int) rte_lcore_to_socket_id(lcore_id); in main()
1154 printf("txq=%u,%d,%d ", lcore_id, queueid, socket); in main()
1161 socket, txconf); in main()
1168 setup_port_tbl(qconf, lcore_id, socket, portid); in main()