[dpdk-dev] [RFC 5/7] net/af_xdp: enable share mempool

2018-02-27 Thread Qi Zhang
Try to check if external mempool (from rx_queue_setup) is fit for af_xdp, if it is, it will be registered to af_xdp socket directly and there will be no packet data copy on Rx and Tx. Signed-off-by: Qi Zhang --- drivers/net/af_xdp/rte_eth_af_xdp.c | 191 +++- 1 fi

[dpdk-dev] [RFC 5/7] net/af_xdp: enable share mempool

2018-02-27 Thread Qi Zhang
Try to check if external mempool (from rx_queue_setup) is fit for af_xdp, if it is, it will be registered to af_xdp socket directly and there will be no packet data copy on Rx and Tx. Signed-off-by: Qi Zhang --- drivers/net/af_xdp/rte_eth_af_xdp.c | 191 +++- 1 fi