[ovs-dev] [PATCH v2 net-next] ovs: allow nl 'flow set' to use ufid without flow key

pravin shelar pshelar at ovn.org
Fri Mar 11 02:09:13 UTC 2016


On Thu, Mar 10, 2016 at 8:14 AM, Samuel Gauthier
<samuel.gauthier at 6wind.com> wrote:
> When we want to change a flow using netlink, we have to identify it to
> be able to perform a lookup. Both the flow key and unique flow ID
> (ufid) are valid identifiers, but we always have to specify the flow
> key in the netlink message. When both attributes are there, the ufid
> is used. The flow key is used to validate the actions provided by
> the userland.
>
> This commit allows to use the ufid without having to provide the flow
> key, as it is already done in the netlink 'flow get' and 'flow del'
> path. The flow key remains mandatory when an action is provided.
>
> Signed-off-by: Samuel Gauthier <samuel.gauthier at 6wind.com>
> ---
> v2:
>  - Restore mask init and parsing
>  - Keep the flow key mandatory when an action is provided
>
Looks good.

Acked-by: Pravin B Shelar <pshelar at ovn.org>



More information about the dev mailing list