Skip to content

Add IP_DSCP_MASK and fix vxlan tos value before xmit

Hangbin Liu netdev stable 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesIn review
  2. v12 patches 2 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net: add IP_DSCP_MASKinclude/uapi/linux/in_route.h include/uapi/linux/ip.h+2 -00 replies
2/2vxlan: fix getting tos value from DSCP fielddrivers/net/vxlan.c+2 -22 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchGuillaume Nault
SeriesA-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCHv2 net 0/2] Add IP_DSCP_MASK and fix vxlan tos value before xmit

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.

v2: Remove IP_DSCP() definition as it's duplicated with RT_DSCP().
Post the patch to net instead of net-next as we need fix the vxlan issue

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       | 1 +
 3 files changed, 4 insertions(+), 2 deletions(-)
Signature · 1 line
2.25.4