]> git.proxmox.com Git - mirror_ovs.git/blobdiff - lib/odp-execute.h
dpif-netdev: Fix typo in copyright header.
[mirror_ovs.git] / lib / odp-execute.h
index 23dc219f6e9dbc77635c8d08a08c676767025479..a3578a5753d7e9f001aff2b0fb9fbd83f656fb17 100644 (file)
 #include "openvswitch/types.h"
 
 struct nlattr;
-struct dpif_packet;
+struct dp_packet;
 struct pkt_metadata;
+struct dp_packet_batch;
 
-typedef void (*odp_execute_cb)(void *dp, struct dpif_packet **packets, int cnt,
-                               struct pkt_metadata *,
-                               const struct nlattr *action, bool may_steal);
+typedef void (*odp_execute_cb)(void *dp, struct dp_packet_batch *batch,
+                               const struct nlattr *action, bool should_steal);
 
 /* Actions that need to be executed in the context of a datapath are handed
  * 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 dpif_packet **packets, int cnt,
-                         bool steal, struct pkt_metadata *,
+void odp_execute_actions(void *dp, struct dp_packet_batch *batch,
+                         bool steal,
                          const struct nlattr *actions, size_t actions_len,
                          odp_execute_cb dp_execute_action);
 #endif