diff options
author | Aaron Conole <aconole@redhat.com> | 2022-04-29 13:40:33 -0400 |
---|---|---|
committer | Ilya Maximets <i.maximets@ovn.org> | 2022-05-26 11:43:48 +0200 |
commit | 7b3a4c2e866e80d1da4e9fadc36872a9a4c7ca53 (patch) | |
tree | f1e06e6f36f2c6af95ba849624dbdf2c914af314 /tests/ofproto-macros.at | |
parent | 482abeae570ce551d808f345caaf5b3c28bcb237 (diff) | |
download | openvswitch-7b3a4c2e866e80d1da4e9fadc36872a9a4c7ca53.tar.gz |
Revert "odp-util: Always report ODP_FIT_TOO_LITTLE for IGMP."
This reverts commit c645550bb249 ("odp-util: Always report
ODP_FIT_TOO_LITTLE for IGMP.")
Always forcing a slow path action can result in some over-broad
flows which swallow all traffic and force them to userspace, as reported
in the thread at
https://mail.openvswitch.org/pipermail/ovs-dev/2021-September/387706.html
and at
https://mail.openvswitch.org/pipermail/ovs-dev/2021-September/387689.html
Revert the ODP_FIT_TOO_LITTLE return for IGMP specifically.
Additionally, remove the userspace wc mask to prevent revalidator from
cycling flows.
Fixes: c645550bb249 ("odp-util: Always report ODP_FIT_TOO_LITTLE for IGMP.")
Signed-off-by: Aaron Conole <aconole@redhat.com>
Acked-by: Eelco Chaudron <echaudro@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'tests/ofproto-macros.at')
-rw-r--r-- | tests/ofproto-macros.at | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ofproto-macros.at b/tests/ofproto-macros.at index 7051d9539..b18f0fbc1 100644 --- a/tests/ofproto-macros.at +++ b/tests/ofproto-macros.at @@ -134,6 +134,21 @@ strip_ufid () { sed 's/mega_ufid:[[-0-9a-f]]* // s/ufid:[[-0-9a-f]]* //' } + +# Strips packets: and bytes: from output +strip_stats () { + sed 's/packets:[[0-9]]*/packets:0/ + s/bytes:[[0-9]]*/bytes:0/' +} + +# Changes all 'recirc(...)' and 'recirc=...' to say 'recirc(<recirc_id>)' and +# 'recirc=<recirc_id>' respectively. This should make output easier to +# compare. +strip_recirc() { + sed 's/recirc_id([[x0-9]]*)/recirc_id(<recirc>)/ + s/recirc_id=[[x0-9]]*/recirc_id=<recirc>/ + s/recirc([[x0-9]]*)/recirc(<recirc>)/' +} m4_divert_pop([PREPARE_TESTS]) m4_define([TESTABLE_LOG], [-vPATTERN:ANY:'%c|%p|%m']) |