From patchwork Wed Jul 4 14:32:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Miguel_Rodr=C3=ADguez_P=C3=A9rez?= X-Patchwork-Id: 10507009 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A64AB60325 for ; Wed, 4 Jul 2018 14:32:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 94E5A288E7 for ; Wed, 4 Jul 2018 14:32:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 891BB28DF2; Wed, 4 Jul 2018 14:32:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 31402288E7 for ; Wed, 4 Jul 2018 14:32:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752533AbeGDOca (ORCPT ); Wed, 4 Jul 2018 10:32:30 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:36003 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752173AbeGDOc3 (ORCPT ); Wed, 4 Jul 2018 10:32:29 -0400 Received: by mail-wm0-f65.google.com with SMTP id s14-v6so6034626wmc.1 for ; Wed, 04 Jul 2018 07:32:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=det.uvigo.gal; s=clouddet; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references:mime-version:content-transfer-encoding; bh=zO5mc1l4HjPRg1etGvlwCEdpBvGcbLO1jbxSguXwxoU=; b=pb4AgSMZ4cjLyRCcSyGO0SjmGy0LpH/zKG8Sg24KRdy8mBowRLPTbrGrp8R7PjEmdu MJ8SCcv98ZC+3Lw2+/5Qq9+spyekNCex6Te1YokhBJldTPZVaGAioWh+BnuTLbHHyNYB Di+GqH/YSKnj5FiWXw4GJfddSt0fKfiISXosE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references:mime-version :content-transfer-encoding; bh=zO5mc1l4HjPRg1etGvlwCEdpBvGcbLO1jbxSguXwxoU=; b=D3PIHGPjo7Wd2eWen6FL1rpuDlMX+PwSvjnuv+b3R4NJccaYhhoWrPFgq0nTHkVWm3 uZpPpYkH+giYP/xJqwN0t4K9NMS13Gj2O8Al5ggbb5AB5+ckf6SIU6u5VAPnpaDtthfR IFSqD0OLJplAK6Gd603dCKEEvqLswP7Yhcb/AQZhj/mucHLYxamNL1MUSCJw0233oM9Z kwM6uj7PEElSpkGgu7mttsD9SFB8hWBmgVViTvxex6s7KA/RLhW9m6HlGtmuTroJT2/L vXlIqTZL1YPti8kxUsJGTrinopk9J5OsogqEURS73IaLaOGteE95TyJYqL1I9MoWbqHK SG/Q== X-Gm-Message-State: APt69E0NomnmSYhT76975thI9y/dY7D+ot56pl26QFhsVa1WM3UwGzPT drUq2bEYPak+RtdQxIoUqnluuw== X-Google-Smtp-Source: AAOMgpfB1ilk7pbHPhyx6pxFGLP5P9sULFikbEzNFm3auO07cMx4QXz4t6tmQ3fj4qS0KyNpckGEkA== X-Received: by 2002:a1c:c40a:: with SMTP id u10-v6mr1722280wmf.10.1530714747205; Wed, 04 Jul 2018 07:32:27 -0700 (PDT) Received: from arthurxps.det.uvigo.es ([2001:720:1214:2042:d8b2:c9b3:6a1b:f7c4]) by smtp.gmail.com with ESMTPSA id r10-v6sm6034817wrm.66.2018.07.04.07.32.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Jul 2018 07:32:26 -0700 (PDT) From: =?UTF-8?q?Miguel=20Rodr=C3=ADguez=20P=C3=A9rez?= To: oliver@neukum.org, linux-usb@vger.kernel.org, netdev@vger.kernel.org, gregkh@linuxfoundation.org Cc: =?UTF-8?q?Miguel=20Rodr=C3=ADguez=20P=C3=A9rez?= Subject: [PATCH v4 3/4] Add .ndo_set_rx_mode to cdc_ncm_netdev_ops Date: Wed, 4 Jul 2018 16:32:17 +0200 Message-Id: <20180704143217.6363-1-miguel@det.uvigo.gal> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180701090553.7776-4-miguel@det.uvigo.gal> References: <20180701090553.7776-4-miguel@det.uvigo.gal> In-Reply-To: <20180701090553.7776-4-miguel@det.uvigo.gal> References: <20180701090553.7776-4-miguel@det.uvigo.gal> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The cdc_ncm driver overrides the net_device_ops structure used by usbnet to be able to hook into .ndo_change_mtu. However, the structure was missing the .ndo_set_rx_mode field, preventing the driver from hooking into usbnet's set_rx_mode. This patch adds the missing callback to usbnet_set_rx_mode in net_device_ops. Signed-off-by: Miguel Rodríguez Pérez --- drivers/net/usb/cdc_ncm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/usb/cdc_ncm.c b/drivers/net/usb/cdc_ncm.c index 9e1b74590682..342bf9bb91b5 100644 --- a/drivers/net/usb/cdc_ncm.c +++ b/drivers/net/usb/cdc_ncm.c @@ -755,6 +755,7 @@ static const struct net_device_ops cdc_ncm_netdev_ops = { .ndo_stop = usbnet_stop, .ndo_start_xmit = usbnet_start_xmit, .ndo_tx_timeout = usbnet_tx_timeout, + .ndo_set_rx_mode = usbnet_set_rx_mode, .ndo_get_stats64 = usbnet_get_stats64, .ndo_change_mtu = cdc_ncm_change_mtu, .ndo_set_mac_address = eth_mac_addr,