Is there a way to set the dst_port of the tunnel via flows? I know you can
use "options:dst_port=xxx" to set it on the bridge port. ovs-ofctl will
take options:dst_port=flow but I can't find what it would take to actually
set the port in the flow.

I imagine not since I can only see fields like "tun_id, tun_src, tun_dst,
NXM_NX_TUN_ID, NXM_NX_TUN_IPV4_SRC, NXM_NX_TUN_IPV4_DST" in the code.

If dst_port cannot be set via the flow what is the technical limitation?

The use case I was attempting was to be able to have two bridges on a
single host, where one bridge sends vxlan packets to the other bridge and I
want to keep that vxlan encapsulation without it being stripped by a vxlan
port. If you have a vxlan port on the receiving bridge then the vxlan is
stripped. So I thought maybe if the sending bridge could set a different
dst_port then the vxlan packet would just make it to the receiving bridge
as a typical ip/udp packet.

I see the below errors now when I try do prototype this. I am down in the
kernel or datapath the udp/vxlan header is seen so ovs is looking for a
vxlan port. Is that right? If so is there a way to add a flow that would
somehow mask the tunnel processing or grab the packet before the tunnel
stuff was processed?

2015-08-21T19:31:30.479Z|00026|ofproto_dpif_upcall(handler6)|INFO|received
packet on unassociated datapath port 8
2015-08-21T19:31:31.902Z|00005|tunnel(revalidator7)|WARN|receive tunnel
port not found
(tcp,tun_id=0x14,tun_src=10.1.1.2,tun_dst=10.1.1.1,tun_tos=0,t
un_ttl=64,key,metadata=0,in_port=8,vlan_tci=0x0000,dl_src=f6:00:00:0c:01:03,dl_dst=f6:00:00:0c:01:04,nw_src=10.2.1.3,nw_dst=10.2.1.4,nw_tos=0,nw_ecn=
0,nw_ttl=64,tp_src=58099,tp_dst=80,tcp_flags=0x002)
2015-08-21T19:31:33.483Z|00027|tunnel(handler6)|WARN|receive tunnel port
not found (tcp,tun_id=0x14,tun_src=10.1.1.2,tun_dst=10.1.1.1,tun_tos=0,tun_t
tl=64,key,metadata=0,in_port=8,vlan_tci=0x0000,dl_src=f6:00:00:0c:01:03,dl_dst=f6:00:00:0c:01:04,nw_src=10.2.1.3,nw_dst=10.2.1.4,nw_tos=0,nw_ecn=0,nw
_ttl=64,tp_src=58099,tp_dst=80,tcp_flags=0x002)
2015-08-21T19:31:33.483Z|00028|ofproto_dpif_upcall(handler6)|INFO|received
packet on unassociated datapath port 8
2015-08-21T19:31:35.483Z|00029|tunnel(handler6)|WARN|receive tunnel port
not found (arp,tun_id=0x14,tun_src=10.1.1.2,tun_dst=10.1.1.1,tun_tos=0,tun_t
tl=64,key,metadata=0,in_port=8,vlan_tci=0x0000,dl_src=f6:00:00:0c:01:03,dl_dst=f6:00:00:0c:01:04,arp_spa=10.2.1.3,arp_tpa=10.2.1.4,arp_op=1,arp_sha=f
6:00:00:0c:01:03,arp_tha=00:00:00:00:00:00)
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to