ethdev: avoid undefined behaviour on configuration copy