The FDP team is no longer accepting new bugs in Bugzilla. Please report your issues under FDP project in Jira. Thanks.
Bug 1726568 - [RFE] Include "Improved Packet Drop Statistics in OVS" in our OVS package
Summary: [RFE] Include "Improved Packet Drop Statistics in OVS" in our OVS package
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux Fast Datapath
Classification: Red Hat
Component: openvswitch2.11
Version: FDP 19.E
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Eelco Chaudron
QA Contact: qding
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-03 07:58 UTC by Eelco Chaudron
Modified: 2021-03-09 08:31 UTC (History)
11 users (show)

Fixed In Version: openvswitch2.11-2.11.0-42.el7fdn
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1796571 (view as bug list)
Environment:
Last Closed: 2020-03-10 09:35:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:0743 0 None None None 2020-03-10 09:35:53 UTC

Comment 1 Eelco Chaudron 2019-07-03 08:00:16 UTC
Reviewed v10 of the patchset, and waiting for a v11 to come out and if all is fine will ack the patchset.

Comment 2 Eelco Chaudron 2019-08-12 12:19:40 UTC
Reviewed the v12 patch, and sent comment upstream to dev mailing list

Comment 3 Eelco Chaudron 2019-10-31 12:41:09 UTC
v13 is out but I had some comments. Waiting for feedback or a v14 for six weeks now. I asked for an update 2 weeks ago, but no response, sent a gentle reminder today.

Comment 4 Eelco Chaudron 2019-11-05 07:57:48 UTC
v14 was sent out, tested and reviewed it. Waiting for inclusion in master branch so we include it in our OVS distribution

Comment 5 Eelco Chaudron 2019-11-19 10:19:46 UTC
Reviewed v15, one small comment:

https://mail.openvswitch.org/pipermail/ovs-dev/2019-November/364563.html

Comment 8 Rick Alongi 2020-02-07 16:42:03 UTC
Hi Eelco,

Can you provide further details on how to set up and test this new functionality?  Based on what I've reviewed, I assume there will be additional statistics being reported via ovs-appctl but I'm unsure what specific commands should be executed or statistics to check for and I'm unsure how to generate the necessary statistics to verify the feature.

Please advise.

Thanks,
Rick

Comment 9 Eelco Chaudron 2020-02-10 11:35:22 UTC
Hi Rick,

Yes all the potential reasons for dropping a packet now have a coverage counter. To be more specific the following new counters are defined:

$ grep COVERAGE_DEFINE 0001-userspace-Improved-packet-drop-statistics.patch
+COVERAGE_DEFINE(datapath_drop_meter);
+COVERAGE_DEFINE(datapath_drop_upcall_error);
+COVERAGE_DEFINE(datapath_drop_lock_error);
+COVERAGE_DEFINE(datapath_drop_userspace_action_error);
+COVERAGE_DEFINE(datapath_drop_tunnel_push_error);
+COVERAGE_DEFINE(datapath_drop_tunnel_pop_error);
+COVERAGE_DEFINE(datapath_drop_recirc_error);
+COVERAGE_DEFINE(datapath_drop_invalid_port);
+COVERAGE_DEFINE(datapath_drop_invalid_tnl_port);
+COVERAGE_DEFINE(datapath_drop_rx_invalid_packet);
+COVERAGE_DEFINE(datapath_drop_sample_error);
+COVERAGE_DEFINE(datapath_drop_nsh_decap_error);
+COVERAGE_DEFINE(drop_action_of_pipeline);
+COVERAGE_DEFINE(drop_action_bridge_not_found);
+COVERAGE_DEFINE(drop_action_recursion_too_deep);
+COVERAGE_DEFINE(drop_action_too_many_resubmit);
+COVERAGE_DEFINE(drop_action_stack_too_deep);
+COVERAGE_DEFINE(drop_action_no_recirculation_context);
+COVERAGE_DEFINE(drop_action_recirculation_conflict);
+COVERAGE_DEFINE(drop_action_too_many_mpls_labels);
+COVERAGE_DEFINE(drop_action_invalid_tunnel_metadata);
+COVERAGE_DEFINE(drop_action_unsupported_packet_type);
+COVERAGE_DEFINE(drop_action_congestion);
+COVERAGE_DEFINE(drop_action_forwarding_disabled);

These counters will show up in the "ovs-appctl coverage/show" if they have occurred at least once. It's hard to create a test that would trigger all. I would suggest trying to trigger one or two for confirmation of the patch inclusion. 

Some of the tests are also in the autotest you could use them:

https://github.com/openvswitch/ovs/blob/master/tests/drop-stats.at

In addition some more tests where part of the original patch (check the *.at files).

https://patchwork.ozlabs.org/patch/1136660/

Comment 10 Rick Alongi 2020-02-13 19:20:47 UTC
Hi Eelco,

Based on comment #6, this feature appears to be for both openvswitch2.11 and openvswitch2.12.  Is there a separate BZ tracking its inclusion on openvswitch2.12?  Is this feature for both RHEL-7 and RHEL-8?

Please advise so I can verify in the appropriate builds.

Thanks,
Rick

Comment 11 Timothy Redaelli 2020-02-13 19:28:21 UTC
Yes,
see the cloned bugzilla bz#1796571

Comment 14 errata-xmlrpc 2020-03-10 09:35:30 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, 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/RHBA-2020:0743


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