Re: [ovs-dev] [PATCH 04/12] hash: Skip invoking mhash_add__() with zero input.

2016-10-10 Thread Bodireddy, Bhanuprakash
>-Original Message- >From: Jarno Rajahalme [mailto:ja...@ovn.org] >Sent: Friday, October 7, 2016 10:09 PM >To: Bodireddy, Bhanuprakash <bhanuprakash.bodire...@intel.com> >Cc: dev@openvswitch.org >Subject: Re: [ovs-dev] [PATCH 04/12] hash: Skip invoking mhash_

Re: [ovs-dev] [PATCH 04/12] hash: Skip invoking mhash_add__() with zero input.

2016-10-07 Thread Jarno Rajahalme
> On Oct 7, 2016, at 9:17 AM, Bhanuprakash Bodireddy > wrote: > > mhash_add__() is expensive and should be only called with valid input. > This patch will validate the input before invoking the mhash_add__ and > there by saving some cpu cycles. > >

[ovs-dev] [PATCH 04/12] hash: Skip invoking mhash_add__() with zero input.

2016-10-07 Thread Bhanuprakash Bodireddy
mhash_add__() is expensive and should be only called with valid input. This patch will validate the input before invoking the mhash_add__ and there by saving some cpu cycles. Signed-off-by: Bhanuprakash Bodireddy Signed-off-by: Antonio Fischetti