Lines Matching refs:ct_limit_info
935 const struct ovs_ct_limit_info *ct_limit_info = ovs_net->ct_limit_info; in ovs_ct_check_limit() local
941 per_zone_limit = ct_limit_get(ct_limit_info, info->zone.id); in ovs_ct_check_limit()
945 connections = nf_conncount_count(net, ct_limit_info->data, in ovs_ct_check_limit()
1594 ovs_net->ct_limit_info = kmalloc(sizeof(*ovs_net->ct_limit_info), in ovs_ct_limit_init()
1596 if (!ovs_net->ct_limit_info) in ovs_ct_limit_init()
1599 ovs_net->ct_limit_info->default_limit = OVS_CT_LIMIT_DEFAULT; in ovs_ct_limit_init()
1600 ovs_net->ct_limit_info->limits = in ovs_ct_limit_init()
1603 if (!ovs_net->ct_limit_info->limits) { in ovs_ct_limit_init()
1604 kfree(ovs_net->ct_limit_info); in ovs_ct_limit_init()
1609 INIT_HLIST_HEAD(&ovs_net->ct_limit_info->limits[i]); in ovs_ct_limit_init()
1611 ovs_net->ct_limit_info->data = nf_conncount_init(net, sizeof(u32)); in ovs_ct_limit_init()
1613 if (IS_ERR(ovs_net->ct_limit_info->data)) { in ovs_ct_limit_init()
1614 err = PTR_ERR(ovs_net->ct_limit_info->data); in ovs_ct_limit_init()
1615 kfree(ovs_net->ct_limit_info->limits); in ovs_ct_limit_init()
1616 kfree(ovs_net->ct_limit_info); in ovs_ct_limit_init()
1625 const struct ovs_ct_limit_info *info = ovs_net->ct_limit_info; in ovs_ct_limit_exit()
1860 struct ovs_ct_limit_info *ct_limit_info = ovs_net->ct_limit_info; in ovs_ct_limit_cmd_set() local
1874 ct_limit_info); in ovs_ct_limit_cmd_set()
1894 struct ovs_ct_limit_info *ct_limit_info = ovs_net->ct_limit_info; in ovs_ct_limit_cmd_del() local
1908 ct_limit_info); in ovs_ct_limit_cmd_del()
1928 struct ovs_ct_limit_info *ct_limit_info = ovs_net->ct_limit_info; in ovs_ct_limit_cmd_get() local
1944 net, a[OVS_CT_LIMIT_ATTR_ZONE_LIMIT], ct_limit_info, in ovs_ct_limit_cmd_get()
1949 err = ovs_ct_limit_get_all_zone_limit(net, ct_limit_info, in ovs_ct_limit_cmd_get()