yanet-platform / yanet

A high performance framework for forwarding traffic based on DPDK
Other
164 stars 17 forks source link

Add a wrapper to encapsulate DPDK burst #175

Open TheRandomCharacter opened 2 months ago

TheRandomCharacter commented 2 months ago

When working with dpdk bursts directly implies that burst length while being an integral part of burst is managed manually. This wrapper is intended to bundle together dpdk bursts cstyle array of pointers to packets with it's length and provide an interface that manages said length automatically.

This approach removes duplicate code of tracking number of packets that are currently in the burst and replaces it with a single implementation in the wrapper.

I would like us to use this wrapper as a preferred way of working with dpdk bursts. And intend to start using it while refactoring kni workload in controlplaneworker thread.

ol-imorozko commented 2 months ago

Could you add this description to the commit message, please?