Lines Matching refs:socket

767 	int socket, ret;  in init_routing_table()  local
770 for (socket = 0; socket < RTE_MAX_NUMA_NODES; socket++) { in init_routing_table()
771 if (socket_lpm[socket]) { in init_routing_table()
772 lpm = socket_lpm[socket]; in init_routing_table()
788 socket, in init_routing_table()
795 if (socket_lpm6[socket]) { in init_routing_table()
796 lpm6 = socket_lpm6[socket]; in init_routing_table()
812 socket, in init_routing_table()
823 setup_port_tbl(struct lcore_queue_conf *qconf, uint32_t lcore, int socket, in setup_port_tbl() argument
834 socket)) == NULL) { in setup_port_tbl()
850 int socket; in setup_queue_tbl() local
855 socket = rte_lcore_to_socket_id(lcore); in setup_queue_tbl()
856 if (socket == SOCKET_ID_ANY) in setup_queue_tbl()
857 socket = 0; in setup_queue_tbl()
864 socket)) == NULL) { in setup_queue_tbl()
887 MBUF_DATA_SIZE, socket); in setup_queue_tbl()
904 int socket; in init_mem() local
914 socket = rte_lcore_to_socket_id(lcore_id); in init_mem()
916 if (socket == SOCKET_ID_ANY) in init_mem()
917 socket = 0; in init_mem()
919 if (socket_lpm[socket] == NULL) { in init_mem()
920 RTE_LOG(INFO, IP_RSMBL, "Creating LPM table on socket %i\n", socket); in init_mem()
921 snprintf(buf, sizeof(buf), "IP_RSMBL_LPM_%i", socket); in init_mem()
927 lpm = rte_lpm_create(buf, socket, &lpm_config); in init_mem()
932 socket_lpm[socket] = lpm; in init_mem()
935 if (socket_lpm6[socket] == NULL) { in init_mem()
936 RTE_LOG(INFO, IP_RSMBL, "Creating LPM6 table on socket %i\n", socket); in init_mem()
937 snprintf(buf, sizeof(buf), "IP_RSMBL_LPM_%i", socket); in init_mem()
939 lpm6 = rte_lpm6_create(buf, socket, &lpm6_config); in init_mem()
944 socket_lpm6[socket] = lpm6; in init_mem()
996 int ret, socket; in main() local
1064 socket = rte_lcore_to_socket_id(portid); in main()
1065 if (socket == SOCKET_ID_ANY) in main()
1066 socket = 0; in main()
1071 rxq->lpm = socket_lpm[socket]; in main()
1072 rxq->lpm6 = socket_lpm6[socket]; in main()
1120 socket, &rxq_conf, in main()
1146 socket = (int) rte_lcore_to_socket_id(lcore_id); in main()
1148 printf("txq=%u,%d,%d ", lcore_id, queueid, socket); in main()
1155 socket, txconf); in main()
1162 setup_port_tbl(qconf, lcore_id, socket, portid); in main()