summaryrefslogtreecommitdiff
path: root/ofproto
diff options
context:
space:
mode:
authorYunjian Wang <wangyunjian@huawei.com>2021-11-01 12:49:03 +0800
committerIlya Maximets <i.maximets@ovn.org>2021-11-29 20:38:01 +0100
commit72fbb90afc1bafde5a6b21d2c3b3e480c62990d7 (patch)
treedb8c41a53e2f5dd3049a484e7941fed78b2b0a94 /ofproto
parent7b8aeadd60c82f99a9d791a7df7c617254654f9d (diff)
downloadopenvswitch-72fbb90afc1bafde5a6b21d2c3b3e480c62990d7.tar.gz
ofproto-dpif-xlate: Add a trace log for tnl_port_build_header() error.
It is useful to also log when tnl_port_build_header() failed. Signed-off-by: Yunjian Wang <wangyunjian@huawei.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'ofproto')
-rw-r--r--ofproto/ofproto-dpif-xlate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ofproto/ofproto-dpif-xlate.c b/ofproto/ofproto-dpif-xlate.c
index 88cdc09a0..f8146663a 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 header build failed");
return err;
}
tnl_push_data.tnl_port = tunnel_odp_port;