On Thu, Jan 30, 2014 at 1:31 PM, Thomas Morin <thomas.mo...@orange.com> wrote: > Hi, > > I ran into the same issue as the one described below (post on ovs-discuss a > few months back). > > The goal is to use a vport tunnel configured to use a flow-based remote IP, > e.g: > ovs-vscl add-port br-vnet tun-port -- set Interface tun-port type=gre > options:remote_ip=flow > > This works fine on the sending OVS, but on the receiving OVS the same vport > won't receive any traffic (packets received trigger a "receive tunnel port > not found" warning, and are not further processed). > > The original poster had found a workaround relying on also using > options:key=flow, but as far as I understand, this work around should not be > necessary: it just seems that the tunnel matching code is missing a match. > > --- a/ofproto/tunnel.c > +++ b/ofproto/tunnel.c > @@ -427,8 +427,9 @@ tnl_find(const struct flow *flow) OVS_REQ_RDLOCK(rwlock) > { false, false, IP_SRC_ANY }, /* remote_ip, in_key. */ > { true, false, IP_SRC_CFG }, /* remote_ip, local_ip. */ > { true, false, IP_SRC_ANY }, /* remote_ip. */ > - { true, true, IP_SRC_ANY }, /* Flow-based remote. */ > + { true, true, IP_SRC_ANY }, /* Flow-based remote and flow-based > key. */ > { true, true, IP_SRC_FLOW }, /* Flow-based everything. */ > + { false, true, IP_SRC_ANY }, /* Flow-based remote */ > }; > > const struct tnl_match_pattern *p; > > With this patch, a tunnel configured with just remote_ip=flow will work fine > on the receiving end. > One thing that I'm not sure is at which position this pattern should appear > in the list. > The patch also changes the comment for true/true/IP_SRC_ANY.
This looks fine to me although I think that it the new entry belongs first in the list of flow-based types. Can you submit a formal patch with this change? _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev