mbox series

[net,0/2] net: improve vxlan option process in net_sched and lwtunnel

Message ID cover.1599997873.git.lucien.xin@gmail.com
Headers show
Series net: improve vxlan option process in net_sched and lwtunnel | expand

Message

Xin Long Sept. 13, 2020, 11:51 a.m. UTC
This patch is to do some mask when setting vxlan option in net_sched
and lwtunnel, so that only available bits can be set on vxlan md gbp.

This would help when users don't know exactly vxlan's gbp bits, and
avoid some mismatch because of some unavailable bits set by users.

Xin Long (2):
  net: sched: only keep the available bits when setting vxlan md->gbp
  lwtunnel: only keep the available bits when setting vxlan md->gbp

 include/net/vxlan.h        | 3 +++
 net/ipv4/ip_tunnel_core.c  | 1 +
 net/sched/act_tunnel_key.c | 1 +
 net/sched/cls_flower.c     | 4 +++-
 4 files changed, 8 insertions(+), 1 deletion(-)

Comments

David Miller Sept. 14, 2020, 11:52 p.m. UTC | #1
From: Xin Long <lucien.xin@gmail.com>

Date: Sun, 13 Sep 2020 19:51:49 +0800

> This patch is to do some mask when setting vxlan option in net_sched

> and lwtunnel, so that only available bits can be set on vxlan md gbp.

> 

> This would help when users don't know exactly vxlan's gbp bits, and

> avoid some mismatch because of some unavailable bits set by users.


Series applied, thank you.