[ovs-dev] [PATCH 3/6] vxlan: Add utility functions to the simap data structure.

Ben Pfaff blp at nicira.com
Thu Feb 14 17:37:24 UTC 2013


On Thu, Feb 14, 2013 at 09:37:27AM -0500, Kyle Mestery wrote:
> Add utility functions to the simap structure. These are
> used by future patches in this seris. The functions added are.
> 
> Signed-off-by: Kyle Mestery <kmestery at cisco.com>
> Acked-by: Ethan Jackson <ethan at nicira.com>

Applied to master, thanks.

The standards fascist in me worried a bit about:
> +    if (node) {
> +        simap_delete(simap, node);
> +    }
> +    return node != NULL;
because in C it is technically undefined behavior to do anything to a
freed pointer, even compare it against NULL, so I changed it to avoid
that.



More information about the dev mailing list