A single printf() costs more clock cycles than processing a packet through
the entire forwarding graph. It's not OK to call vlib_log() in data plane
code.  

 

D.

 

From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of Vadim Platonov
via lists.fd.io
Sent: Friday, September 2, 2022 8:14 AM
To: vpp-dev@lists.fd.io
Subject: [vpp-dev] vlib_log assert in dataplane workers

 

Hi,

 

Could you explain the reason of the assert
https://github.com/FDio/vpp/blob/master/src/vlib/log.c#L146?

Is this the performance reason?

Could we use vlib_log on dataplane workers?

 

Best Regards,

 

Vadim Platonov

 

 

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21845): https://lists.fd.io/g/vpp-dev/message/21845
Mute This Topic: https://lists.fd.io/mt/93417565/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to