Hi,
I am writing a plugin node which will get packets the usual way.
I will pipeline these packets between my worker threads (in the same
plugin node) using the handoff mechanism available.
Thus, when my plugin node gets a packet, it could have been from an
internal handoff from one of my workers
Thanks for the education. will look into the assembly code.
原始邮件
主题: Re: [vpp-dev] Incrementing node counters
来自: "Dave Barach via Lists.Fd.Io"
发至: 2018年11月3日 下午7:55
抄送: Kingwel Xie ,vpp-dev@lists.fd.io
You’ll have to look at the instruction stream in gdb or else “gcc –S” and l
You’ll have to look at the instruction stream in gdb or else “gcc –S” and look
at the generated assembly-language code. Even at that, the difference in clock
cycles won’t be completely obvious due to subarchitectural CPU implementation
details. “Node” is not a typical hot variable which would en
Thanks for the comments.
I know is_ip6 will be optimized by complier.
I am still wondering how different between using xxx_node.index and
node->node_index. Anyway,thanks, now I understand it is a performance
consideration.
Best Regards,
Kingwel
原始邮件
主题: RE: Incrementing nod