dpif-netdev: Add function to get pmd using core id.