Magnetic flux control of chiral Majorana edge modes in topological superconductor