An Ideology, in my view, is often a system of concepts/practices developed for the purpose of manipulating/controlling entities or people, not always for the benefit of all, and often developed and driven by a few. Perhaps this is a restricted view of the term, but I can't fit Buddhism into this definition. Hence I would have difficulty seeing any relationship between Marxism and Buddhism.