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.
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss