[ovs-dev] [PATCH] lib/classifier: Fix array splicing.

Ben Pfaff blp at nicira.com
Tue May 13 00:46:48 UTC 2014


On Sun, May 11, 2014 at 11:55:01PM -0700, Jarno Rajahalme wrote:
> Array splicing was broken when multiple elements were being moved,
> resulting in the priority order being mixed.  This came up when the
> highest priority rule from a subtable was removed and the subtable
> needed to be moved down the priority list by more than one position.
> 
> Signed-off-by: Jarno Rajahalme <jrajahalme at nicira.com>

I had to work out an example on paper to figure out what this does.  It
seems to do it inefficiently (and you have said that you will improve
it), but now I understand, at least.

Acked-by: Ben Pfaff <blp at nicira.com>



More information about the dev mailing list