We prove a local-global compatibility result in the mod p Langlands program for GL2(Q p f ). Namely, given a global residual representation r that is sufficiently generic at p, we prove that the diagram occurring in the corresponding Hecke eigenspace of completed cohomology is determined by the restrictions of r to decomposition groups at p. If these restrictions are moreover semisimple, we show that the (ϕ, Γ)modules attached to this diagram by Breuil give, under Fontaine's equivalence, the tensor inductions of the duals of the restrictions of r to decomposition groups at p.