forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kernel: backport the dev_set_threaded export to 5.10
Fixes mt76 build error Signed-off-by: Felix Fietkau <[email protected]>
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
target/linux/generic/backport-5.10/605-v5.12-net-export-dev_set_threaded-symbol.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
From: Lorenzo Bianconi <[email protected]> | ||
Date: Sun, 14 Mar 2021 15:49:19 +0100 | ||
Subject: [PATCH] net: export dev_set_threaded symbol | ||
|
||
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 <[email protected]> | ||
Signed-off-by: David S. Miller <[email protected]> | ||
--- | ||
|
||
--- a/net/core/dev.c | ||
+++ b/net/core/dev.c | ||
@@ -6819,6 +6819,7 @@ int dev_set_threaded(struct net_device * | ||
|
||
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) |