summaryrefslogtreecommitdiff
path: root/lib/odp-execute.h
Commit message (Collapse)AuthorAgeFilesLines
* dpif_packet: Rename to dp_packetPravin B Shelar2015-03-031-3/+3
| | | | | | | | dp_packet is short and better name for datapath packet structure. Signed-off-by: Pravin B Shelar <pshelar@nicira.com> Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
* netdev-dpif: Add metadata to dpif-packet.Pravin B Shelar2014-10-091-2/+1
| | | | | | | | | Today dpif-netdev has single metadat for given batch, since one batch belongs to one port, but soon packets fro single tunnel ports can belong to different ports, so we need to have per packet metadata. Signed-off-by: Pravin B Shelar <pshelar@nicira.com> Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
* dpif-netdev: batch packet processingDaniele Di Proietto2014-06-231-3/+3
| | | | | | | | This change in dpif-netdev allows faster packet processing for devices which implement batching (netdev-dpdk currently). Signed-off-by: Daniele Di Proietto <ddiproietto@vmware.com> Acked-by: Pravin B Shelar <pshelar@nicira.com>
* dpif-netdev: use dpif_packet structure for packetsDaniele Di Proietto2014-06-231-6/+6
| | | | | | | | | | This commit introduces a new data structure used for receiving packets from netdevs and passing them to dpifs. The purpose of this change is to allow storing some private data for each packet. The subsequent commits make use of it. Signed-off-by: Daniele Di Proietto <ddiproietto@vmware.com> Acked-by: Pravin B Shelar <pshelar@nicira.com>
* dpif-netdev: user space datapath recirculationAndy Zhou2014-03-251-1/+1
| | | | | | | | | Add basic recirculation infrastructure and user space data path support for it. The following bond mega flow patch will make use of this infrastructure. Signed-off-by: Andy Zhou <azhou@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
* netdev: Extend rx_recv to pass multiple packets.Pravin2014-03-211-2/+2
| | | | | | | | | DPDK can receive multiple packets but current netdev API does not allow that. Following patch allows dpif-netdev receive batch of packet in a rx_recv() call for any netdev port. This will be used by dpdk-netdev. Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
* dpif: Use explicit packet metadata.Jarno Rajahalme2013-12-301-3/+3
| | | | | | | This helps reduce confusion about when a flow is a flow and when it is just metadata. Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
* odp-execute: Consolidate callbacks.Jarno Rajahalme2013-12-301-7/+9
| | | | | | | Use one callback instead of many, helps in adding new functionality later on. Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
* dpif: Allow execute to modify the packet.Jarno Rajahalme2013-12-161-6/+8
| | | | | | | | | | | | | | | | | | | Allowing the packet to be modified by execution allows less data copying for userspace action execution. Some users of the dpif_execute already expect that the packet may be modified. This patch makes this behavior uniform and makes the userspace datapath and the execution helpers modify the packet as it is being executed. Userspace action now steals the packet if given permission, as the packet is normally not needed after it. The only exception is the sample action, and this is accounted for my keeping track of any actions that could be following the userspace action. The packet in dpif_upcall is changed from a pointer to a struct, allowing the packet to be honest about it's headroom. After this change the packet can safely be pushed on over the precarious 4 byte limit earlier allowed by the netlink data preceding the packet. Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
* odp-execute: Refine signatures for odp_execute_actions() callbacks.Ben Pfaff2013-10-091-2/+4
| | | | Signed-off-by: Ben Pfaff <blp@nicira.com>
* odp-execute: New module for executing datapath actions.Simon Horman2013-05-291-0/+36
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>