ethdev: add allocation helper for virtual drivers