Unmask upper DSCP bits - part 3
Status from this message: This series was applied to netdev/net-next.git (main)
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 All 4 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | ipv4: Unmask upper DSCP bits in __ip_queue_xmit()net/ | +1 | 1 reply | Applied |
| 2/4 | ipv4: ipmr: Unmask upper DSCP bits in ipmr_queue_xmit()net/ | +2 | 1 reply | Applied |
| 3/4 | ip6_tunnel: Unmask upper DSCP bits in ip4ip6_err()net/ | +5 | 1 reply | Applied |
| 4/4 | ipv6: sit: Unmask upper DSCP bits in ipip6_tunnel_bind_dev()net/ | +1 | 1 reply | Applied |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | David Ahern | Guillaume Nault |
|---|---|---|
| Series | R-b | |
| 1/4 | R-b | |
| 2/4 | R-b | |
| 3/4 | R-b | |
| 4/4 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net-next 0/4] Unmask upper DSCP bits - part 3
tl;dr - This patchset continues to unmask the upper DSCP bits in the IPv4 flow key in preparation for allowing IPv4 FIB rules to match on DSCP. No functional changes are expected.
The TOS field in the IPv4 flow key ('flowi4_tos') is used during FIB lookup to match against the TOS selector in FIB rules and routes.
It is currently impossible for user space to configure FIB rules that match on the DSCP value as the upper DSCP bits are either masked in the various call sites that initialize the IPv4 flow key or along the path to the FIB core.
In preparation for adding a DSCP selector to IPv4 and IPv6 FIB rules, we need to make sure the entire DSCP value is present in the IPv4 flow key. This patchset continues to unmask the upper DSCP bits, but this time in the output route path, specifically in the callers of ip_route_output_ports().
The next patchset (last) will handle the callers of ip_route_output_key(). Split from this patchset to avoid going over the 15 patches limit.
No functional changes are expected as commit 1fa3314c14c6 ("ipv4:
Centralize TOS matching") moved the masking of the upper DSCP bits to the core where 'flowi4_tos' is matched against the TOS selector.
Ido Schimmel (4):
ipv4: Unmask upper DSCP bits in __ip_queue_xmit()
ipv4: ipmr: Unmask upper DSCP bits in ipmr_queue_xmit()
ip6_tunnel: Unmask upper DSCP bits in ip4ip6_err()
ipv6: sit: Unmask upper DSCP bits in ipip6_tunnel_bind_dev()
net/ipv4/ip_output.c | 2 +- net/ipv4/ipmr.c | 4 ++-- net/ipv6/ip6_tunnel.c | 7 +++++-- net/ipv6/sit.c | 2 +- 4 files changed, 9 insertions(+), 6 deletions(-)
Signature · 1 line
2.46.0