Re: [ovs-dev] [PATCH v3 1/3] dpif-netdev: use dpif_packet structure for packets

2014-06-13 Thread Ben Pfaff
On Fri, Jun 06, 2014 at 05:13:13PM -0700, Daniele Di Proietto wrote: > 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 u

Re: [ovs-dev] [PATCH v3 1/3] dpif-netdev: use dpif_packet structure for packets

2014-06-06 Thread Jarno Rajahalme
> On Jun 6, 2014, at 10:03 PM, Daniele Di Proietto > wrote: > >> - Related to the above, I don't see why cloning an ofpbuf to the dpif_packet >> should be necessary. Maybe later patches get rid of the copying? > > It is necessary, for example in dpif_netdev_execute: we get an ofpbuf and we >

Re: [ovs-dev] [PATCH v3 1/3] dpif-netdev: use dpif_packet structure for packets

2014-06-06 Thread Daniele Di Proietto
void adding dpif_packet (for now). Thanks, Daniele - Original Message - From: "Jarno Rajahalme" To: "Daniele Di Proietto" Cc: dev@openvswitch.org Sent: Friday, June 6, 2014 8:04:37 PM Subject: Re: [ovs-dev] [PATCH v3 1/3] dpif-netdev: use dpif_packet structure for packe

Re: [ovs-dev] [PATCH v3 1/3] dpif-netdev: use dpif_packet structure for packets

2014-06-06 Thread Jarno Rajahalme
Some high-level comments for now: - dpif_packet should not be defined ofpbuf.h. If it is exposed in the dpif API, then it should be in dpif-provider.h, if it is private to dpif-netdev, then somewhere else. - I would prefer not try to hide that dpif_packet contains an ofpbuf, i.e., do not intro

[ovs-dev] [PATCH v3 1/3] dpif-netdev: use dpif_packet structure for packets

2014-06-06 Thread Daniele Di Proietto
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 --- lib/dpif-netdev.c