[ovs-dev] ip_src_flow

Jarno Rajahalme jrajahalme at nicira.com
Fri Aug 23 22:23:32 UTC 2013


On Aug 23, 2013, at 3:20 PM, Jesse Gross <jesse at nicira.com> wrote:

> On Fri, Aug 23, 2013 at 12:46 PM, Jarno Rajahalme <jrajahalme at nicira.com> wrote:
>> On Aug 23, 2013, at 11:26 AM, Ben Pfaff <blp at nicira.com> wrote:
>>> Looking at tnl_find() in ofproto/tunnel.c, it maintains the invariant
>>> "set <field> to 0 if and only if we set <field>_flow to true", except
>>> for <field> = ip_src.  Is that a bug?
>>> 
>> 
>> No, it is not a bug. Tunnel config allows you to leave local address unset (=0), allowing the selected route to determine the source address to use. Even more, it looks like find_route() in kernel might override the source address, even if it is given (in the config, or in the flow with _flow set to true).
> 
> If you specify a source IP then the kernel should preserve it across
> the route lookup.

Thanks for the correction,

  Jarno


More information about the dev mailing list