[dpdk-dev] [PATCH v3] rte_ethdev: safer memory access by calling Rx/Tx callback

2020-03-05 Thread ZY Qiu
When compiling with -O0, the compiler does not optimize two memory accesses into one. Leads to accessing a null pointer when queue post Rx burst callback removal while traffic is running. Signed-off-by: ZY Qiu --- lib/librte_ethdev/rte_ethdev.h | 9 + 1 file changed, 5 insertions(+), 4

[dpdk-dev] [PATCH v2] rte_ethdev: safer memory access by calling Rx callback

2020-03-04 Thread ZY Qiu
When compiling with -O0, the compiler does not optimize two memory accesses into one. Leads to accessing a null pointer when queue post Rx burst callback removal while traffic is running. See rte_eth_tx_burst function. Signed-off-by: ZY Qiu --- lib/librte_ethdev/rte_ethdev.h | 6 ++ 1 file