projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net: sched: only keep the available bits when setting vxlan md->gbp
[linux-2.6-microblaze.git]
/
net
/
sched
/
act_tunnel_key.c
diff --git
a/net/sched/act_tunnel_key.c
b/net/sched/act_tunnel_key.c
index
536c4bc
..
37f1e10
100644
(file)
--- a/
net/sched/act_tunnel_key.c
+++ b/
net/sched/act_tunnel_key.c
@@
-156,6
+156,7
@@
tunnel_key_copy_vxlan_opt(const struct nlattr *nla, void *dst, int dst_len,
struct vxlan_metadata *md = dst;
md->gbp = nla_get_u32(tb[TCA_TUNNEL_KEY_ENC_OPT_VXLAN_GBP]);
+ md->gbp &= VXLAN_GBP_MASK;
}
return sizeof(struct vxlan_metadata);