Let swap ports functions be inlined