aboutsummaryrefslogtreecommitdiff
path: root/lib/odp-execute.c
AgeCommit message (Collapse)Author
2013-10-21odp-execute: Fix possible segfault.Alex Wang
In current code, the odp_execute_actions() function does not check the value of "userspace" function pointer before invoking it. This patch adds a check for it. Signed-off-by: Alex Wang <alexw@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
2013-10-09Add software switch support for modifying ARP headers in OpenFlow.Ben Pfaff
This support is added through the userspace slow path, because we don't judge that this is important enough to require permanent support in the Linux kernel ABI. Bug #19259. CC: Teemu Koponen <koponen@nicira.com> CC: Pankaj Thakkar <thakkar@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
2013-10-09odp-execute: Refine signatures for odp_execute_actions() callbacks.Ben Pfaff
Signed-off-by: Ben Pfaff <blp@nicira.com>
2013-09-04dpif: fix segfault in CONTROLLER action with sflow or ipfix setupRomain Lenglet
Signed-off-by: Romain Lenglet <rlenglet@vmware.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
2013-08-22ofproto-dpif: Add SCTP supportJoe Stringer
Reviewed-by: Simon Horman <horms@verge.net.au> Signed-off-by: Joe Stringer <joe@wand.net.nz> Signed-off-by: Ben Pfaff <blp@nicira.com>
2013-08-13flow: Rename skb_mark to pkt_mark.Jesse Gross
The skb_mark field is currently only available with the Linux datapath and is only used internally. However, it is desirable to expose this through OpenFlow and when it is exposed ideally it would not be system- specific. In preparation for this, skb_mark is rename to pkt_mark in internal data structures for consistency. This does not rename the Linux interfaces because doing so would break the API. It would not necessarily be desirable to do anyways since in Linux-specific code it is clearer to use the actual name rather than a generic one. This can lead to confusion in some places, however, because we do not always strictly separate generic and platform dependent code (one example is actions). This seems inevitable though at this point if the lower and upper layers have different names (as they must given the above requirements). Signed-off-by: Jesse Gross <jesse@nicira.com> Acked-by: Andy Zhou <azhou@nicira.com>
2013-06-11odp-execute: Style fixesJoe Stringer
Signed-off-by: Joe Stringer <joe@wand.net.nz> Signed-off-by: Ben Pfaff <blp@nicira.com>
2013-06-05ofproto-dpif: Use execute_actions to execute controller actionsSimon Horman
Now that execute_actions() is available it can be used as a generic replacement for special-case action execution in execute_controller_action(). As suggested by Jesse Gross. Signed-off-by: Simon Horman <horms@verge.net.au> Signed-off-by: Ben Pfaff <blp@nicira.com>
2013-06-05odp-execute: Add set skb_mark, set_priority, tunnel support.Simon Horman
The motivation for this is to allow such actions to be honoured if they are encountered; by the user-space datapath before recirculation; or by internal processing of actions by ovs-vswitchd before recirculation. Recirculation will be added by a subsequent patch. Signed-off-by: Simon Horman <horms@verge.net.au> Signed-off-by: Ben Pfaff <blp@nicira.com>
2013-05-29odp-execute: New module for executing datapath actions.Simon Horman
This moves generic action execution code out of lib/dpif-netedev.c and into a new file, lib/odp-execute.c. This is in preparation for using odp_execute_actions() in lib/odp-util.c to handle recirculation/ Signed-off-by: Simon Horman <horms@verge.net.au> Signed-off-by: Ben Pfaff <blp@nicira.com>