Knurling long rods is also possible in through feed rolling with special dies. Here is a Ø12 mm EN8 rod with 0.8 mm pitch straight knurling done. Watch the trial video below -

Some details -
Machine model - Baco Smith TR24
Part material - cold drawn EN8.