Lines Matching refs:ct_limit_info

906 	const struct ovs_ct_limit_info *ct_limit_info = ovs_net->ct_limit_info;  in ovs_ct_check_limit()  local
912 per_zone_limit = ct_limit_get(ct_limit_info, info->zone.id); in ovs_ct_check_limit()
916 connections = nf_conncount_count(net, ct_limit_info->data, in ovs_ct_check_limit()
1556 ovs_net->ct_limit_info = kmalloc(sizeof(*ovs_net->ct_limit_info), in ovs_ct_limit_init()
1558 if (!ovs_net->ct_limit_info) in ovs_ct_limit_init()
1561 ovs_net->ct_limit_info->default_limit = OVS_CT_LIMIT_DEFAULT; in ovs_ct_limit_init()
1562 ovs_net->ct_limit_info->limits = in ovs_ct_limit_init()
1565 if (!ovs_net->ct_limit_info->limits) { in ovs_ct_limit_init()
1566 kfree(ovs_net->ct_limit_info); in ovs_ct_limit_init()
1571 INIT_HLIST_HEAD(&ovs_net->ct_limit_info->limits[i]); in ovs_ct_limit_init()
1573 ovs_net->ct_limit_info->data = in ovs_ct_limit_init()
1576 if (IS_ERR(ovs_net->ct_limit_info->data)) { in ovs_ct_limit_init()
1577 err = PTR_ERR(ovs_net->ct_limit_info->data); in ovs_ct_limit_init()
1578 kfree(ovs_net->ct_limit_info->limits); in ovs_ct_limit_init()
1579 kfree(ovs_net->ct_limit_info); in ovs_ct_limit_init()
1588 const struct ovs_ct_limit_info *info = ovs_net->ct_limit_info; in ovs_ct_limit_exit()
1823 struct ovs_ct_limit_info *ct_limit_info = ovs_net->ct_limit_info; in ovs_ct_limit_cmd_set() local
1837 ct_limit_info); in ovs_ct_limit_cmd_set()
1857 struct ovs_ct_limit_info *ct_limit_info = ovs_net->ct_limit_info; in ovs_ct_limit_cmd_del() local
1871 ct_limit_info); in ovs_ct_limit_cmd_del()
1891 struct ovs_ct_limit_info *ct_limit_info = ovs_net->ct_limit_info; in ovs_ct_limit_cmd_get() local
1907 net, a[OVS_CT_LIMIT_ATTR_ZONE_LIMIT], ct_limit_info, in ovs_ct_limit_cmd_get()
1912 err = ovs_ct_limit_get_all_zone_limit(net, ct_limit_info, in ovs_ct_limit_cmd_get()