diff mbox series

[ovs-dev] ofproto-dpif: Add logging when sending out an in_port

Message ID CANA5aodkMCwcqmSHUTEchY=a682XZZspjfNafdZFLJKSudW2DA@mail.gmail.com
State Superseded
Headers show
Series [ovs-dev] ofproto-dpif: Add logging when sending out an in_port | expand

Commit Message

Zak Whittington Aug. 3, 2018, 12:22 a.m. UTC
This patch adds a log message to warn when sending out an in_port.

VMware-BZ: #2158607
Signed-off-by: Zak Whittington <zwhitt.vmware@gmail.com>
---
 ofproto/ofproto-dpif-xlate.c | 4 ++++
 1 file changed, 4 insertions(+)

         }
         break;
@@ -5092,6 +5094,8 @@ xlate_output_trunc_action(struct xlate_ctx *ctx,
                 ctx->xout->slow |= SLOW_ACTION;
             }
         } else {
+            static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5);
+            VLOG_INFO_RL(&rl, "skipping output to input port");
             xlate_report(ctx, OFT_WARN, "skipping output to input port");
         }
         break;

Comments

0-day Robot Aug. 3, 2018, 2:54 a.m. UTC | #1
Bleep bloop.  Greetings Zak Whittington, 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.


git-am:
fatal: patch fragment without header at line 7: @@ -5092,6 +5094,8 @@ xlate_output_trunc_action(struct xlate_ctx *ctx,
Repository lacks necessary blobs to fall back on 3-way merge.
Cannot fall back to three-way merge.
Patch failed at 0001 ofproto-dpif: Add logging when sending out an in_port
The copy of the patch that failed is found in:
   /var/lib/jenkins/jobs/upstream_build_from_pw/workspace/.git/rebase-apply/patch
When you have resolved this problem, run "git am --resolved".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".


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

Thanks,
0-day Robot
diff mbox series

Patch

diff --git a/ofproto/ofproto-dpif-xlate.c b/ofproto/ofproto-dpif-xlate.c
index 01f1faf..93fbee5 100644
--- a/ofproto/ofproto-dpif-xlate.c
+++ b/ofproto/ofproto-dpif-xlate.c
@@ -5007,6 +5007,8 @@  xlate_output_action(struct xlate_ctx *ctx, ofp_port_t
port,
         if (port != ctx->xin->flow.in_port.ofp_port) {
             compose_output_action(ctx, port, NULL, is_last_action,
truncate);
         } else {
+            static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5);
+            VLOG_INFO_RL(&rl, "skipping output to input port");
             xlate_report(ctx, OFT_WARN, "skipping output to input port");