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 there, it would need to be added below (i.e. here) too. With or without, Acked-by: Morten Brørup <m...@smartsharesystems.com>