> IMHO, adding NULL objects is likely an error not a legitimate use case for > adding ring elements. > > Can anyone think of a use case where adding NULL pointer objects makes > sense? > [BR] As well as the use case already mentioned of passing using NULLs, there is also the scenario where we want to use the rings to pass integers e.g. uintptr_t values as array indexes, instead of pointers. While NULL may not be a valid pointer value, zero is a very common integer value.
- [dpdk-dev] rte_ring_sc_dequeue returns 0 but sets packet... Jose Gavine Cueto
- [dpdk-dev] rte_ring_sc_dequeue returns 0 but sets p... Etai Lev-Ran
- [dpdk-dev] rte_ring_sc_dequeue returns 0 but se... Jeff Venable
- [dpdk-dev] rte_ring_sc_dequeue returns 0 but se... Richardson, Bruce