[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <49C3452A.8000709@cn.fujitsu.com>
Date: Fri, 20 Mar 2009 15:26:34 +0800
From: Yang Hongyang <yanghy@...fujitsu.com>
To: Stephen Hemminger <shemminger@...tta.com>
CC: David Miller <davem@...emloft.net>, chas@....nrl.navy.mil,
netdev@...r.kernel.org
Subject: Re: [PATCH] atm: lec use dev_change_mtu
Stephen Hemminger wrote:
> Rather than calling device pointer directly (which is incorrect with
> net_device_ops), use the standard dev_change_mtu. Compile tested only.
^^^^^^^^^^^^Should it be dev_set_mtu?
>
> Signed-off-by: Stephen Hemminger <shemminger@...tta.com>
>
> --- a/net/atm/lec.c 2009-03-19 17:18:35.140652628 -0700
> +++ b/net/atm/lec.c 2009-03-19 17:19:19.500777355 -0700
> @@ -502,7 +502,7 @@ static int lec_atm_send(struct atm_vcc *
> priv->lane2_ops = NULL;
> if (priv->lane_version > 1)
> priv->lane2_ops = &lane2_ops;
> - if (dev->change_mtu(dev, mesg->content.config.mtu))
> + if (dev_set_mtu(dev, mesg->content.config.mtu))
> printk("%s: change_mtu to %d failed\n", dev->name,
> mesg->content.config.mtu);
> priv->is_proxy = mesg->content.config.is_proxy;
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
--
Regards
Yang Hongyang
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists