mirror of
https://github.com/openvswitch/ovs
synced 2025-09-01 23:05:29 +00:00
dpif-netdev: use dpif_packet structure for packets
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>
This commit is contained in:
committed by
Pravin B Shelar
parent
9441caf372
commit
910885540a
@@ -24,10 +24,10 @@
|
||||
#include "openvswitch/types.h"
|
||||
|
||||
struct nlattr;
|
||||
struct ofpbuf;
|
||||
struct dpif_packet;
|
||||
struct pkt_metadata;
|
||||
|
||||
typedef void (*odp_execute_cb)(void *dp, struct ofpbuf *packet,
|
||||
typedef void (*odp_execute_cb)(void *dp, struct dpif_packet *packet,
|
||||
struct pkt_metadata *,
|
||||
const struct nlattr *action, bool may_steal);
|
||||
|
||||
@@ -35,8 +35,8 @@ typedef void (*odp_execute_cb)(void *dp, struct ofpbuf *packet,
|
||||
* to 'dp_execute_action', if non-NULL. Currently this is called only for
|
||||
* actions OVS_ACTION_ATTR_OUTPUT and OVS_ACTION_ATTR_USERSPACE so
|
||||
* 'dp_execute_action' needs to handle only these. */
|
||||
void odp_execute_actions(void *dp, struct ofpbuf *packet, bool steal,
|
||||
struct pkt_metadata *,
|
||||
const struct nlattr *actions, size_t actions_len,
|
||||
odp_execute_cb dp_execute_action);
|
||||
void odp_execute_actions(void *dp, struct dpif_packet *packet, bool steal,
|
||||
struct pkt_metadata *,
|
||||
const struct nlattr *actions, size_t actions_len,
|
||||
odp_execute_cb dp_execute_action);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user