[ovs-dev] [PATCH] tunnel: Zero keys if marked as not present.

Pravin Shelar pshelar at nicira.com
Wed Nov 7 19:13:02 UTC 2012


On Wed, Nov 7, 2012 at 8:58 AM, Jesse Gross <jesse at nicira.com> wrote:

> On Tue, Nov 6, 2012 at 8:04 PM, Pravin Shelar <pshelar at nicira.com> wrote:
>
>>
>>
>>
>> On Tue, Nov 6, 2012 at 6:32 PM, Jesse Gross <jesse at nicira.com> wrote:
>>
>>> If a key used to find a port then we mark it as being not present
>>> (previously this was accomplished by setting it to zero).  However,
>>> we also still pass the key to userspace which could lead to an
>>> inconsistent state.  This also zeros out the key as before in order
>>> to make our reported results consistent.
>>>
>>>
>> I am not sure why is it inconsistent, zeroing key can not mean it is not
>> present since zero is valid key. only key_present flag can be used for
>> check and I think it is set correctly.
>>
>
> It's possible to have a key that is present and zero but it's illogical to
> have a value for a key that nominally doesn't exist.
>
I think key_present flags that matters and value of key not. key value
least can be used for debugging as we getting it for free.

either ways it does not matter much.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-dev/attachments/20121107/fc86482f/attachment-0003.html>


More information about the dev mailing list