Patronymic

PATRONYMIC – in strict usage, a name formed by the addition of a prefix or suffix indicating sonship or other relationship to the name of one’s father or paternal ancestors, as Johnson (son of John), MacDonald (son of Donald), etc.

Merriam-Webster Online Dictionary
patronymic (noun)
a name derived from that of the father or a paternal ancestor usually by the addition of an affix