The Anzhi Makhachkala midfielder has not been called up by Les Bleus since August 2010, and he claims he has paid the price for publicly praising former coach Raymond Domenech.
Domenech handed the 28-year-old his international debut in 2007, but then presided over France's disappointing 2010 FIFA World Cup South Africa™ campaign, after which he left the post.
Successor Laurent Blanc included him in his first squad, but Diarra was then overlooked and that situation has not changed under current France coach Didier Deschamps.
Diarra told L'Equipe: "[My career with] Les Blues is finished. It was great - I met [Patrick] Vieira, [Lilian] Thuram, [Claude] Makelele and [David] Trezeguet.
"I also met Raymond Domenech who got me started with Les Bleus. I praised him in the media, but that did not please his successor who thought I was pro-Domenech. I was just pro-France."