Re: [PATCH net-next 5/9] net: openvswitch: optimize flow-mask looking up

2019-10-07 Thread Tonghao Zhang
On Wed, Oct 2, 2019 at 10:03 AM Pravin Shelar wrote: > > On Sun, Sep 29, 2019 at 7:09 PM wrote: > > > > From: Tonghao Zhang > > > > The full looking up on flow table traverses all mask array. > > If mask-array is too large, the number of invalid flow-mask > > increase, performance will be drop.

Re: [PATCH net-next 5/9] net: openvswitch: optimize flow-mask looking up

2019-10-01 Thread Pravin Shelar
On Sun, Sep 29, 2019 at 7:09 PM wrote: > > From: Tonghao Zhang > > The full looking up on flow table traverses all mask array. > If mask-array is too large, the number of invalid flow-mask > increase, performance will be drop. > > This patch optimizes mask-array operation: > > * Inserting, insert

[PATCH net-next 5/9] net: openvswitch: optimize flow-mask looking up

2019-09-29 Thread xiangxia . m . yue
From: Tonghao Zhang The full looking up on flow table traverses all mask array. If mask-array is too large, the number of invalid flow-mask increase, performance will be drop. This patch optimizes mask-array operation: * Inserting, insert it [ma->count- 1] directly. * Removing, only change last