Create monitor failed on pipe using doca_switch

Hi everyone,

I have been trying to use doca_switch version 1.5.1) to create flows and monitor the counter of entries. I have been using the following command line:

create monitor flags=4
create pipe port_id=0,root_enable=1,monitor=1

However, following error message appears:
[ERR][dpdk_pipe_common] counter: configured number of resources is 0
[ERR][dpdk_pipe_legacy] failed cresting pipe of type 0: verification rc=-22

If I am reading the code correctly, doca_switch is not using shared counter by a counter per entry. But why is above error showing up?

Many thanks in advance
Kyle

Hi everyone,

The monitor function is working now:
It needs to add following to lines to the switch_init() function:

flow_cfg.resource.nb_counters=8192;
flow_cfg.resource.nb_meters=8192

Best regards
Kyle

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.