mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +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
@@ -59,6 +59,7 @@ extern "C" {
|
||||
* netdev and access each of those from a different thread.)
|
||||
*/
|
||||
|
||||
struct dpif_packet;
|
||||
struct netdev;
|
||||
struct netdev_class;
|
||||
struct netdev_rxq;
|
||||
@@ -166,12 +167,13 @@ void netdev_rxq_close(struct netdev_rxq *);
|
||||
|
||||
const char *netdev_rxq_get_name(const struct netdev_rxq *);
|
||||
|
||||
int netdev_rxq_recv(struct netdev_rxq *rx, struct ofpbuf **buffers, int *cnt);
|
||||
int netdev_rxq_recv(struct netdev_rxq *rx, struct dpif_packet **buffers,
|
||||
int *cnt);
|
||||
void netdev_rxq_wait(struct netdev_rxq *);
|
||||
int netdev_rxq_drain(struct netdev_rxq *);
|
||||
|
||||
/* Packet transmission. */
|
||||
int netdev_send(struct netdev *, struct ofpbuf *, bool may_steal);
|
||||
int netdev_send(struct netdev *, struct dpif_packet *, bool may_steal);
|
||||
void netdev_send_wait(struct netdev *);
|
||||
|
||||
/* Hardware address. */
|
||||
|
Reference in New Issue
Block a user