From bb9831403bbedf8a058fd5aa4add449b4b09bbdd Mon Sep 17 00:00:00 2001 From: Brian Russell Date: Wed, 10 Feb 2021 13:56:06 +0000 Subject: tests: test punt policer bound to worker thread Add to the IP[46] punt policer handoff tests by binding the policer to a particular worker and checking all packets are policed on that thread. Type: test Signed-off-by: Brian Russell Change-Id: I7fab28659ccb65f13f841cec65a3f808281b3f90 --- test/vpp_policer.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/vpp_policer.py') diff --git a/test/vpp_policer.py b/test/vpp_policer.py index 7f6d8191138..387ab270214 100644 --- a/test/vpp_policer.py +++ b/test/vpp_policer.py @@ -57,6 +57,10 @@ class VppPolicer(VppObject): self._test.vapi.policer_add_del(is_add=False, name=self.name) self._policer_index = INVALID_INDEX + def bind_vpp_config(self, worker, bind): + self._test.vapi.policer_bind(name=self.name, worker_index=worker, + bind_enable=bind) + def query_vpp_config(self): dump = self._test.vapi.policer_dump( match_name_valid=True, match_name=self.name) -- cgit 1.2.3-korg