All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net v3 0/3] Avoid TCP resets when using ECMP for load-balancing between multiple servers.
@ 2023-08-28 11:32 Sriram Yagnaraman
  2023-08-28 11:32 ` [PATCH net v3 1/3] ipv4: ignore dst hint for multipath routes Sriram Yagnaraman
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Sriram Yagnaraman @ 2023-08-28 11:32 UTC (permalink / raw)
  Cc: netdev, linux-kselftest, David S . Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, David Ahern, Ido Schimmel,
	Shuah Khan, Petr Machata, Sriram Yagnaraman

All packets in the same flow (L3/L4 depending on multipath hash policy)
should be directed to the same target, but after [0]/[1] we see stray
packets directed towards other targets. This, for instance, causes RST
to be sent on TCP connections.

The first two patches solve the problem by ignoring route hints for
destinations that are part of multipath group, by using new SKB flags
for IPv4 and IPv6. The third patch is a selftest that tests the
scenario.

Thanks to Ido, for reviewing and suggesting a way forward in [2] and
also suggesting how to write a selftest for this.

v2->v3:
- Add NULL check for skb in fib6_select_path (Ido Schimmel)
- Use fib_tests.sh for selftest instead of the forwarding suite (Ido
  Schimmel)
v1->v2:
- Update to commit messages describing the solution (Ido Schimmel)
- Use perf stat to count fib table lookups in selftest (Ido Schimmel)


Sriram Yagnaraman (3):
  ipv4: ignore dst hint for multipath routes
  ipv6: ignore dst hint for multipath routes
  selftests: fib_tests: Add multipath list receive tests

 include/linux/ipv6.h                     |   1 +
 include/net/ip.h                         |   1 +
 net/ipv4/ip_input.c                      |   3 +-
 net/ipv4/route.c                         |   1 +
 net/ipv6/ip6_input.c                     |   3 +-
 net/ipv6/route.c                         |   3 +
 tools/testing/selftests/net/fib_tests.sh | 150 ++++++++++++++++++++++-
 7 files changed, 159 insertions(+), 3 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: [PATCH net v3 2/3] ipv6: ignore dst hint for multipath routes
@ 2023-08-29  3:46 kernel test robot
  0 siblings, 0 replies; 14+ messages in thread
From: kernel test robot @ 2023-08-29  3:46 UTC (permalink / raw)
  Cc: oe-kbuild-all, llvm

In-Reply-To: <20230828113221.20123-3-sriram.yagnaraman@est.tech>
References: <20230828113221.20123-3-sriram.yagnaraman@est.tech>
TO: Sriram Yagnaraman <sriram.yagnaraman@est.tech>
CC: netdev@vger.kernel.org
CC: linux-kselftest@vger.kernel.org
CC: "David S . Miller" <davem@davemloft.net>
CC: Eric Dumazet <edumazet@google.com>
CC: Jakub Kicinski <kuba@kernel.org>
CC: Paolo Abeni <pabeni@redhat.com>
CC: David Ahern <dsahern@kernel.org>
CC: Ido Schimmel <idosch@nvidia.com>
CC: Shuah Khan <skhan@linuxfoundation.org>
CC: Petr Machata <petrm@nvidia.com>
CC: Sriram Yagnaraman <sriram.yagnaraman@est.tech>

Hi Sriram,

kernel test robot noticed the following build errors:

[auto build test ERROR on net/main]

url:    https://github.com/intel-lab-lkp/linux/commits/Sriram-Yagnaraman/ipv4-ignore-dst-hint-for-multipath-routes/20230828-203216
base:   net/main
patch link:    https://lore.kernel.org/r/20230828113221.20123-3-sriram.yagnaraman%40est.tech
patch subject: [PATCH net v3 2/3] ipv6: ignore dst hint for multipath routes
config: riscv-randconfig-r033-20230829 (https://download.01.org/0day-ci/archive/20230829/202308291103.hzyzyCB5-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project.git f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230829/202308291103.hzyzyCB5-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308291103.hzyzyCB5-lkp@intel.com/

All errors (new ones prefixed by >>):

>> ld.lld: error: vmlinux.a(init/main.o):(function do_one_initcall: .text+0xc1c): relocation R_RISCV_HI20 out of range: 529094 is not in [-524288, 524287]; references .L.str.17
   >>> referenced by main.c
   >>> defined in vmlinux.a(init/main.o)
--
>> ld.lld: error: vmlinux.a(init/main.o):(function perf_trace_initcall_level: .text+0x3d8): relocation R_RISCV_HI20 out of range: 531219 is not in [-524288, 524287]; references __per_cpu_offset
   >>> referenced by main.c
   >>> defined in vmlinux.a(mm/percpu.o)
--
>> ld.lld: error: vmlinux.a(init/main.o):(function perf_trace_initcall_start: .text+0x620): relocation R_RISCV_HI20 out of range: 531219 is not in [-524288, 524287]; references __per_cpu_offset
   >>> referenced by main.c
   >>> defined in vmlinux.a(mm/percpu.o)
--
>> ld.lld: error: vmlinux.a(init/main.o):(function perf_trace_initcall_finish: .text+0x848): relocation R_RISCV_HI20 out of range: 531219 is not in [-524288, 524287]; references __per_cpu_offset
   >>> referenced by main.c
   >>> defined in vmlinux.a(mm/percpu.o)
--
>> ld.lld: error: vmlinux.a(init/main.o):(function rcu_read_unlock: .text+0x9b8): relocation R_RISCV_HI20 out of range: 529605 is not in [-524288, 524287]; references rcu_lock_map
   >>> referenced by main.c
   >>> defined in vmlinux.a(kernel/rcu/update.o)

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2023-08-30 18:45 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-28 11:32 [PATCH net v3 0/3] Avoid TCP resets when using ECMP for load-balancing between multiple servers Sriram Yagnaraman
2023-08-28 11:32 ` [PATCH net v3 1/3] ipv4: ignore dst hint for multipath routes Sriram Yagnaraman
2023-08-28 15:15   ` Ido Schimmel
2023-08-28 18:55   ` David Ahern
2023-08-28 11:32 ` [PATCH net v3 2/3] ipv6: " Sriram Yagnaraman
2023-08-28 15:16   ` Ido Schimmel
2023-08-28 18:56   ` David Ahern
2023-08-28 11:32 ` [PATCH net v3 3/3] selftests: fib_tests: Add multipath list receive tests Sriram Yagnaraman
2023-08-28 15:24   ` Ido Schimmel
2023-08-28 18:57     ` David Ahern
2023-08-28 19:14     ` Jakub Kicinski
2023-08-30  9:17     ` Sriram Yagnaraman
2023-08-30 15:42       ` Ido Schimmel
  -- strict thread matches above, loose matches on Subject: below --
2023-08-29  3:46 [PATCH net v3 2/3] ipv6: ignore dst hint for multipath routes kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.