During the Nara period, it was called 'tanka' with respect to the 'choka,' and was called 'waka' with respect to 'kanshi' (poetry written in Chinese by Japanese poets) during and after the Heian period.
奈良時代には長歌に対して短歌、平安時代以降は漢詩に対して和歌と呼ばれた。