vxlan: move GBP header parsing to a separate function