Lines Matching refs:labels
72 struct md_labels labels; member
105 static bool labels_nonzero(const struct ovs_key_ct_labels *labels);
169 struct ovs_key_ct_labels *labels) in ovs_ct_get_labels() argument
179 memcpy(labels, cl->bits, OVS_CT_LABELS_LEN); in ovs_ct_get_labels()
181 memset(labels, 0, OVS_CT_LABELS_LEN); in ovs_ct_get_labels()
205 ovs_ct_get_labels(ct, &key->ct.labels); in __ovs_ct_update_key()
305 nla_put(skb, OVS_KEY_ATTR_CT_LABELS, sizeof(output->ct.labels), in ovs_ct_put_key()
306 &output->ct.labels)) in ovs_ct_put_key()
382 const struct ovs_key_ct_labels *labels, in ovs_ct_init_labels() argument
408 (labels->ct_labels_32[i] in ovs_ct_init_labels()
417 memcpy(&key->ct.labels, cl->bits, OVS_CT_LABELS_LEN); in ovs_ct_init_labels()
423 const struct ovs_key_ct_labels *labels, in ovs_ct_set_labels() argument
433 err = nf_connlabels_replace(ct, labels->ct_labels_32, in ovs_ct_set_labels()
439 memcpy(&key->ct.labels, cl->bits, OVS_CT_LABELS_LEN); in ovs_ct_set_labels()
836 static bool labels_nonzero(const struct ovs_key_ct_labels *labels) in labels_nonzero() argument
841 if (labels->ct_labels_32[i]) in labels_nonzero()
988 err = ovs_ct_init_labels(ct, key, &info->labels.value, in ovs_ct_commit()
989 &info->labels.mask); in ovs_ct_commit()
995 labels_nonzero(&info->labels.mask)) { in ovs_ct_commit()
996 err = ovs_ct_set_labels(ct, key, &info->labels.value, in ovs_ct_commit()
997 &info->labels.mask); in ovs_ct_commit()
1264 struct md_labels *labels = nla_data(a); in parse_ct() local
1266 if (!labels_nonzero(&labels->mask)) { in parse_ct()
1270 info->labels = *labels; in parse_ct()
1319 if (!info->commit && labels_nonzero(&info->labels.mask)) { in parse_ct()
1508 labels_nonzero(&ct_info->labels.mask) && in ovs_ct_action_to_attr()
1509 nla_put(skb, OVS_CT_ATTR_LABELS, sizeof(ct_info->labels), in ovs_ct_action_to_attr()
1510 &ct_info->labels)) in ovs_ct_action_to_attr()