ethdev: add helper function to get representor ID