netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/8] dpaa2-eth: Introduce XDP support
@ 2018-11-23 16:56 Ioana Ciocoi Radulescu
  2018-11-23 16:56 ` [PATCH net-next 1/8] dpaa2-eth: Add basic " Ioana Ciocoi Radulescu
                   ` (7 more replies)
  0 siblings, 8 replies; 12+ messages in thread
From: Ioana Ciocoi Radulescu @ 2018-11-23 16:56 UTC (permalink / raw)
  To: netdev@vger.kernel.org, davem@davemloft.net; +Cc: Ioana Ciornei

Add support for XDP programs. Only XDP_PASS, XDP_DROP and XDP_TX
actions are supported for now. Frame header changes are also
allowed.

Ioana Radulescu (8):
  dpaa2-eth: Add basic XDP support
  dpaa2-eth: Allow XDP header adjustments
  dpaa2-eth: Move function
  dpaa2-eth: Release buffers back to pool on XDP_DROP
  dpaa2-eth: Map Rx buffers as bidirectional
  dpaa2-eth: Add support for XDP_TX
  dpaa2-eth: Cleanup channel stats
  dpaa2-eth: Add xdp counters

 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c   | 336 +++++++++++++++++++--
 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.h   |  20 +-
 .../net/ethernet/freescale/dpaa2/dpaa2-ethtool.c   |  19 +-
 3 files changed, 337 insertions(+), 38 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 12+ messages in thread
* RE: [PATCH net-next 1/8] dpaa2-eth: Add basic XDP support
@ 2018-11-26 11:36 Camelia Alexandra Groza
  0 siblings, 0 replies; 12+ messages in thread
From: Camelia Alexandra Groza @ 2018-11-26 11:36 UTC (permalink / raw)
  To: Ioana Ciocoi Radulescu; +Cc: netdev@vger.kernel.org, davem@davemloft.net

> -----Original Message-----
> From: netdev-owner@vger.kernel.org <netdev-owner@vger.kernel.org>
> On Behalf Of Ioana Ciocoi Radulescu
> Sent: Friday, November 23, 2018 18:57
> To: netdev@vger.kernel.org; davem@davemloft.net
> Subject: [PATCH net-next 1/8] dpaa2-eth: Add basic XDP support
> 
> +static int dpaa2_eth_change_mtu(struct net_device *dev, int new_mtu)
> +{
> +	struct dpaa2_eth_priv *priv = netdev_priv(dev);
> +	int err;
> +
> +	if (!priv->xdp_prog)
> +		goto out;
> +
> +	if (!xdp_mtu_valid(priv, new_mtu))
> +		return -EINVAL;

An error message would be helpful to let the user know which MTU values are acceptable in XDP context.

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2018-11-26 22:30 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-23 16:56 [PATCH net-next 0/8] dpaa2-eth: Introduce XDP support Ioana Ciocoi Radulescu
2018-11-23 16:56 ` [PATCH net-next 1/8] dpaa2-eth: Add basic " Ioana Ciocoi Radulescu
2018-11-24 21:49   ` David Ahern
2018-11-26  7:32     ` Ioana Ciocoi Radulescu
2018-11-23 16:56 ` [PATCH net-next 2/8] dpaa2-eth: Allow XDP header adjustments Ioana Ciocoi Radulescu
2018-11-23 16:56 ` [PATCH net-next 3/8] dpaa2-eth: Move function Ioana Ciocoi Radulescu
2018-11-23 16:56 ` [PATCH net-next 4/8] dpaa2-eth: Release buffers back to pool on XDP_DROP Ioana Ciocoi Radulescu
2018-11-23 16:56 ` [PATCH net-next 5/8] dpaa2-eth: Map Rx buffers as bidirectional Ioana Ciocoi Radulescu
2018-11-23 16:56 ` [PATCH net-next 6/8] dpaa2-eth: Add support for XDP_TX Ioana Ciocoi Radulescu
2018-11-23 16:56 ` [PATCH net-next 8/8] dpaa2-eth: Add xdp counters Ioana Ciocoi Radulescu
2018-11-23 16:56 ` [PATCH net-next 7/8] dpaa2-eth: Cleanup channel stats Ioana Ciocoi Radulescu
  -- strict thread matches above, loose matches on Subject: below --
2018-11-26 11:36 [PATCH net-next 1/8] dpaa2-eth: Add basic XDP support Camelia Alexandra Groza

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).