[ovs-dev] [PATCH] datapath: vxlan: Only set has-GBP bit in header if any other bits would be set
Pravin Shelar
pshelar at nicira.com
Wed Feb 11 23:58:35 UTC 2015
On Mon, Feb 9, 2015 at 7:54 AM, Thomas Graf <tgraf at noironetworks.com> wrote:
> vxlan: Only set has-GBP bit in header if any other bits would be set
>
> This allows for a VXLAN-GBP socket to talk to a Linux VXLAN socket by
> not setting any of the bits.
>
> Signed-off-by: Thomas Graf <tgraf at suug.ch>
> Signed-off-by: David S. Miller <davem at davemloft.net>
>
> Upstream: db79a621835e ("vxlan: Only set has-GBP bit in header if any other bits would be set")
> Signed-off-by: Thomas Graf <tgraf at noironetworks.com>
Acked-by: Pravin B Shelar <pshelar at nicira.com>
> ---
> datapath/linux/compat/vxlan.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/datapath/linux/compat/vxlan.c b/datapath/linux/compat/vxlan.c
> index 9d70611..84a039c 100644
> --- a/datapath/linux/compat/vxlan.c
> +++ b/datapath/linux/compat/vxlan.c
> @@ -214,6 +214,9 @@ static void vxlan_build_gbp_hdr(struct vxlanhdr *vxh, u32 vxflags,
> {
> struct vxlanhdr_gbp *gbp;
>
> + if (!md->gbp)
> + return;
> +
> gbp = (struct vxlanhdr_gbp *)vxh;
> vxh->vx_flags |= htonl(VXLAN_HF_GBP);
>
> --
> 1.9.3
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev
More information about the dev
mailing list