net/ice/base: add helper function for boost TCAM match