commit | 681d2cfb790339a3e95b98bc140baf1f816a896a | [log] [tgz] |
---|---|---|
author | Xin Long <lucien.xin@gmail.com> | Sun Sep 13 19:51:51 2020 +0800 |
committer | David S. Miller <davem@davemloft.net> | Mon Sep 14 16:49:39 2020 -0700 |
tree | 4eb7a4a9a92ba5e9dbcf96ce35b879738bcf6e7c | |
parent | 13e6ce98aa65ab5ce19351c020419360dfe8af29 [diff] |
lwtunnel: 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 do the mask when set it in lwtunnel, as it does in act_tunnel_key and cls_flower. Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>