We plan to implement a new node in VPP. I have the following 2 small questions


(1)    2 + 2 principle



For each vpp node, first it prefetch the next 2 packets (see the following 
codes) and then process the 2 current packets. Do we must  to follow this 
programming style?  Can we do 4+4 or 6+6 ?

{

    vlib_prefetch_buffer_header(...);

    vlib_prefetch_buffer_header(...);



    CLIB_PREFETCH(...);

    CLIB_PREFETCH(...);

}



(2)    Code size for one node

I know that one node's instructions should fit into ICache for the performance 
issue. But the current X86 has 32K ICache, do we need to consider the code size 
of one node ?



Thx



Ming

_______________________________________________
vpp-dev mailing list
[email protected]
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to