summaryrefslogtreecommitdiff
path: root/vswitchd/vswitch.xml
diff options
context:
space:
mode:
authorAnju Thomas <anju.thomas@ericsson.com>2019-12-18 05:48:12 +0100
committerIlya Maximets <i.maximets@ovn.org>2020-01-07 17:01:42 +0100
commita13a0209750c424556189796061c40d08c689467 (patch)
tree32b4f84fdc418f497b25a41828dd7788aa0f20d8 /vswitchd/vswitch.xml
parent924d94a695a6ca54b83d4bd42ec196ba53947c6d (diff)
downloadopenvswitch-a13a0209750c424556189796061c40d08c689467.tar.gz
userspace: Improved packet drop statistics.
Currently OVS maintains explicit packet drop/error counters only on port level. Packets that are dropped as part of normal OpenFlow processing are counted in flow stats of “drop” flows or as table misses in table stats. These can only be interpreted by controllers that know the semantics of the configured OpenFlow pipeline. Without that knowledge, it is impossible for an OVS user to obtain e.g. the total number of packets dropped due to OpenFlow rules. Furthermore, there are numerous other reasons for which packets can be dropped by OVS slow path that are not related to the OpenFlow pipeline. The generated datapath flow entries include a drop action to avoid further expensive upcalls to the slow path, but subsequent packets dropped by the datapath are not accounted anywhere. Finally, the datapath itself drops packets in certain error situations. Also, these drops are today not accounted for.This makes it difficult for OVS users to monitor packet drop in an OVS instance and to alert a management system in case of a unexpected increase of such drops. Also OVS trouble-shooters face difficulties in analysing packet drops. With this patch we implement following changes to address the issues mentioned above. 1. Identify and account all the silent packet drop scenarios 2. Display these drops in ovs-appctl coverage/show Co-authored-by: Rohith Basavaraja <rohith.basavaraja@gmail.com> Co-authored-by: Keshav Gupta <keshugupta1@gmail.com> Signed-off-by: Anju Thomas <anju.thomas@ericsson.com> Signed-off-by: Rohith Basavaraja <rohith.basavaraja@gmail.com> Signed-off-by: Keshav Gupta <keshugupta1@gmail.com> Acked-by: Eelco Chaudron <echaudro@redhat.com Acked-by: Ben Pfaff <blp@ovn.org> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'vswitchd/vswitch.xml')
-rw-r--r--vswitchd/vswitch.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/vswitchd/vswitch.xml b/vswitchd/vswitch.xml
index b311ef278..0ec726c39 100644
--- a/vswitchd/vswitch.xml
+++ b/vswitchd/vswitch.xml
@@ -5917,6 +5917,11 @@ ovs-vsctl add-port br0 p0 -- set Interface p0 type=patch options:peer=p1 \
timeout policies based on connection tracking zones, as configured
through the <code>CT_Timeout_Policy</code> table.
</column>
+ <column name="capabilities" key="explicit_drop_action"
+ type='{"type": "boolean"}'>
+ True if the datapath supports OVS_ACTION_ATTR_DROP. If false,
+ explicit drop action will not be sent to the datapath.
+ </column>
</group>
<group title="Common Columns">