ethdev: fix data reset when allocating port