linux/drivers/net/ethernet/chelsio/libcxgb
Guillaume Nault a915deaa9a 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: 804c2f3e36 ("libcxgb,iw_cxgb4,cxgbit: add cxgb_find_route()")
Signed-off-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-01-11 20:36:08 -08:00
..
libcxgb_cm.c libcxgb: Don't accidentally set RTO_ONLINK in cxgb_find_route() 2022-01-11 20:36:08 -08:00
libcxgb_cm.h libcxgb,cxgb4: use __skb_put_zero to simplfy code 2018-04-30 11:53:48 -04:00
libcxgb_ppm.c net/chelsio: Delete drive and module versions 2020-03-03 17:54:54 -08:00
libcxgb_ppm.h chelsio: Replace zero-length array with flexible-array member 2020-02-24 15:26:17 -08:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00