mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 22:05:19 +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
@@ -622,7 +622,7 @@ netdev_rxq_close(struct netdev_rxq *rx)
|
||||
* This function may be set to null if it would always return EOPNOTSUPP
|
||||
* anyhow. */
|
||||
int
|
||||
netdev_rxq_recv(struct netdev_rxq *rx, struct ofpbuf **buffers, int *cnt)
|
||||
netdev_rxq_recv(struct netdev_rxq *rx, struct dpif_packet **buffers, int *cnt)
|
||||
{
|
||||
int retval;
|
||||
|
||||
@@ -663,7 +663,7 @@ netdev_rxq_drain(struct netdev_rxq *rx)
|
||||
* Some network devices may not implement support for this function. In such
|
||||
* cases this function will always return EOPNOTSUPP. */
|
||||
int
|
||||
netdev_send(struct netdev *netdev, struct ofpbuf *buffer, bool may_steal)
|
||||
netdev_send(struct netdev *netdev, struct dpif_packet *buffer, bool may_steal)
|
||||
{
|
||||
int error;
|
||||
|
||||
|
Reference in New Issue
Block a user