voidattach_port(char *identifier){ portid_t pi = 0; unsigned int socket_id; printf("Attaching a new port...\n"); if (identifier == NULL) { printf("Invalid parameters are specified\n"); return; } if (rte_eth_dev_attach(identifier, &pi)) return; ports[pi].enabled = 1; socket_id = (unsigned)rte_eth_dev_socket_id(pi); /* if socket_id is invalid, set to 0 */ if (check_socket_id(socket_id) < 0) socket..