On Wed, May 18, 2022 at 1:29 PM 胡兵 <hb_...@163.com> wrote:
>
> Hi,
> My name is Hu, and I want to add a new action in OVS.
> I need to add the datapath ID to each packet processed by the datapath,
> and save the previous datapath ids from the processed packet.
> And I also need the datapath to send the saved datapath IDs to the controller.
> Can someone give me some advice?
>
> I would really appreciate it if someone could give me some useful advice.


I'd suggest you to check out the FAQ here -
https://docs.openvswitch.org/en/latest/faq/contributing/

-----
Q: How do I add support for a new OpenFlow action?

A: Add your new action to enum ofp_raw_action_type in
lib/ofp-actions.c, following the existing pattern. Then recompile and
fix all of the new warnings, implementing new functionality for the
new action as needed. (If you configure with --enable-Werror, as
described in the Open vSwitch on Linux, FreeBSD and NetBSD, then it is
impossible to miss any warnings.)

If you need to add an OpenFlow vendor extension action for a vendor
that doesn’t yet have any extension actions, then you will also need
to add the vendor to vendor_map in build-aux/extract-ofp-actions.
Also, you will need to add support for the vendor to
ofpact_decode_raw() and ofpact_put_raw() in lib/ofp-actions.c. (If you
have a choice of how to design your vendor extension actions, it will
be easier if you make them resemble the ONF and OVS extension
actions.)
----


Also if you're interested you can check this out -
https://dpdksummitbangalore2019.sched.com/event/LUEj/adding-a-new-ovs-action-numan-siddique-red-hat

https://www.youtube.com/watch?v=6uKnpha15xY

Thanks
Numan


>
>
>
>
>
>
>
>
> _______________________________________________
> discuss mailing list
> disc...@openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
_______________________________________________
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to