diff mbox series

[ovs-dev] ovs-dpctl-top: Skip "eth()" element

Message ID 3a728f05dd57f0d97fda3d86c883f7f86cf672ef.1592564687.git.tredaelli@redhat.com
State Superseded
Headers show
Series [ovs-dev] ovs-dpctl-top: Skip "eth()" element | expand

Commit Message

Timothy Redaelli June 19, 2020, 11:04 a.m. UTC
With commit efde188622ae ("odp-util: Print eth() for Ethernet flows if
packet_type is absent.") "eth()" is printed for Ethernet flows if packet_type
is absent, but this broke "ovs-dpctl-top" since it expects that every
element has a value.

This commit skips the parsing of the empty "eth()" element.

Fixes: efde188622ae ("odp-util: Print eth() for Ethernet flows if packet_type
is absent.")
Cc: blp@ovn.org
---
 utilities/ovs-dpctl-top.in | 2 ++
 1 file changed, 2 insertions(+)

Comments

0-day Robot June 19, 2020, noon UTC | #1
Bleep bloop.  Greetings Timothy Redaelli, I am a robot and I have tried out your patch.
Thanks for your contribution.

I encountered some error that I wasn't expecting.  See the details below.


checkpatch:
ERROR: Author Timothy Redaelli <tredaelli@redhat.com> needs to sign off.
Lines checked: 36, Warnings: 0, Errors: 1


Please check this out.  If you feel there has been an error, please email aconole@redhat.com

Thanks,
0-day Robot
diff mbox series

Patch

diff --git a/utilities/ovs-dpctl-top.in b/utilities/ovs-dpctl-top.in
index 011cc64b7..fbe6e4f56 100755
--- a/utilities/ovs-dpctl-top.in
+++ b/utilities/ovs-dpctl-top.in
@@ -480,6 +480,8 @@  def elements_to_dict(elements):
     """ Convert line to a hierarchy of dictionaries. """
     result = {}
     for element in elements:
+        if (element == "eth()"):
+            continue
         match = FIELDS_CMPND.search(element)
         if (match):
             key = match.group(1)