Lines Matching refs:net
304 static int handle_fragments(struct net *net, struct sw_flow_key *key, in handle_fragments() argument
314 err = ip_defrag(net, skb, user); in handle_fragments()
325 reasm = nf_ct_frag6_gather(net, skb, user); in handle_fragments()
360 ovs_ct_expect_find(struct net *net, const struct nf_conntrack_zone *zone, in ovs_ct_expect_find() argument
365 if (!nf_ct_get_tuplepr(skb, skb_network_offset(skb), proto, net, &tuple)) in ovs_ct_expect_find()
367 return __nf_ct_expect_find(net, zone, &tuple); in ovs_ct_expect_find()
371 static bool skb_nfct_cached(const struct net *net, const struct sk_buff *skb, in skb_nfct_cached() argument
380 if (!net_eq(net, read_pnet(&ct->ct_net))) in skb_nfct_cached()
395 static int __ovs_ct_lookup(struct net *net, struct sw_flow_key *key, in __ovs_ct_lookup() argument
404 if (!skb_nfct_cached(net, skb, info)) { in __ovs_ct_lookup()
416 if (nf_conntrack_in(net, info->family, NF_INET_PRE_ROUTING, in __ovs_ct_lookup()
432 static int ovs_ct_lookup(struct net *net, struct sw_flow_key *key, in ovs_ct_lookup() argument
438 exp = ovs_ct_expect_find(net, &info->zone, info->family, skb); in ovs_ct_lookup()
447 err = __ovs_ct_lookup(net, key, info, skb); in ovs_ct_lookup()
456 static int ovs_ct_commit(struct net *net, struct sw_flow_key *key, in ovs_ct_commit() argument
472 err = __ovs_ct_lookup(net, key, info, skb); in ovs_ct_commit()
495 int ovs_ct_execute(struct net *net, struct sk_buff *skb, in ovs_ct_execute() argument
507 err = handle_fragments(net, key, info->zone.id, skb); in ovs_ct_execute()
513 err = ovs_ct_commit(net, key, info, skb); in ovs_ct_execute()
515 err = ovs_ct_lookup(net, key, info, skb); in ovs_ct_execute()
650 bool ovs_ct_verify(struct net *net, enum ovs_key_attr attr) in ovs_ct_verify() argument
662 struct ovs_net *ovs_net = net_generic(net, ovs_net_id); in ovs_ct_verify()
670 int ovs_ct_copy_action(struct net *net, const struct nlattr *attr, in ovs_ct_copy_action() argument
696 ct_info.ct = nf_ct_tmpl_alloc(net, &ct_info.zone, GFP_KERNEL); in ovs_ct_copy_action()
771 void ovs_ct_init(struct net *net) in ovs_ct_init() argument
774 struct ovs_net *ovs_net = net_generic(net, ovs_net_id); in ovs_ct_init()
776 if (nf_connlabels_get(net, n_bits)) { in ovs_ct_init()
784 void ovs_ct_exit(struct net *net) in ovs_ct_exit() argument
786 struct ovs_net *ovs_net = net_generic(net, ovs_net_id); in ovs_ct_exit()
789 nf_connlabels_put(net); in ovs_ct_exit()