examples: fix use of ethdev internal device array