aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_vlan_mode.c
diff options
context:
space:
mode:
authorGuillaume Nault <gnault@redhat.com>2022-02-04 14:58:14 +0100
committerJakub Kicinski <kuba@kernel.org>2022-02-07 20:12:46 -0800
commit563f8e97e054451d167327336a53b7381517a998 (patch)
treea3dd5f35304c41a1be2d3be1fbdfc7bf3622d3c1 /drivers/net/ethernet/intel/ice/ice_vlan_mode.c
parentipv6: Define dscp_t and stop taking ECN bits into account in fib6-rules (diff)
downloadlinux-dev-563f8e97e054451d167327336a53b7381517a998.tar.xz
linux-dev-563f8e97e054451d167327336a53b7381517a998.zip
ipv4: Stop taking ECN bits into account in fib4-rules
Use the new dscp_t type to replace the tos field of struct fib4_rule, so that fib4-rules consistently ignore ECN bits. Before this patch, fib4-rules did accept rules with the high order ECN bit set (but not the low order one). Also, it relied on its callers masking the ECN bits of ->flowi4_tos to prevent those from influencing the result. This was brittle and a few call paths still do the lookup without masking the ECN bits first. After this patch fib4-rules only compare the DSCP bits. ECN can't influence the result anymore, even if the caller didn't mask these bits. Also, fib4-rules now must have both ECN bits cleared or they will be rejected. Signed-off-by: Guillaume Nault <gnault@redhat.com> Acked-by: David Ahern <dsahern@kernel.org> Reviewed-by: Toke Høiland-Jørgensen <toke@redhat.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_vlan_mode.c')
0 files changed, 0 insertions, 0 deletions