net/ice/base: add some helper macros