diff options
author | Guillaume Nault <gnault@redhat.com> | 2022-01-10 14:43:11 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-01-11 20:36:08 -0800 |
commit | a915deaa9abe4fb3a440312c954253a6a733608e (patch) | |
tree | fa1f90b29df7e60086a3afb5eb0ab5b48351f172 /mm/Kconfig.debug | |
parent | gre: Don't accidentally set RTO_ONLINK in gre_fill_metadata_dst() (diff) | |
download | linux-dev-a915deaa9abe4fb3a440312c954253a6a733608e.tar.xz linux-dev-a915deaa9abe4fb3a440312c954253a6a733608e.zip |
libcxgb: Don't accidentally set RTO_ONLINK in cxgb_find_route()
Mask the ECN bits before calling ip_route_output_ports(). The tos
variable might be passed directly from an IPv4 header, so it may have
the last ECN bit set. This interferes with the route lookup process as
ip_route_output_key_hash() interpretes this bit specially (to restrict
the route scope).
Found by code inspection, compile tested only.
Fixes: 804c2f3e36ef ("libcxgb,iw_cxgb4,cxgbit: add cxgb_find_route()")
Signed-off-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'mm/Kconfig.debug')
0 files changed, 0 insertions, 0 deletions