Hi,
I’m not an expert in this area, but I can see the metadata is
explicitly cleared when traffic goes over a patch port.
https://github.com/openvswitch/ovs/blob/0051785f00c52cbbc2897989a454a5512e82dce0/ofproto/ofproto-dpif-xlate.c#L4131
If I go over the Git history, I can see this has always been the case
since the introduction in commit 0a740f48293e.
It also explicitly mentions this:
/* If 'struct flow' gets additional metadata, we'll need to zero it
out
* before traversing a patch port. */
So I assume the documentation might be off, or the commit was wrong (and
it’s a bug), or there is another reason. Maybe Ilya or others know, as
this was done 12 years ago :)
Cheers,
Eelco
On 30 Aug 2024, at 4:27, 征途 via discuss wrote:
hello,In the ovs fields documentation, it says that metadata can
retain values across the ovs bridge
https://man7.org/linux/man-pages/man7/ovs-fields.7.html#METADATA_FIELDS
But in my tests, it doesn't seem to retain the value, can you help us
to answer the design in the first place?
Does metadata support retention of values across the ovs bridge or
not?thanks.
_______________________________________________
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
_______________________________________________
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss