Commit 1f1900f9 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

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: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a0bffffc
...@@ -502,7 +502,7 @@ static int lec_atm_send(struct atm_vcc *vcc, struct sk_buff *skb) ...@@ -502,7 +502,7 @@ static int lec_atm_send(struct atm_vcc *vcc, struct sk_buff *skb)
priv->lane2_ops = NULL; priv->lane2_ops = NULL;
if (priv->lane_version > 1) if (priv->lane_version > 1)
priv->lane2_ops = &lane2_ops; 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, printk("%s: change_mtu to %d failed\n", dev->name,
mesg->content.config.mtu); mesg->content.config.mtu);
priv->is_proxy = mesg->content.config.is_proxy; priv->is_proxy = mesg->content.config.is_proxy;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment