[ovs-dev] [PATCH] odp-util: fill IPv4 ver and head length for tnl_push
Ben Pfaff
blp at ovn.org
Tue Sep 24 19:49:54 UTC 2019
On Tue, Sep 24, 2019 at 01:26:42AM +0800, martinbj2008 at gmail.com wrote:
> From: Martin Zhang <martinbj2008 at gmail.com>
>
> When parse tnl_push, if IPv4 is used,
> we forget to fill the ipv4 version and ip header length fields.
>
> so there is a wrong ip header in the header of "struct ovs_action_push_tnl",
> which will caused wrong packdet sent by dpcl.
>
> test command:
> ovs-appctl dpctl/add-flow "in_port(1),eth_type(0x0800),ipv4(dst=9.9.9.6)" \
> "tnl_push(tnl_port(2),header(size=50,type=4,eth(dst=08:00:27:2e:87:0d,src=98:03:9b:c6:d1:7c,dl_type=0x0800), \
> ipv4(src=10.97.240.147,dst=10.96.74.33,proto=17,tos=0,ttl=64,frag=0x4000), \
> udp(src=0,dst=4789,csum=0x0),vxlan(flags=0x8000000,vni=0x270f)),out_port(3)),4"
>
> Signed-off-by: Martin Zhang <martinbj2008 at gmail.com>
> Signed-off-by: Dujie <dujie at didiglobal.com>
Thanks, applied to master.
More information about the dev
mailing list