Roger Federer has confirmed that he will be out until the grass court season after undergoing arthroscopic surgery on his right knee. Federer, 38, had planned to play in the French Open but revealed he had undergone surgery in Switzerland on Wednesday to help fix his knee. "My right knee has been bothering me for a little while." Federer wrote on social media. "I hoped it would go away but after an examination, and discussion with my team, I decided to have arthroscopic surgery in Switzerland yesterday. "After the procedure, the doctors confirmed that it was the right thing to have done and are very confident of a full recovery. " As a result, I will unfortunately have to miss Dubai, Indian Wells, Bogota, Miami and the French Open. " "I am grateful for everyone's support. "I can't wait to be back playing again soon, see you on the grass!" The surgery switches Federer's focus from Roland Garros to Wimbledon and the 2020 Tokyo Olympics.