[ovs-dev] [RFC: add openvswitch actions using BPF 2/2] openvswitch: implements the BPF_PROG action in datapath

Thomas Graf tgraf at noironetworks.com
Thu Feb 5 15:07:33 UTC 2015


On 02/04/15 at 02:48pm, Andy Zhou wrote:
> BPF_PROG action allows an action to be implemented in eBPF language and
> downloaded by the userspace at runtime.
> 
> Signed-off-by: Andy Zhou <azhou at nicira.com>

Thanks a lot for putting this together Andy and Joe and everybody else
who was involved. This is much further than what I expected as a first
step.

One slight open from my side is the avoidance of versioning help of
helpers. We want to avoid v2, v3, ... helpers if the need should arise
to extend an existing helper.

I think it should be doable with BPF to have the verifier accept if
a helper is called with less args than expected, to initialize those
to 0. This would allow for helpers to support additional arguments.

I think this needs to be documented and expectations should be clear.
Other than that I'm very very happy with where this is going.

It seems very doable to also allow for a BPF prog to be registered
upon flow table miss.



More information about the dev mailing list