Commit bbd6819
netfilter: nf_tables: pass nft_chain to destroy function, not nft_ctx
commit 8965d42 upstream.
It would be better to not store nft_ctx inside nft_trans object,
the netlink ctx strucutre is huge and most of its information is
never needed in places that use trans->ctx.
Avoid/reduce its usage if possible, no runtime behaviour change
intended.
Signed-off-by: Florian Westphal <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>
Stable-dep-of: c03d278fdf35 ("netfilter: nf_tables: wait for rcu grace period on net_device removal")
Signed-off-by: Sasha Levin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent 18eb53a commit bbd6819
File tree
3 files changed
+10
-11
lines changed- include/net/netfilter
- net/netfilter
3 files changed
+10
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1121 | 1121 | | |
1122 | 1122 | | |
1123 | 1123 | | |
1124 | | - | |
| 1124 | + | |
1125 | 1125 | | |
1126 | 1126 | | |
1127 | 1127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2034 | 2034 | | |
2035 | 2035 | | |
2036 | 2036 | | |
2037 | | - | |
| 2037 | + | |
2038 | 2038 | | |
2039 | | - | |
| 2039 | + | |
2040 | 2040 | | |
2041 | 2041 | | |
2042 | 2042 | | |
| |||
2048 | 2048 | | |
2049 | 2049 | | |
2050 | 2050 | | |
2051 | | - | |
| 2051 | + | |
2052 | 2052 | | |
2053 | 2053 | | |
2054 | 2054 | | |
| |||
2515 | 2515 | | |
2516 | 2516 | | |
2517 | 2517 | | |
2518 | | - | |
| 2518 | + | |
2519 | 2519 | | |
2520 | 2520 | | |
2521 | 2521 | | |
| |||
8994 | 8994 | | |
8995 | 8995 | | |
8996 | 8996 | | |
8997 | | - | |
| 8997 | + | |
8998 | 8998 | | |
8999 | 8999 | | |
9000 | 9000 | | |
| |||
9955 | 9955 | | |
9956 | 9956 | | |
9957 | 9957 | | |
9958 | | - | |
| 9958 | + | |
9959 | 9959 | | |
9960 | 9960 | | |
9961 | 9961 | | |
| |||
10677 | 10677 | | |
10678 | 10678 | | |
10679 | 10679 | | |
10680 | | - | |
| 10680 | + | |
10681 | 10681 | | |
10682 | 10682 | | |
10683 | 10683 | | |
| |||
10753 | 10753 | | |
10754 | 10754 | | |
10755 | 10755 | | |
10756 | | - | |
10757 | 10756 | | |
10758 | 10757 | | |
10759 | | - | |
| 10758 | + | |
10760 | 10759 | | |
10761 | 10760 | | |
10762 | 10761 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
| 224 | + | |
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| |||
0 commit comments