eal: add function to check lcore role