Re: [net-next, PATCH 2/2, v2] net: socionext: add XDP support

2018-09-13 Thread Ilias Apalodimas
On Thu, Sep 13, 2018 at 04:32:06PM +0200, Jesper Dangaard Brouer wrote: > On Wed, 12 Sep 2018 12:29:15 +0300 > Ilias Apalodimas wrote: > > > On Wed, Sep 12, 2018 at 11:25:24AM +0200, Jesper Dangaard Brouer wrote: > > > On Wed, 12 Sep 2018 12:02:38 +0300 > > > Ilias Apalodimas wrote: > > > > >

Re: [net-next, PATCH 2/2, v2] net: socionext: add XDP support

2018-09-13 Thread Jesper Dangaard Brouer
On Wed, 12 Sep 2018 12:29:15 +0300 Ilias Apalodimas wrote: > On Wed, Sep 12, 2018 at 11:25:24AM +0200, Jesper Dangaard Brouer wrote: > > On Wed, 12 Sep 2018 12:02:38 +0300 > > Ilias Apalodimas wrote: > > > > > static const struct net_device_ops netsec_netdev_ops = { > > > .ndo_init

Re: [net-next, PATCH 2/2, v2] net: socionext: add XDP support

2018-09-12 Thread Ilias Apalodimas
On Wed, Sep 12, 2018 at 11:25:24AM +0200, Jesper Dangaard Brouer wrote: > On Wed, 12 Sep 2018 12:02:38 +0300 > Ilias Apalodimas wrote: > > > static const struct net_device_ops netsec_netdev_ops = { > > .ndo_init = netsec_netdev_init, > > .ndo_uninit = netsec_net

Re: [net-next, PATCH 2/2, v2] net: socionext: add XDP support

2018-09-12 Thread Björn Töpel
Den ons 12 sep. 2018 kl 11:21 skrev Ilias Apalodimas : > > On Wed, Sep 12, 2018 at 11:14:57AM +0200, Jesper Dangaard Brouer wrote: > > On Wed, 12 Sep 2018 12:02:38 +0300 > > Ilias Apalodimas wrote: > > > > > @@ -1003,20 +1076,29 @@ static int netsec_setup_rx_dring(struct > > > netsec_priv *priv)

Re: [net-next, PATCH 2/2, v2] net: socionext: add XDP support

2018-09-12 Thread Jesper Dangaard Brouer
On Wed, 12 Sep 2018 12:02:38 +0300 Ilias Apalodimas wrote: > static const struct net_device_ops netsec_netdev_ops = { > .ndo_init = netsec_netdev_init, > .ndo_uninit = netsec_netdev_uninit, > @@ -1430,6 +1627,7 @@ static const struct net_device_ops netsec_ne

Re: [net-next, PATCH 2/2, v2] net: socionext: add XDP support

2018-09-12 Thread Ilias Apalodimas
On Wed, Sep 12, 2018 at 11:14:57AM +0200, Jesper Dangaard Brouer wrote: > On Wed, 12 Sep 2018 12:02:38 +0300 > Ilias Apalodimas wrote: > > > @@ -1003,20 +1076,29 @@ static int netsec_setup_rx_dring(struct netsec_priv > > *priv) > > u16 len; > > > > buf = netsec_alloc_rx

Re: [net-next, PATCH 2/2, v2] net: socionext: add XDP support

2018-09-12 Thread Jesper Dangaard Brouer
On Wed, 12 Sep 2018 12:02:38 +0300 Ilias Apalodimas wrote: > @@ -1003,20 +1076,29 @@ static int netsec_setup_rx_dring(struct netsec_priv > *priv) > u16 len; > > buf = netsec_alloc_rx_data(priv, &dma_handle, &len); > - if (!buf) { > -

[net-next, PATCH 2/2, v2] net: socionext: add XDP support

2018-09-12 Thread Ilias Apalodimas
Add basic XDP support Signed-off-by: Ilias Apalodimas --- drivers/net/ethernet/socionext/netsec.c | 234 +--- 1 file changed, 216 insertions(+), 18 deletions(-) diff --git a/drivers/net/ethernet/socionext/netsec.c b/drivers/net/ethernet/socionext/netsec.c index 666f