ethdev: add private generic device iterator