ethdev: tidy up endianness handling in flow API