He's not a DM, he's a CM. He became a somewhat better defender towards the end of the season, but at the time of the Inter game, he was awful. It just showed what a fool Mazzarri was by putting him at DM to contend with Pirlo.
BTW, he wasn't very effective today against Brazil.