Re: [vpp-dev] About lock-free operation in policer

2019-01-14 Thread Kingwel Xie
: vlib_worker_thread_barrier_sync/ vlib_worker_thread_barrier_release Regards, Kingwel From: vpp-dev@lists.fd.io On Behalf Of blankspot Sent: Tuesday, January 15, 2019 3:00 PM To: vpp-dev Subject: [vpp-dev] About lock-free operation in policer hi all, I have a question about policer classify. The code of bind/unbind

[vpp-dev] About lock-free operation in policer

2019-01-14 Thread blankspot
hi all, I have a question about policer classify. The code of bind/unbind a policer with interface is: if (is_add) pcm->classify_table_index_by_sw_if_index[ti][sw_if_index] = pct[ti]; else pcm->classify_table_index_by_sw_if_index[ti][sw_if_index] = ~0; and the code checking the