Re: [PATCH net] net: mpls: initialize rtm_tos in mpls_getroute()

From: patchwork-bot+netdevbpf

Date: Tue Jul 28 2026 - 05:33:23 EST


Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:

On Thu, 23 Jul 2026 10:08:29 +0900 you wrote:
> mpls_getroute() builds the RTM_NEWROUTE reply to an RTM_GETROUTE
> request by filling a struct rtmsg allocated from an skb whose data
> area is not zeroed (alloc_skb(NLMSG_GOODSIZE, ...)). It sets every
> field of the header except rtm_tos:
>
> r = nlmsg_data(nlh);
> r->rtm_family = AF_MPLS;
> r->rtm_dst_len = 20;
> r->rtm_src_len = 0;
> r->rtm_table = RT_TABLE_MAIN;
> r->rtm_type = RTN_UNICAST;
> r->rtm_scope = RT_SCOPE_UNIVERSE;
> r->rtm_protocol = rt->rt_protocol;
> r->rtm_flags = 0;
>
> [...]

Here is the summary with links:
- [net] net: mpls: initialize rtm_tos in mpls_getroute()
https://git.kernel.org/netdev/net/c/295dd295e213

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html