Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932385AbbDJJfd (ORCPT ); Fri, 10 Apr 2015 05:35:33 -0400 Received: from mail-la0-f48.google.com ([209.85.215.48]:36523 "EHLO mail-la0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755070AbbDJJfa (ORCPT ); Fri, 10 Apr 2015 05:35:30 -0400 MIME-Version: 1.0 In-Reply-To: <9376b508-694b-4582-8f2c-4e85e2bab2b5@BY2FFO11FD054.protection.gbl> References: <1428657441-27710-1-git-send-email-harinik@xilinx.com> <9376b508-694b-4582-8f2c-4e85e2bab2b5@BY2FFO11FD054.protection.gbl> Date: Fri, 10 Apr 2015 15:05:28 +0530 Message-ID: Subject: Re: [net-next PATCH 3/3] net: macb: Add change_mtu callback with jumbo support From: Harini Katakam To: Harini Katakam Cc: nicolas.ferre@atmel.com, davem@davemloft.net, Rob Herring , Pawel Moll , Mark Rutland , "ijc+devicetree@hellion.org.uk" , Kumar Gala , boris.brezillon@free-electrons.com, alexandre.belloni@free-electrons.com, netdev@vger.kernel.org, "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , Punnaiah Choudary Kalluri , "michals@xilinx.com" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1297 Lines: 33 On Fri, Apr 10, 2015 at 2:47 PM, Harini Katakam wrote: > Add macb_change_mtu callback; if jumbo frame support is present allow > mtu size changes upto (jumbo max length allowed - headers). > > Signed-off-by: Harini Katakam > Reviewed-by: Punnaiah Choudary Kalluri > --- > drivers/net/ethernet/cadence/macb.c | 26 +++++++++++++++++++++++++- > 1 file changed, 25 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c > index 85de91d..33f3283 100644 > --- a/drivers/net/ethernet/cadence/macb.c > +++ b/drivers/net/ethernet/cadence/macb.c > @@ -54,6 +54,10 @@ > #define MACB_MAX_TX_LEN ((unsigned int)((1 << MACB_TX_FRMLEN_SIZE) - 1)) > #define GEM_MAX_TX_LEN ((unsigned int)((1 << GEM_TX_FRMLEN_SIZE) - 1)) > > +#define GEM_MTU_MIN_SIZE 68 > + > +#define GEM_ZYNQMP_JUMBO_MAX 10240 I'm sorry - this definition is in the wrong patch. I'll correct it and send a v2. Regards, Harini -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/