If you feel the onset of swelling coming, get up and go for a walk. Even in the flight cabin when there's limited space, just going for a short walk to the bathroom or down the aisle and back will help. Walking helps to bring back proper blood circulation, which stops the swelling from getting worse.