[vpp-dev] questions about bihash

2017-09-11 Thread chupenghong
hi,all when a writer adds or deletes some elements in a bucket of a hash table, the bihash algorithm tries to making a working copy of the bucket and the reader may use the working copy to search. However, it is possible for the reader to use the bucket to search before the writer makes the wor

[vpp-dev] Questions about bihash

2017-09-10 Thread chupenghong
hi,all Bihash ___ vpp-dev mailing list vpp-dev@lists.fd.io https://lists.fd.io/mailman/listinfo/vpp-dev

[vpp-dev] why passive time must be greater than active timer in ipfix plugin?

2017-08-30 Thread chupenghong
hi,all I found ipfix plugin declares that passive time must be greater than active timer. At Cisco router, we configure cache active timeout or inactive timeout for ipfix or netflow. I think that active timer in vpp compares to active timeout in Cisco router and passive timer in vpp compar

[vpp-dev] Is there a 'lock' to protect load-balance DPO used by ip4-forward node when route is deleted

2017-08-16 Thread chupenghong
Hi all, I found that the "ip route" command is defined as "mp safe", which means the main thread will execute the command and don't wait for the worker threads to finsh packet processing. When a route is deleted, function "load_balance_unlock" may be called to "free" the load-balance DPO

[vpp-dev] Workers for SNAT may compete for the same outside address and port?

2017-08-02 Thread chupenghong
Hi all, I read the SNAT plugin code and found that 2 or more worker threads may call the function "snat_alloc_outside_address_and_port" to allocate outside address and port at the same time. Because the address and port are allocated from global varible snat_main.addresses , there is a