Classification of restricted Lie algebras with tame principal block