The surgery and the long-time bed rest limited the blood flow. That's why. Usually lifting the leg can relieve the swelling, this depends on his knee condition of course. His doctor must have given antibiotics, you may give him fresh vegetables and fruits every day, always keep him hydrated. These measures help with the blood flow.