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 value in "ip4-policer-classify" node is: 


table_index0 =
pcm->classify_table_index_by_sw_if_index[tid][sw_if_index0];


There is no lock protecting the table index.


The function of policer is ok in multi-thread vpp, but I don't know why it is 
lock-free.
Can any one help?


Thanks.


yonggong  
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#11917): https://lists.fd.io/g/vpp-dev/message/11917
Mute This Topic: https://lists.fd.io/mt/29122225/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to