From patchwork Sat Jun 30 17:31:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Miguel_Rodr=C3=ADguez_P=C3=A9rez?= X-Patchwork-Id: 10498357 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 5386A60325 for ; Sat, 30 Jun 2018 17:31:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3939C2869A for ; Sat, 30 Jun 2018 17:31:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2934D28735; Sat, 30 Jun 2018 17:31:39 +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 B6C142869A for ; Sat, 30 Jun 2018 17:31:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751318AbeF3Rbh (ORCPT ); Sat, 30 Jun 2018 13:31:37 -0400 Received: from mail-wm0-f48.google.com ([74.125.82.48]:50619 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751259AbeF3Rbg (ORCPT ); Sat, 30 Jun 2018 13:31:36 -0400 Received: by mail-wm0-f48.google.com with SMTP id v25-v6so4122098wmc.0 for ; Sat, 30 Jun 2018 10:31:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=det.uvigo.gal; s=clouddet; h=to:from:subject:openpgp:autocrypt:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=ug+SsHJkNJKND6YN7o1L7aCF/tGPi6scjiLW4VZZKcs=; b=ioUEGSuw9j3Fr4qxLyNey5MACopm90yM6n/zbWUU24J0sWsoGeimcp2ePBQ/7gIkPf S/QWf8fFYxW8cBeBT2tJuTvClHZLTNVJ75R8QPyp714EHoBNsRGxCZxO955JDlOcbbon OkAh204jSvKOmcr5T6KJF5Vj4E5+yWbCzd5BM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:openpgp:autocrypt:message-id :date:user-agent:mime-version:content-language :content-transfer-encoding; bh=ug+SsHJkNJKND6YN7o1L7aCF/tGPi6scjiLW4VZZKcs=; b=n5xyUu8Z5z+mnfhe0zyxWlrzsRbVzYI4+hHjzq7CTvK0M1oTBidF40U+7pHw5p4eLm I0zHWZaBYZ6KvOw5v14xoihHyIT1HWuMFpL+SofL5UvUKTL8qV4S4G18PPfojTzRGChm 4asRAAwf0RyWcRPO0Zh09tYhUtucz3joG83iS8ISB+8Dv3IYmYFVNcCSjtrpCm+8Cj9L OwhyE0kns5ab59+tDUau+jzKTtBVl6vJvKOjD2kV7dWRtTSujB1a90vZgRFSb0H8Ik8Y 71iyWTP25BUov63lRetaxuxbg+qfJvS+HTM8sWTizx13iRoIopJdzDVY6LuPvLhzqPVg sbRA== X-Gm-Message-State: APt69E276E8LkrYgypVBSKcLEaCdYuoyg6QbVMkCU6JxpE2TVuaHSsvt b7SUt9C4uAy+DuR9kmpvKj7wVg== X-Google-Smtp-Source: AAOMgpcFoYIHk/KGbXYvjT+fk+7KvOqW+B1OgdA9ZPFMfvsSUXgNOWogV9nA2cVhx/gPWxwavdmchw== X-Received: by 2002:a1c:81c5:: with SMTP id c188-v6mr4276028wmd.122.1530379894607; Sat, 30 Jun 2018 10:31:34 -0700 (PDT) Received: from [192.168.1.19] (static.84.239.213.82.ibercom.com. [82.213.239.84]) by smtp.gmail.com with ESMTPSA id h4-v6sm20211140wre.89.2018.06.30.10.31.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 30 Jun 2018 10:31:33 -0700 (PDT) To: linux-usb@vger.kernel.org, netdev@vger.kernel.org From: =?UTF-8?Q?Miguel_Rodr=c3=adguez_P=c3=a9rez?= Subject: [PATCH v2 2/4] usbnet: Export usbnet_cdc_update_filter Openpgp: preference=signencrypt Autocrypt: addr=miguel@det.uvigo.gal; prefer-encrypt=mutual; keydata= xsFNBFKN0FkBEADwUPUfsvRB6B3st20xFpvP1OPXbjYcNFaTLEgvELYnTGJWFatqrQqdODO9 QEbVRopidVe/gndDijKxBrwTMLgX6CqIKX0TPcj1Nu5YqwJEKuKyY+O2Y9dZxFa9mohnAJ7D lB9pKFvPXVzBnGoD8/ziOKanDgawsJPLQ5GlNvozl6RveFvuSKfif4XM++EJjDpY1GQjF/Ux F/TdskY205QUz+rHV6K5GZ0GyqysRULg/hC7UyW0FJ3zl+ic7IVerXQmF8N+qcI+4D87bJPA GMHfTvu0HJkaN6TG+wrnKp7BTJ2Qa/aD6+N0Nrr/WVkOaZ3he3lZlfrkAs4X8/6M4LW1YtBu hUvIA7fOB17ND5B2TTmazalUQ+oiSs8SPg9nVKYj+x4McqxhWcon9l3oFRxhdRMlAWKkw5zF eB3rP/Br2WQSqcJI6djQvhQitZLH0aIWjPnCbGamNfmZB2uJ8Pz5aQbhyTB9T0MHNudbdQ36 0br+EA86qZhnvxr0vCGASbISY66rR+S3dTs2bFkj88PnTvFjqIxDdtQPgB7YwCQ2AJD/sIn6 F4NXt/AWo2WQkQFXiIpVZfliumy98A7F+voh4VKmKdDNtqULrppecDrlX/ejzmelt4q+Tl2Y Cgsw9Jd/JfEmzix0RHpAIPnIUBXwUOTC6eOtUS3/FuXFjh8LdQARAQABzS9NaWd1ZWwgUm9k csOtZ3VleiBQw6lyZXogPG1pZ3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W4dnCA0xmi3pBSjiZE3XYwKG4t4JppTmvuGhQuJPQ11/i4oHN YHInhj+XVbAEvSrkZFlI6GfCPjY= Message-ID: Date: Sat, 30 Jun 2018 19:31:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 Content-Language: es-ES 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 This one exports usbnet_cdc_update_filter so that it can be reused by cdc_ncm or any other usbnet driver. --- drivers/net/usb/cdc_ether.c | 3 ++- include/linux/usb/usbnet.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/usb/cdc_ether.c b/drivers/net/usb/cdc_ether.c index 815ed0dc18fe..54472ab77b90 100644 --- a/drivers/net/usb/cdc_ether.c +++ b/drivers/net/usb/cdc_ether.c @@ -75,7 +75,7 @@ static const u8 mbm_guid[16] = { 0xa6, 0x07, 0xc0, 0xff, 0xcb, 0x7e, 0x39, 0x2a, }; -static void usbnet_cdc_update_filter(struct usbnet *dev) +void usbnet_cdc_update_filter(struct usbnet *dev) { struct net_device *net = dev->net; @@ -99,6 +99,7 @@ static void usbnet_cdc_update_filter(struct usbnet *dev) NULL, 0); } +EXPORT_SYMBOL_GPL(usbnet_cdc_update_filter); /* probes control interface, claims data interface, collects the bulk * endpoints, activates data interface (if needed), maybe sets MTU. diff --git a/include/linux/usb/usbnet.h b/include/linux/usb/usbnet.h index e2ec3582e549..7821cf1dcd60 100644 --- a/include/linux/usb/usbnet.h +++ b/include/linux/usb/usbnet.h @@ -286,4 +286,5 @@ extern void usbnet_update_max_qlen(struct usbnet *dev); extern void usbnet_get_stats64(struct net_device *dev, struct rtnl_link_stats64 *stats); +extern void usbnet_cdc_update_filter(struct usbnet *); #endif /* __LINUX_USB_USBNET_H */