From patchwork Sun Mar 14 14:49:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "lorenzo@kernel.org" X-Patchwork-Id: 12137391 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 61D85C433E0 for ; Sun, 14 Mar 2021 14:50:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2259964EE9 for ; Sun, 14 Mar 2021 14:50:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233710AbhCNOuM (ORCPT ); Sun, 14 Mar 2021 10:50:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:37550 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229837AbhCNOt4 (ORCPT ); Sun, 14 Mar 2021 10:49:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8DBFD64EBD; Sun, 14 Mar 2021 14:49:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615733396; bh=VHKIE50piqyOvnhJEl4FBj+OWtugKxt41D39+4b3pN8=; h=From:To:Cc:Subject:Date:From; b=WRBUySr/XoinO8FjjdYUNJIefMRDh1PyxWIahO7TJ5Uyn8gmhWWYwJF8JSPh6+j5l c0+fQnAZJf7t7woxvY2d1y+gu/k+laWSFoULsoxNqErp+L3uaFm+Gxmi+elDe03w1F 8R2hiTael74nUdnm4+QCmf4tQCHYCXW7WTJFtFzm3NdQHb8tm/Qa6W/R3vgsBO8viY Stf8xgOnGr+J+IpeCLQMVzCy2PR340crmuzC5c0Zq5VYk9NVAK+KvftlbWfrHd1Jp8 X0GD+Wk2lglXdO82y7QJrjjrGXoj47sss5Uxniebbqj4gWGUexKKL843ZOoQo0JRpk FIEuiWDwP1QDA== From: Lorenzo Bianconi To: netdev@vger.kernel.org Cc: davem@davemloft.net, kuba@kernel.org, weiwan@google.com, nbd@nbd.name, pabeni@redhat.com, edumazet@google.com, hannes@stressinduktion.org, lorenzo.bianconi@redhat.com Subject: [PATCH net-next] net: export dev_set_threaded symbol Date: Sun, 14 Mar 2021 15:49:19 +0100 Message-Id: <9ee5ba9ca7506620b1a9695896992bfdfb000469.1615733129.git.lorenzo@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org For wireless devices (e.g. mt76 driver) multiple net_devices belongs to the same wireless phy and the napi object is registered in a dummy netdevice related to the wireless phy. Export dev_set_threaded in order to be reused in device drivers enabling threaded NAPI. Signed-off-by: Lorenzo Bianconi Acked-by: Jakub Kicinski --- net/core/dev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/core/dev.c b/net/core/dev.c index 2bfdd528c7c3..18f82ca47655 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -6770,6 +6770,7 @@ int dev_set_threaded(struct net_device *dev, bool threaded) return err; } +EXPORT_SYMBOL(dev_set_threaded); void netif_napi_add(struct net_device *dev, struct napi_struct *napi, int (*poll)(struct napi_struct *, int), int weight)