On 9/8/25 11:01 PM, Ilya Maximets wrote:
> OVS adds matches on the DF/CSUM/etc bits of the tunnel info flags, but
> the DF bit is never actually extracted from the outer IP header during
> the tunnel decapsulation.  This is not a huge problem, as we'll only
> match on what was parsed out, since matching on DF flag is not exposed
> through OpenFlow to the users.  And since the bit is never extracted,
> we'll just always match on -df, which sort of "works", because the bit
> is never extracted and so it is never set.  However, this causes
> misleading -df matches in the datapath flow dumps even if the packets
> actually have the DF bit set, which it is by default.
> 
> Fix that by actually extracting the bit from the outer header while
> decapsulating tunneled traffic.
> 
> Signed-off-by: Ilya Maximets <[email protected]>
> ---
>  lib/netdev-native-tnl.c    |  6 +++++-
>  tests/nsh.at               | 10 +++++-----
>  tests/packet-type-aware.at | 22 +++++++++++-----------
>  tests/tunnel-push-pop.at   |  2 +-
>  4 files changed, 22 insertions(+), 18 deletions(-)

Recheck-request: github-robot
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to