vxlan: move IPv6 outpute route calculation to a function