RE: [PATCH v7 3/7] ring: make copying functions generic

2024-11-07 Thread Morten Brørup
It should be safe adding __rte_restrict to the "ring_table" and "obj_table" pointers. I don't know if it makes any real difference; these functions are called from applications via function pointers where the function type doesn't have __rte_restrict to the arrays. If __rte_restrict were added

[PATCH v7 3/7] ring: make copying functions generic

2024-10-30 Thread Konstantin Ananyev
Note upfront: that change doesn't introduce any functional or performance changes. It is just a code-reordering for: - improve code modularity and re-usability - ability in future to re-use the same code to introduce new functionality There is no real need for enqueue_elems()/dequeue_elems() to