diff options
author | Xin Long <lucien.xin@gmail.com> | 2020-09-13 14:51:50 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-15 02:49:39 +0300 |
commit | 13e6ce98aa65ab5ce19351c020419360dfe8af29 (patch) | |
tree | 85f3cd4dd493f7ed32eceefe7b5c9755a81f8b70 /net/ipv4 | |
parent | ff48b6222e65ebdba5a403ef1deba6214e749193 (diff) | |
download | linux-13e6ce98aa65ab5ce19351c020419360dfe8af29.tar.xz |
net: sched: only keep the available bits when setting vxlan md->gbp
As we can see from vxlan_build/parse_gbp_hdr(), when processing metadata
on vxlan rx/tx path, only dont_learn/policy_applied/policy_id fields can
be set to or parse from the packet for vxlan gbp option.
So we'd better do the mask when set it in act_tunnel_key and cls_flower.
Otherwise, when users don't know these bits, they may configure with a
value which can never be matched.
Reported-by: Shuang Li <shuali@redhat.com>
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions