flower_prio_valid = true;
        }
 
+       if (protocol != htons(ETH_P_ALL)) {
+               NL_SET_ERR_MSG(f->common.extack, "matchall rules only supported with 'all' protocol");
+               return -EOPNOTSUPP;
+       }
+
        mall_entry = kzalloc(sizeof(*mall_entry), GFP_KERNEL);
        if (!mall_entry)
                return -ENOMEM;
 
        act = &f->rule->action.entries[0];
 
-       if (act->id == FLOW_ACTION_MIRRED && protocol == htons(ETH_P_ALL)) {
+       if (act->id == FLOW_ACTION_MIRRED) {
                if (flower_prio_valid && mall_entry->ingress &&
                    mall_entry->priority >= flower_min_prio) {
                        NL_SET_ERR_MSG(f->common.extack, "Failed to add behind existing flower rules");
                }
                mall_entry->type = MLXSW_SP_MALL_ACTION_TYPE_MIRROR;
                mall_entry->mirror.to_dev = act->dev;
-       } else if (act->id == FLOW_ACTION_SAMPLE &&
-                  protocol == htons(ETH_P_ALL)) {
+       } else if (act->id == FLOW_ACTION_SAMPLE) {
                if (flower_prio_valid &&
                    mall_entry->priority >= flower_min_prio) {
                        NL_SET_ERR_MSG(f->common.extack, "Failed to add behind existing flower rules");