ethdev: use hairpin helper functions