It seems to me that if $f$ is strictly monotonic, $m \circ f=f \circ m$, but when it is nonlinear,and the question reduces to $\mu \circ f \ne f \circ \mu$$\mu\circ f>f\circ\mu$, which is covered by Jensen's inequality. ThoseSo strict convexity and strict monotonicity together would be like a sufficient condition, at least.