[ovs-discuss] GRE tunnel outer IP & MAC.

Ben Pfaff blp at nicira.com
Thu Feb 12 00:17:26 UTC 2015


Pravin, I know that our DPDK native tunneling supports VXLAN.  David
is trying to use GRE.  Is this supported?

On Tue, Feb 10, 2015 at 1:52 PM, David Evans <davidjoshuaevans at gmail.com> wrote:
> Hi OVS,
>
> I have 3.18 kernel containing ip_gre & Ovs 2.3.90 & Dpdk 1.7.1
>
> I find that the outer ip & mac are not populated ???  The ofproto/trace
> output thinks that the gre output will have the right src/dest on the outer
> but then it’s gone…
>
> a bug?
> am I missing some setup?
> Wrong kernel ip_gre?
>
> Originating GRE:
> ovs-vsctl add-br b0  -- set bridge b0 datapath_type=netdev
> ovs-vsctl add-port b0 gre0 -- set Interface gre0 type=gre
> options:remote_ip=192.168.56.101
> ovs-vsctl add-port b0 dpdk0 -- set Interface dpdk0 type=dpdk
>
> Output Bridge:
> ovs-vsctl add-br b1  -- set bridge b1 datapath_type=netdev
> ovs-vsctl add-port b1 dpdk1 -- set Interface dpdk1 type=dpdk
> ifconfig b1 192.168.56.102 netmask 255.255.255.0
>
> Set up flows:
> ovs-ofctl del-flows b0
> ovs-ofctl del-flows b1
> -force traffic to gre from dpdk0
> ovs-ofctl add-flow b0 in_port=2,action=output:1
> ovs-ofctl add-flow b0 in_port=1,action=output:0
> -force traffic from b1 to output
> ovs-ofctl add-flow b1 in_port=LOCAL,action=output:1
> ovs-ofctl add-flow b1 in_port=1,action=output:LOCAL
>
> A ofproto/trace says
>
> ovs-appctl ofproto/trace b0 in_port=1,dl_dst=00:e0:ed:52:97:cd
> Bridge: b0
> Flow:
> in_port=1,vlan_tci=0x0000,dl_src=00:00:00:00:00:00,dl_dst=00:e0:ed:52:97:cd,dl_type=0x0000
>
> Rule: table=0 cookie=0 in_port=1
> OpenFlow actions=output:2
>
> Final flow:
> in_port=1,vlan_tci=0x0000,dl_src=00:00:00:00:00:00,dl_dst=00:e0:ed:52:97:cd,dl_type=0x0000
> Megaflow: recirc_id=0,in_port=1,dl_type=0x0000
> Datapath actions:
> tnl_push(tnl_port(5),header(size=38,type=3,eth(dst=00:00:04:04:12:34,src=00:e0:ed:52:97:cb,dl_type=0x0800),ipv4(src=192.168.56.102,dst=192.168.56.101,proto=47,tos=0,ttl=64,frag=0x40),gre((flags=0x0,proto=0x6558))),out_port(2))
>
>
> Regards,
>
> Dave
>
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> http://openvswitch.org/mailman/listinfo/discuss
>



-- 
"I don't normally do acked-by's.  I think it's my way of avoiding
getting blamed when it all blows up."               Andrew Morton



More information about the discuss mailing list