common/sfc_efx/base: add API to compare match specs