Lines Matching refs:labels
68 struct md_labels labels; member
101 static bool labels_nonzero(const struct ovs_key_ct_labels *labels);
165 struct ovs_key_ct_labels *labels) in ovs_ct_get_labels() argument
170 memcpy(labels, cl->bits, OVS_CT_LABELS_LEN); in ovs_ct_get_labels()
172 memset(labels, 0, OVS_CT_LABELS_LEN); in ovs_ct_get_labels()
196 ovs_ct_get_labels(ct, &key->ct.labels); in __ovs_ct_update_key()
294 nla_put(skb, OVS_KEY_ATTR_CT_LABELS, sizeof(output->ct.labels), in ovs_ct_put_key()
295 &output->ct.labels)) in ovs_ct_put_key()
371 const struct ovs_key_ct_labels *labels, in ovs_ct_init_labels() argument
397 (labels->ct_labels_32[i] in ovs_ct_init_labels()
406 memcpy(&key->ct.labels, cl->bits, OVS_CT_LABELS_LEN); in ovs_ct_init_labels()
412 const struct ovs_key_ct_labels *labels, in ovs_ct_set_labels() argument
422 err = nf_connlabels_replace(ct, labels->ct_labels_32, in ovs_ct_set_labels()
428 memcpy(&key->ct.labels, cl->bits, OVS_CT_LABELS_LEN); in ovs_ct_set_labels()
1084 static bool labels_nonzero(const struct ovs_key_ct_labels *labels) in labels_nonzero() argument
1089 if (labels->ct_labels_32[i]) in labels_nonzero()
1236 err = ovs_ct_init_labels(ct, key, &info->labels.value, in ovs_ct_commit()
1237 &info->labels.mask); in ovs_ct_commit()
1241 labels_nonzero(&info->labels.mask)) { in ovs_ct_commit()
1242 err = ovs_ct_set_labels(ct, key, &info->labels.value, in ovs_ct_commit()
1243 &info->labels.mask); in ovs_ct_commit()
1571 struct md_labels *labels = nla_data(a); in parse_ct() local
1573 if (!labels_nonzero(&labels->mask)) { in parse_ct()
1577 info->labels = *labels; in parse_ct()
1626 if (!info->commit && labels_nonzero(&info->labels.mask)) { in parse_ct()
1811 labels_nonzero(&ct_info->labels.mask) && in ovs_ct_action_to_attr()
1812 nla_put(skb, OVS_CT_ATTR_LABELS, sizeof(ct_info->labels), in ovs_ct_action_to_attr()
1813 &ct_info->labels)) in ovs_ct_action_to_attr()