Messages in this thread | | | Date | Fri, 10 Apr 2015 15:05:28 +0530 | Subject | Re: [net-next PATCH 3/3] net: macb: Add change_mtu callback with jumbo support | From | Harini Katakam <> |
| |
On Fri, Apr 10, 2015 at 2:47 PM, Harini Katakam <harini.katakam@xilinx.com> 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 <harinik@xilinx.com> > Reviewed-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com> > --- > 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
| |