(I'm so sorry!) Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

net: lwtunnel: change encap fill order

I plan to add lwtunnel encap attributes to the YNL rt-route.yaml spec. When decoding submessages, YNL expects to read the "selector" (encap-type) first. Currently lwtunnel writes the encap payload first, which makes YNL fail to parse the lwtunnel encap message. Fixing this within YNL itself would be complicated. Instead, reorder the netlink attributes in the kernel to output encap_type first. This is a preparatory change for the upcoming rt-route spec updates. Reviewed-by: Ido Schimmel <idosch@nvidia.com> Signed-off-by: Hangbin Liu <liuhangbin@kylinos.cn> Link: https://patch.msgid.link/20261008-ynl_rt_encap-v4-1-4ed2ccf7f949@kylinos.cn Signed-off-by: Jakub Kicinski <kuba@kernel.org>


Author Hangbin Liu Committer Jakub Kicinski Date Commit Parent e6435b2c
+18 -17
1 changed file
+18 -17
1 changed file