We prove a local-global compatibility result in the mod p Langlands program for GL2(Qpf). 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.