[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090319172400.239594f8@nehalam>
Date: Thu, 19 Mar 2009 17:24:00 -0700
From: Stephen Hemminger <shemminger@...tta.com>
To: David Miller <davem@...emloft.net>
Cc: chas@....nrl.navy.mil, netdev@...r.kernel.org
Subject: [PATCH] atm: lec use dev_change_mtu
Rather than calling device pointer directly (which is incorrect with
net_device_ops), use the standard dev_change_mtu. Compile tested only.
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
Powered by blists - more mailing lists