[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openvswitch-discuss
Subject:    [ovs-discuss] what need to to add action in datapath(kernel)
From:       601358880 () qq ! com (=?gb18030?B?WWFuZyBZYW5uYW4=?=)
Date:       2015-01-28 13:05:51
Message-ID: tencent_78E60F4D42DDD6B102410EE5 () qq ! com
[Download RAW message or body]

hi
if adding a action in datapath,like push_mpls, what else need to do?
sth I think need to do is:
in datapath(kernel)
1. openvswitch.h
 add OVS_ACTION_ATTR_,ovs_action_
2. flow-netlink.c
add the length and validate the action
3.actions.c
execute actions according to nla_type.
xlate
1. ofproto-dpif-xlate.c
do_xlate_actions_,change flow according to the type of ofpact.
2. odp-util.c
commit the action and write it into odp-actions of xout.
3. in userspace ,execute action when needing help.
and adding  it as ofpact is omitted. this part seems not that tough.

regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/discuss/attachments/20150128/68a00e29/attachment.html>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic