Hi,
Whether adding/deleting route is MP safe or not in VPP, or
whether barrier_sync and barrier_release is mandatory for adding/deleting route?
We believe the related structure of fib entry should be MP
safe, so add the one line in ip_api_hookup for testing. The barrier_sync and
barrier_release is not called, the performance has been improved. Is our
modification correct?
am->is_mp_safe[VL_API_IP_ADD_DEL_ROUTE] = 1;
Another related thing curious: There is source code
"am->is_mp_safe[VL_API_IP_ADD_DEL_ROUTE] = 1;" in vpe_api_hookup, implying that
the VL_API_IP_ADD_DEL_ROUTE is mp_safe, but actually there is no
VL_API_IP_ADD_DEL_ROUTE in foreach_vpe_api_msg, and barrier_sync and
barrier_release still been called in debugging.
BR/Lollita Liu