I would like to restart this discussion as I am having trouble with
configuration + performance. I would like send just tcp traffic via
gre tunnel and would like to push a vlan tag before sending via gre
tunnel. On receive side after gre decapsulation, match should happen
on vlan_vid and configured actions executed. I don't think it is
possible to do this in ovs currently based on what you had described
earlier in another thread, but just want to check again if its indeed
possible then how the flows should be configured on receive side.

On Tx side I have flows configured to match (gre_port = 2, eth_port = 1)

dl_type=0x0800, nw_proto=6, nw_src=<src-ip>,nw-dst=<dst-ip>,
actions=mod_vlan_vid:100,mod_vlan_pcp:4,2
dl_type=0x0800, nw_proto=47, nw_src=<src-ip>, nw-dst=<dst-ip>, actions=1

via tcpdump I see vlan packets encapsulated in gre header.

on Rx side, I had configured

dl_type=0x0800,nw_proto=47,nw_src=<dst-ip>, nw-dst=<src-ip>, actions=resubmit:2
in_port=2,dl_vlan_vid;100,dl_vlan_pcp:4,actions=strip_vlan,0

For packets coming in, first flow is matched for gre, second flow is
never matched.

If i change second flow to

in_port=2,actions=strip_vlan,0

packets are matched but performance is bad. I am getting around
100Kbits/s on a 1G nic. If I understand correctly, part of the issue
is that resubmit action is in userspace, but the bigger question is
why first config on the Rx side doesn't work?

Inputs appreciated.

On Sat, Jun 9, 2012 at 10:03 PM, Jesse Gross <je...@nicira.com> wrote:
> On Jun 10, 2012, at 1:14 PM, ravi kerur <rke...@gmail.com> wrote:
>> I had another question? does OVS support split tunneling i.e. would
>> like to have specific traffic via tunnel ports and other type traffic
>> via normal eth0 ports.
>
> Yes, they both just ports so you should be able to write flows to direct 
> traffic to the correct destination.
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to