From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: [PATCH v2 net-next 1/8] dpaa2-eth: Add basic XDP support Date: Wed, 28 Nov 2018 09:11:26 -0700 Message-ID: <86ccd3ef-6762-155e-877c-f29ce613cd4d@gmail.com> References: <1543249591-14563-1-git-send-email-ruxandra.radulescu@nxp.com> <1543249591-14563-2-git-send-email-ruxandra.radulescu@nxp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Ioana Ciornei , Camelia Alexandra Groza To: Ioana Ciocoi Radulescu , "netdev@vger.kernel.org" , "davem@davemloft.net" Return-path: Received: from mail-pf1-f193.google.com ([209.85.210.193]:41392 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728262AbeK2DNj (ORCPT ); Wed, 28 Nov 2018 22:13:39 -0500 Received: by mail-pf1-f193.google.com with SMTP id b7so10378195pfi.8 for ; Wed, 28 Nov 2018 08:11:29 -0800 (PST) In-Reply-To: <1543249591-14563-2-git-send-email-ruxandra.radulescu@nxp.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 11/26/18 9:27 AM, Ioana Ciocoi Radulescu wrote: > We keep one XDP program reference per channel. The only actions > supported for now are XDP_DROP and XDP_PASS. > > Until now we didn't enforce a maximum size for Rx frames based > on MTU value. Change that, since for XDP mode we must ensure no > scatter-gather frames can be received. > > Signed-off-by: Ioana Radulescu > --- > v2: - xdp packets count towards the rx packets and bytes counters > - add warning message with the maximum supported MTU value for XDP > > drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 189 ++++++++++++++++++++++- > drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.h | 6 + > 2 files changed, 194 insertions(+), 1 deletion(-) > Reviewed-by: David Ahern