The FDP team is no longer accepting new bugs in Bugzilla. Please report your issues under FDP project in Jira. Thanks.
Bug 2060552 - Userspace datapath drops the encapsulated packet with inner vlan if sent to the access port
Summary: Userspace datapath drops the encapsulated packet with inner vlan if sent to t...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux Fast Datapath
Classification: Red Hat
Component: openvswitch2.15
Version: FDP 22.A
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Open vSwitch development team
QA Contact: Hekai Wang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-03 18:40 UTC by Ilya Maximets
Modified: 2023-09-18 04:33 UTC (History)
5 users (show)

Fixed In Version: openvswitch2.13-2.13.0-178.el8fdp openvswitch2.15-2.15.0-97.el8fdp openvswitch2.15-2.15.0-54.el9fdp openvswitch2.16-2.16.0-72.el8fdp openvswitch2.16-2.16.0-56.el9fdp openvswitch2.17-2.17.0-13.el8fdp
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-02-09 00:27:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 2033806 1 unspecified CLOSED VLAN is stripped before passing to mirror 2023-09-18 04:33:49 UTC
Red Hat Issue Tracker FD-1809 0 None None None 2022-03-03 18:55:16 UTC
Red Hat Product Errata RHSA-2023:0687 0 None None None 2023-02-09 00:27:49 UTC

Description Ilya Maximets 2022-03-03 18:40:22 UTC
Assuming the following setup:

    Bridge br-int
        datapath_type: netdev
        Port vmPort
            tag: 7
            Interface vmPort
        Port gre0
            Interface gre0
                type: gre
            
    Bridge br-ex
        datapath_type: netdev
        Port br-ex
            tag: 2020
            Interface br-ex
        Port phyPort
            Interface phyPort

Both bridges with action NORMAL.

IP of br-ex is in the subnet of the remote ip of gre0 so encapsulated packet
is routed to the br-ex.

Packet received on vmPort.

Expected result:

1. Packet enters br-int.
2. vlan 7 pushed to the packet.
3. Packet sent to the gre0 port.
4. GRE header pushed to the packet.
5. Packet routed to br-ex.
6. vlan 2020 pushed to the packet (outer header)
7. Packet [VLAN 2020 | GRE | VLAN 7 | <origingal packet> ] sent to the phyPort.

Actual result:

Packet is dropped by OVS after the step 5:

    bridge("br-ex")
    ---------------
         0. priority 0
            NORMAL
             >>>> dropping VLAN 7 tagged packet received on port br-ex configured as VLAN 2020 access port <<<<
             >> disallowed VLAN VID for this input port, dropping

---

The same configuration is working as expected with the kernel datapath, but
doesn't with the userspace one.  It seems like OVS doesn't clear the vlan
metadata after encapsulation while processing output to the native tunnel,
so it thinks that the packet is still in vlan 7.

Comment 12 errata-xmlrpc 2023-02-09 00:27:40 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: openvswitch2.15 security, bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2023:0687

Comment 13 Red Hat Bugzilla 2023-09-18 04:33:02 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


Note You need to log in before you can comment on or make changes to this bug.