net/ice/base: add helper macros