Skip to content

Commit

Permalink
ofproto-dpif-xlate: Add a trace log for tnl_port_build_header() error.
Browse files Browse the repository at this point in the history
It is useful to also log when tnl_port_build_header() failed.

Signed-off-by: Yunjian Wang <[email protected]>
Signed-off-by: Ilya Maximets <[email protected]>
  • Loading branch information
wyjwang authored and igsilya committed Nov 29, 2021
1 parent 7b8aead commit 72fbb90
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ofproto/ofproto-dpif-xlate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 72fbb90

Please sign in to comment.