Re: [PATCH v6 net-next 5/5] net: ethernet: ti: cpsw: add XDP support

2019-07-04 Thread Ivan Khoronzhuk
On Thu, Jul 04, 2019 at 12:49:38PM +0300, Ilias Apalodimas wrote: On Thu, Jul 04, 2019 at 12:43:30PM +0300, Ivan Khoronzhuk wrote: On Thu, Jul 04, 2019 at 12:39:02PM +0300, Ilias Apalodimas wrote: >On Thu, Jul 04, 2019 at 11:19:39AM +0200, Jesper Dangaard Brouer wrote: >>On Wed, 3 Jul 2019

Re: [PATCH v6 net-next 5/5] net: ethernet: ti: cpsw: add XDP support

2019-07-04 Thread Ilias Apalodimas
On Thu, Jul 04, 2019 at 12:43:30PM +0300, Ivan Khoronzhuk wrote: > On Thu, Jul 04, 2019 at 12:39:02PM +0300, Ilias Apalodimas wrote: > >On Thu, Jul 04, 2019 at 11:19:39AM +0200, Jesper Dangaard Brouer wrote: > >>On Wed, 3 Jul 2019 13:19:03 +0300 > >>Ivan Khoronzhuk wrote: > >> > >>> Add XDP

Re: [PATCH v6 net-next 5/5] net: ethernet: ti: cpsw: add XDP support

2019-07-04 Thread Ivan Khoronzhuk
On Thu, Jul 04, 2019 at 11:19:39AM +0200, Jesper Dangaard Brouer wrote: On Wed, 3 Jul 2019 13:19:03 +0300 Ivan Khoronzhuk wrote: Add XDP support based on rx page_pool allocator, one frame per page. Page pool allocator is used with assumption that only one rx_handler is running

Re: [PATCH v6 net-next 5/5] net: ethernet: ti: cpsw: add XDP support

2019-07-04 Thread Ivan Khoronzhuk
On Thu, Jul 04, 2019 at 12:39:02PM +0300, Ilias Apalodimas wrote: On Thu, Jul 04, 2019 at 11:19:39AM +0200, Jesper Dangaard Brouer wrote: On Wed, 3 Jul 2019 13:19:03 +0300 Ivan Khoronzhuk wrote: > Add XDP support based on rx page_pool allocator, one frame per page. > Page pool allocator is

Re: [PATCH v6 net-next 5/5] net: ethernet: ti: cpsw: add XDP support

2019-07-04 Thread Ilias Apalodimas
On Thu, Jul 04, 2019 at 11:19:39AM +0200, Jesper Dangaard Brouer wrote: > On Wed, 3 Jul 2019 13:19:03 +0300 > Ivan Khoronzhuk wrote: > > > Add XDP support based on rx page_pool allocator, one frame per page. > > Page pool allocator is used with assumption that only one rx_handler > > is running

Re: [PATCH v6 net-next 5/5] net: ethernet: ti: cpsw: add XDP support

2019-07-04 Thread Jesper Dangaard Brouer
On Wed, 3 Jul 2019 13:19:03 +0300 Ivan Khoronzhuk wrote: > Add XDP support based on rx page_pool allocator, one frame per page. > Page pool allocator is used with assumption that only one rx_handler > is running simultaneously. DMA map/unmap is reused from page pool > despite there is no need

[PATCH v6 net-next 5/5] net: ethernet: ti: cpsw: add XDP support

2019-07-03 Thread Ivan Khoronzhuk
Add XDP support based on rx page_pool allocator, one frame per page. Page pool allocator is used with assumption that only one rx_handler is running simultaneously. DMA map/unmap is reused from page pool despite there is no need to map whole page. Due to specific of cpsw, the same TX/RX handler