mbox series

[net-next,0/2] Add IP_DSCP_MASK and fix vxlan tos value before xmit

Message ID 20200803080217.391850-1-liuhangbin@gmail.com
Headers show
Series Add IP_DSCP_MASK and fix vxlan tos value before xmit | expand

Message

Hangbin Liu Aug. 3, 2020, 8:02 a.m. UTC
This patch set is aim to update the old IP_TOS_MASK to new IP_DSCP_MASK
as tos value has been obsoleted for a long time. But to make sure we don't
break any existing behaviour, we can't just replease all IP_TOS_MASK
to new IP_DSCP_MASK.

So let's update it case by case. The first issue we will fix is that vxlan
is unable to take the first 3 bits from DSCP field before xmit. Use the
new RT_DSCP() would resolve this.

Hangbin Liu (2):
  net: add IP_DSCP_MASK
  vxlan: fix getting tos value from DSCP field

 drivers/net/vxlan.c           | 4 ++--
 include/uapi/linux/in_route.h | 1 +
 include/uapi/linux/ip.h       | 2 ++
 3 files changed, 5 insertions(+), 2 deletions(-)