[ovs-dev] [PATCH] datapath: Memset executed packet's fields using memset.

Jesse Gross jesse at nicira.com
Thu Feb 24 04:41:32 UTC 2011

On Wed, Feb 23, 2011 at 8:14 PM, Ben Pfaff <blp at nicira.com> wrote:
> On Wed, Feb 23, 2011 at 8:07 PM, Jesse Gross <jesse at nicira.com> wrote:
>> Currently we explicitly zero out each of the fields in the OVS_CB for
>> executed packets.  However, it seems simpler and more robust to just
>> memset the whole thing to zero.
>> Signed-off-by: Jesse Gross <jesse at nicira.com>
> Acked-by: Ben Pfaff <blp at nicira.com>
> I don't know whether it's clearer to write packet->cb or OVS_CB(packet)
> as the target of the memset.

I like OVS_CB(packet) a bit better, so I made that change and pushed.

More information about the dev mailing list