mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 22:35:15 +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
@@ -4,6 +4,8 @@
|
||||
#include <config.h>
|
||||
#include "ofpbuf.h"
|
||||
|
||||
struct dpif_packet;
|
||||
|
||||
#ifdef DPDK_NETDEV
|
||||
|
||||
#include <rte_config.h>
|
||||
@@ -20,7 +22,7 @@
|
||||
|
||||
int dpdk_init(int argc, char **argv);
|
||||
void netdev_dpdk_register(void);
|
||||
void free_dpdk_buf(struct ofpbuf *);
|
||||
void free_dpdk_buf(struct dpif_packet *);
|
||||
int pmd_thread_setaffinity_cpu(int cpu);
|
||||
|
||||
#else
|
||||
@@ -38,7 +40,7 @@ netdev_dpdk_register(void)
|
||||
}
|
||||
|
||||
static inline void
|
||||
free_dpdk_buf(struct ofpbuf *buf OVS_UNUSED)
|
||||
free_dpdk_buf(struct dpif_packet *buf OVS_UNUSED)
|
||||
{
|
||||
/* Nothing */
|
||||
}
|
||||
|
Reference in New Issue
Block a user