[ovs-dev] [PATCH] ofproto-dpif-xlate: Add a trace log for tnl_port_build_header() error.

Yunjian Wang wangyunjian at huawei.com
Mon Nov 1 04:49:03 UTC 2021


It is useful to also log when tnl_port_build_header() failed.

Signed-off-by: Yunjian Wang <wangyunjian at huawei.com>
---
 ofproto/ofproto-dpif-xlate.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ofproto/ofproto-dpif-xlate.c b/ofproto/ofproto-dpif-xlate.c
index 9d336bc6a..a9c12a207 100644
--- a/ofproto/ofproto-dpif-xlate.c
+++ b/ofproto/ofproto-dpif-xlate.c
@@ -3681,6 +3681,7 @@ native_tunnel_output(struct xlate_ctx *ctx, const struct xport *xport,
     netdev_init_tnl_build_header_params(&tnl_params, flow, &s_ip6, dmac, smac);
     err = tnl_port_build_header(xport->ofport, &tnl_push_data, &tnl_params);
     if (err) {
+        xlate_report(ctx, OFT_WARN, "native tunnel build header failed");
         return err;
     }
     tnl_push_data.tnl_port = tunnel_odp_port;
-- 
2.23.0



More information about the dev mailing list