Re: [vpp-dev] VAT to PAPI issue with policer

2019-09-18 Thread Jan Gelety via Lists.Fd.Io
Hello, Skip_n_vectors is 0 as the mask (as well as match value) is already shifted by one vector in PAPI: VAT mask: PAPI mask: But there was

Re: [vpp-dev] VAT to PAPI issue with policer

2019-09-18 Thread Vratko Polak -X (vrpolak - PANTHEON TECHNOLOGIES at Cisco) via Lists.Fd.Io
VAT classify_add_del_session contains "skip_n 1", but PAPI classify_add_del_session does not contain "skip_n_vectors" argument, (so the default 0 is used). Not sure whether that is causing the different behavior, but there may be other differences. Vratko. From: csit-...@lists.fd.io On Behalf

[vpp-dev] VAT to PAPI issue with policer

2019-09-18 Thread Jan Gelety via Lists.Fd.Io
Hello vpp-dev, We are converting CSIT Policer.py library to use PAPI instead of VAT commands. Unfortunately policer functional test is failing with "Invalid DSCP: 0, should be 20 " in case of configuration via PAPI. The root cause seems to be that policer_index is not set for policer-classify