We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fe84f7a + 08cd1c3 commit 980b2baCopy full SHA for 980b2ba
net/openvswitch/conntrack.c
@@ -167,8 +167,13 @@ static u32 ovs_ct_get_mark(const struct nf_conn *ct)
167
static void ovs_ct_get_labels(const struct nf_conn *ct,
168
struct ovs_key_ct_labels *labels)
169
{
170
- struct nf_conn_labels *cl = ct ? nf_ct_labels_find(ct) : NULL;
+ struct nf_conn_labels *cl = NULL;
171
172
+ if (ct) {
173
+ if (ct->master && !nf_ct_is_confirmed(ct))
174
+ ct = ct->master;
175
+ cl = nf_ct_labels_find(ct);
176
+ }
177
if (cl)
178
memcpy(labels, cl->bits, OVS_CT_LABELS_LEN);
179
else
0 commit comments