ethdev: replace single bit masks with macros