Re: [dpdk-dev] [PATCH v2 5/6] net/af_xdp: enable zero copy

2019-03-20 Thread Zhang, Qi Z
From: David Marchand [mailto:david.march...@redhat.com] Sent: Wednesday, March 20, 2019 5:22 PM To: Ye, Xiaolong Cc: dev ; Zhang, Qi Z ; Karlsson, Magnus ; Topel, Bjorn Subject: Re: [dpdk-dev] [PATCH v2 5/6] net/af_xdp: enable zero copy On Tue, Mar 19, 2019 at 8:17 AM Xiaolong Ye wrote

Re: [dpdk-dev] [PATCH v2 5/6] net/af_xdp: enable zero copy

2019-03-20 Thread David Marchand
On Tue, Mar 19, 2019 at 8:17 AM Xiaolong Ye wrote: > 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: Xiaolong Ye > --- > drivers/net/af_

Re: [dpdk-dev] [PATCH v2 5/6] net/af_xdp: enable zero copy

2019-03-19 Thread Ye Xiaolong
Hi, Mattias Thanks for the review. On 03/19, Mattias Rönnblom wrote: >On 2019-03-19 08:12, Xiaolong Ye wrote: >> 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 an

Re: [dpdk-dev] [PATCH v2 5/6] net/af_xdp: enable zero copy

2019-03-19 Thread Mattias Rönnblom
On 2019-03-19 08:12, Xiaolong Ye wrote: 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: Xiaolong Ye --- drivers/net/af_xdp/rte_eth_af_xdp.c |