Skip to content
Snippets Groups Projects
Commit 9c2e14b4 authored by Yi-Hung Wei's avatar Yi-Hung Wei Committed by Jakub Kicinski
Browse files

ip_tunnels: Set tunnel option flag when tunnel metadata is present

Currently, we may set the tunnel option flag when the size of metadata
is zero.  For example, we set TUNNEL_GENEVE_OPT in the receive function
no matter the geneve option is present or not.  As this may result in
issues on the tunnel flags consumers, this patch fixes the issue.

Related discussion:
* https://lore.kernel.org/netdev/1604448694-19351-1-git-send-email-yihung.wei@gmail.com/T/#u



Fixes: 256c87c1 ("net: check tunnel option type in tunnel flags")
Signed-off-by: default avatarYi-Hung Wei <yihung.wei@gmail.com>
Link: https://lore.kernel.org/r/1605053800-74072-1-git-send-email-yihung.wei@gmail.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 81e329e9
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment