[ovs-dev] [CudaMailTagged] Adding a field in the struct flow
joe at ovn.org
Wed Apr 13 17:39:01 UTC 2016
On 13 April 2016 at 00:04, Amrane Ait Zeouay <a.zeouayamran at gmail.com> wrote:
> I want to add a field to the struct flow, and i checked the FAQ 'How do I
> add support for a new field or header?' but i didn't understand it, what i
> want to do is add a field in the flow and then when it will be parsed it
> will call an external function, the field is not in the packet it's just in
> the flow table.
> Thank you.
> Best regards
There are plenty of examples of fields like this already in struct
flow, for instance the OpenFlow metadata and registers. They don't
exist in the packet, but adding them to 'struct flow' allows you to
program the flow table to match on different values of the field and
perform the behaviour that you want.
More information about the dev