Bug 2224670 - OVS Mirror doesn't work as expected when both select-dst-port and select-src-port are selected
Summary: OVS Mirror doesn't work as expected when both select-dst-port and select-src-...
Keywords:
Status: MODIFIED
Alias: None
Product: Red Hat Enterprise Linux Fast Datapath
Classification: Red Hat
Component: openvswitch3.1
Version: RHEL 8.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Mike Pattrick
QA Contact: Zhiqiang Fang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-21 23:04 UTC by ovs-bugzilla
Modified: 2023-07-31 17:30 UTC (History)
4 users (show)

Fixed In Version: openvswitch3.1-3.1.0-37.el9fdp
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FD-3047 0 None None None 2023-07-21 23:05:33 UTC

Description ovs-bugzilla 2023-07-21 23:04:50 UTC
+++ This bug was initially created as a clone of Bug #2155579 +++

Created attachment 1933931 [details]
ovsmirrortest.diff

Created attachment 1933931 [details]
ovsmirrortest.diff

Description of problem:
While trying to add a test case related to OVS Mirror in OVN (ovn.at) we are seeing an issue when both 'select-dst-port' and 'select-src-port' are filled.

The test we are trying is very simple.

Send an ICMP echo request packet and expect an ICMP echo reply packet.
An OVS mirror is created and expected to mirror both the request and reply packets. (So both select-dst-port' and 'select-src-port' are filled appropriately)

While both ICMP request and reply we see are present (i.e. ping works fine)
But both packets are NOT getting mirrored. 
We see ONLY the ICMP request packet getting mirrored.

Alternatively if we select either 'select-dst-port' or 'select-src-port' those packets get mirrored separately well.
But when both are selected we see only the request packet getting mirrored.

I have attached the test case we used to test it and it has the OVS commands which is used to create mirrors. Please check it.

Further we also tried to create a similar environment on the actual HW setup and we do see the same issue there. So, its not just failing in test environment alone.

Version-Release number of selected component (if applicable):


How reproducible:
Please find attached the diff having the test case which uses OVS commands to create mirrors and verify it.

Actual results:
Only echo request packet is getting mirrored.

Expected results:
Both echo request and reply packets needs to be mirrored.

Additional info:

Comment 1 ovs-bugzilla 2023-07-21 23:04:54 UTC
* Fri Jul 21 2023 Open vSwitch CI <ovs-ci> - 3.1.0-37
- Merging upstream branch-3.1 [RH git: de746f5ab8]
    Commit list:
    cad4759fa1 ofproto-dpif-upcall: Mirror packets that are modified. (#2155579)


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