Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net/sched: act_ct: set 'net' pointer when creating new nf_flow_table

Following patches in series use the pointer to access flow table offload
debug variables.

Signed-off-by: Vlad Buslov <vladbu@nvidia.com>
Signed-off-by: Oz Shlomo <ozsh@nvidia.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

authored by

Vlad Buslov and committed by
Pablo Neira Ayuso
fc54d906 b8acd431

+3 -2
+3 -2
net/sched/act_ct.c
··· 277 277 .owner = THIS_MODULE, 278 278 }; 279 279 280 - static int tcf_ct_flow_table_get(struct tcf_ct_params *params) 280 + static int tcf_ct_flow_table_get(struct net *net, struct tcf_ct_params *params) 281 281 { 282 282 struct tcf_ct_flow_table *ct_ft; 283 283 int err = -ENOMEM; ··· 303 303 err = nf_flow_table_init(&ct_ft->nf_ft); 304 304 if (err) 305 305 goto err_init; 306 + write_pnet(&ct_ft->nf_ft.net, net); 306 307 307 308 __module_get(THIS_MODULE); 308 309 out_unlock: ··· 1392 1391 if (err) 1393 1392 goto cleanup; 1394 1393 1395 - err = tcf_ct_flow_table_get(params); 1394 + err = tcf_ct_flow_table_get(net, params); 1396 1395 if (err) 1397 1396 goto cleanup; 1398 1397