Commit 3a7bb5a
committed
net: netpoll: Fix kabi in netpoll_info by using KABI_BROKEN_REPLACE
deepin inclusion
category: kabi
When DEEPIN_KABI_RESERVE=y, struct net_device is kabi whitelist,
commit dc67d67a995e ("net: netpoll: Individualize the skb pool")
upstream introduce skb_pool in every struct netpoll which
"modify the netpoll system to assign a skb pool to each target instead of
using a global one."
and be backport to v6.6.117 stable version for it is Stable-dep-of
49c8d2c ("net: netpoll: fix incorrect refcount handling causing incorrect cleanup")
change struct netpoll { ... +struct sk_buff_head skb_pool; }
->change netpoll_info { ... struct netpoll *netpoll; }
->change net_device { struct netpoll_info *npinfo; }
->change some EXPORT_SYMBOL such as free_netdev etc ...
in our KABI whitelist.
The struct sk_buff_head { struct sk_buff *next;
struct sk_buff *prev; .. } is large than KABI reverse in the struct,
so cannot use KABI_USE in this situation.
For netpoll pointer after change is same as before and use internel.
We can use DEEPIN_KABI_BROKEN_REPLACE to fix it.
Fixes: ca946ee ("net: netpoll: Individualize the skb pool")
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>1 parent 85d1c1a commit 3a7bb5a
1 file changed
+17
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
51 | 67 | | |
52 | 68 | | |
53 | 69 | | |
| |||
0 commit comments