From patchwork Fri Mar 20 00:24:00 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: stephen hemminger X-Patchwork-Id: 24710 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id CA105DDE28 for ; Fri, 20 Mar 2009 11:35:34 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758922AbZCTAf2 (ORCPT ); Thu, 19 Mar 2009 20:35:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757693AbZCTAf2 (ORCPT ); Thu, 19 Mar 2009 20:35:28 -0400 Received: from mail.vyatta.com ([76.74.103.46]:59210 "EHLO mail.vyatta.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755824AbZCTAf1 (ORCPT ); Thu, 19 Mar 2009 20:35:27 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.vyatta.com (Postfix) with ESMTP id ED0464F400F; Thu, 19 Mar 2009 17:35:28 -0700 (PDT) X-Virus-Scanned: amavisd-new at tahiti.vyatta.com Received: from mail.vyatta.com ([127.0.0.1]) by localhost (mail.vyatta.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Za2DsroJILQZ; Thu, 19 Mar 2009 17:35:24 -0700 (PDT) Received: from nehalam (pool-71-117-208-104.ptldor.fios.verizon.net [71.117.208.104]) by mail.vyatta.com (Postfix) with ESMTP id E237D4F400E; Thu, 19 Mar 2009 17:35:23 -0700 (PDT) Date: Thu, 19 Mar 2009 17:24:00 -0700 From: Stephen Hemminger To: David Miller Cc: chas@cmf.nrl.navy.mil, netdev@vger.kernel.org Subject: [PATCH] atm: lec use dev_change_mtu Message-ID: <20090319172400.239594f8@nehalam> Organization: Vyatta X-Mailer: Claws Mail 3.6.1 (GTK+ 2.16.0; x86_64-pc-linux-gnu) Mime-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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 --- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 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;