[vpp-dev] Timer expiry spikes in TW timer implementation

2018-12-08 Thread shaligram27
Hi, I am trying to implement single 10sec precision periodic timer using TW. Below is the config. using the reference from test_tw_timer.c (Really helpful). tw_timer_wheel_init_2t_1w_2048sl with 0.1 sec granularity. tw_timer_start_2t_1w_2048sl with 100 as ticks. I have used the process node appr

[vpp-dev] vlib_buffer_clone and vlib_buffer_clone_attach #vpp

2018-06-20 Thread shaligram27
Hi, Please help me out in understanding the usage of vlib_buffer_clone and  vlib_buffer_clone_attach. Is there a packet copy involved in vlib_buffer_clone, internally it calls  vlib_buffer_copy. Can we retains the packet buffer for some other node processing, something like ref_count logic but wi