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

Ilya Maximets i.maximets at ovn.org
Mon Nov 29 20:10:28 UTC 2021


On 11/1/21 05:49, Yunjian Wang wrote:
> 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;
> 

Applied.  Thanks!

Best regards, Ilya Maximets.


More information about the dev mailing list