gatekeeper
gatekeeper copied to clipboard
Merge our DPDK patches upstream
We have a number of small patches to DPDK in https://github.com/cjdoucette/dpdk that Gatekeeper relies on. We should get these patches merged upstream, so Gatekeeper can use the latest version of DPDK.
rte_strdup()
in main/main.c
is a small, useful function that should go upstream as well. It's being used in a number of places in Gatekeeper.
Note that our rte_strdup()
will return NULL
when the source string is NULL
, so we must check that is the expected behavior of strdup(3)
before pushing the patch upstream. If that's not the behavior of strdup(3)
, we must fix our version and patch the Gatekeeper accordingly. Finally, rte_strdup()
needs to update errno
when not enough memory is available.
One should search the code of Gatekeeper to identify all small functions that should be pushed upstream. For example: rte_priv_to_mbuf()
and rte_mbuf_prefetch_part2_non_temporal()
.