attr_to_mask
if (!val && !(supported_params & attr_to_mask(attr_type)))
if (tb[a] && !(supported_params & attr_to_mask(a))) {