lib/classifier: Fix array splicing.
authorJarno Rajahalme <jrajahalme@nicira.com>
Mon, 12 May 2014 06:38:44 +0000 (23:38 -0700)
committerJarno Rajahalme <jrajahalme@nicira.com>
Tue, 13 May 2014 04:12:10 +0000 (21:12 -0700)
commit75264fe5f1ceb73a33bcc8e1adb3ad9aad57237d
tree00fe58f9816128e11e8c068a4e756a14b5226553
parentef7889b47d8e6016d460479761dce2daa9fbd127
lib/classifier: Fix array splicing.

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@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/classifier.c