Searched refs:ct_info (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/net/openvswitch/
H A Dconntrack.c56 static void __ovs_ct_free_action(struct ovs_conntrack_info *ct_info);
674 struct ovs_conntrack_info ct_info; ovs_ct_copy_action() local
685 memset(&ct_info, 0, sizeof(ct_info)); ovs_ct_copy_action()
686 ct_info.family = family; ovs_ct_copy_action()
688 nf_ct_zone_init(&ct_info.zone, NF_CT_DEFAULT_ZONE_ID, ovs_ct_copy_action()
691 err = parse_ct(attr, &ct_info, &helper, log); ovs_ct_copy_action()
696 ct_info.ct = nf_ct_tmpl_alloc(net, &ct_info.zone, GFP_KERNEL); ovs_ct_copy_action()
697 if (!ct_info.ct) { ovs_ct_copy_action()
702 __set_bit(IPS_CONFIRMED_BIT, &ct_info.ct->status); ovs_ct_copy_action()
703 nf_conntrack_get(&ct_info.ct->ct_general); ovs_ct_copy_action()
706 err = ovs_ct_add_helper(&ct_info, helper, key, log); ovs_ct_copy_action()
711 err = ovs_nla_add_action(sfa, OVS_ACTION_ATTR_CT, &ct_info, ovs_ct_copy_action()
712 sizeof(ct_info), log); ovs_ct_copy_action()
718 __ovs_ct_free_action(&ct_info); ovs_ct_copy_action()
722 int ovs_ct_action_to_attr(const struct ovs_conntrack_info *ct_info, ovs_ct_action_to_attr() argument
731 if (ct_info->commit && nla_put_flag(skb, OVS_CT_ATTR_COMMIT)) ovs_ct_action_to_attr()
734 nla_put_u16(skb, OVS_CT_ATTR_ZONE, ct_info->zone.id)) ovs_ct_action_to_attr()
736 if (IS_ENABLED(CONFIG_NF_CONNTRACK_MARK) && ct_info->mark.mask && ovs_ct_action_to_attr()
737 nla_put(skb, OVS_CT_ATTR_MARK, sizeof(ct_info->mark), ovs_ct_action_to_attr()
738 &ct_info->mark)) ovs_ct_action_to_attr()
741 labels_nonzero(&ct_info->labels.mask) && ovs_ct_action_to_attr()
742 nla_put(skb, OVS_CT_ATTR_LABELS, sizeof(ct_info->labels), ovs_ct_action_to_attr()
743 &ct_info->labels)) ovs_ct_action_to_attr()
745 if (ct_info->helper) { ovs_ct_action_to_attr()
747 ct_info->helper->name)) ovs_ct_action_to_attr()
758 struct ovs_conntrack_info *ct_info = nla_data(a); ovs_ct_free_action() local
760 __ovs_ct_free_action(ct_info); ovs_ct_free_action()
763 static void __ovs_ct_free_action(struct ovs_conntrack_info *ct_info) __ovs_ct_free_action() argument
765 if (ct_info->helper) __ovs_ct_free_action()
766 module_put(ct_info->helper->me); __ovs_ct_free_action()
767 if (ct_info->ct) __ovs_ct_free_action()
768 nf_ct_put(ct_info->ct); __ovs_ct_free_action()

Completed in 113 milliseconds