From 446de16ff5c8df1914039b826adbbd0ec5ac2adc Mon Sep 17 00:00:00 2001 From: Marek Gradzki Date: Fri, 10 Aug 2018 06:56:36 +0200 Subject: Set mask/match length when using VPP's classfier Adapts hc2vpp to recent VPP api change: https://gerrit.fd.io/r/#/c/13007/ Setting length field is currently mandatory for variable length arrays (VPP-199). Change-Id: I7ce66076d8a29d1ff5dfe5592e651d133e4072aa Signed-off-by: Marek Gradzki --- .../fd/hc2vpp/it/jvpp/benchmark/classify/ClassifyTableProviderImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it/jvpp-benchmark/src/main') diff --git a/it/jvpp-benchmark/src/main/java/io/fd/hc2vpp/it/jvpp/benchmark/classify/ClassifyTableProviderImpl.java b/it/jvpp-benchmark/src/main/java/io/fd/hc2vpp/it/jvpp/benchmark/classify/ClassifyTableProviderImpl.java index 80ebdccd2..8a737d216 100644 --- a/it/jvpp-benchmark/src/main/java/io/fd/hc2vpp/it/jvpp/benchmark/classify/ClassifyTableProviderImpl.java +++ b/it/jvpp-benchmark/src/main/java/io/fd/hc2vpp/it/jvpp/benchmark/classify/ClassifyTableProviderImpl.java @@ -17,7 +17,6 @@ package io.fd.hc2vpp.it.jvpp.benchmark.classify; import io.fd.vpp.jvpp.core.dto.ClassifyAddDelTable; -import java.io.Serializable; import java.util.Random; import javax.annotation.concurrent.NotThreadSafe; @@ -66,6 +65,7 @@ class ClassifyTableProviderImpl implements ClassifyTableProvider { addDelTable.skipNVectors = 0; addDelTable.matchNVectors = 1; addDelTable.mask = new byte[16]; + addDelTable.maskLen = 16; rnd.nextBytes(addDelTable.mask); return addDelTable; } -- cgit 1.2.3-korg