Re: [PATCH net v3 1/2] net: tcp: lookup the best matched listen socket

2025-08-02 Thread Menglong Dong
On Sun, Aug 3, 2025 at 10:54 AM Jason Xing wrote: > > On Sun, Aug 3, 2025 at 9:59 AM Menglong Dong wrote: > > > > On Sat, Aug 2, 2025 at 9:06 PM Jason Xing wrote: > > > > > > Hi Menglong, > > > > > > On Sat, Aug 2, 2025 at 5:28 PM Menglong Dong > > > wrote: > > > > > > > > For now, the tcp soc

Re: [PATCH net v3 1/2] net: tcp: lookup the best matched listen socket

2025-08-02 Thread Jason Xing
On Sun, Aug 3, 2025 at 9:59 AM Menglong Dong wrote: > > On Sat, Aug 2, 2025 at 9:06 PM Jason Xing wrote: > > > > Hi Menglong, > > > > On Sat, Aug 2, 2025 at 5:28 PM Menglong Dong > > wrote: > > > > > > For now, the tcp socket lookup will terminate if the socket is reuse port > > > in inet_lhash

Re: [PATCH net v3 1/2] net: tcp: lookup the best matched listen socket

2025-08-02 Thread Menglong Dong
On Sat, Aug 2, 2025 at 9:06 PM Jason Xing wrote: > > Hi Menglong, > > On Sat, Aug 2, 2025 at 5:28 PM Menglong Dong wrote: > > > > For now, the tcp socket lookup will terminate if the socket is reuse port > > in inet_lhash2_lookup(), which makes the socket is not the best match. > > > > For exampl

Re: [PATCH v2 3/8] selftests: kselftest.h: Add __unused macro

2025-08-02 Thread John Hubbard
On 7/31/25 9:01 AM, Muhammad Usama Anjum wrote: ... > diff --git a/tools/testing/selftests/kselftest.h > b/tools/testing/selftests/kselftest.h > index c3b6d2604b1e4..8d17036d88396 100644 > --- a/tools/testing/selftests/kselftest.h > +++ b/tools/testing/selftests/kselftest.h > @@ -92,6 +92,10 @@ >

Re: [PATCH net v3 1/2] net: tcp: lookup the best matched listen socket

2025-08-02 Thread Jason Xing
Hi Menglong, On Sat, Aug 2, 2025 at 5:28 PM Menglong Dong wrote: > > For now, the tcp socket lookup will terminate if the socket is reuse port > in inet_lhash2_lookup(), which makes the socket is not the best match. > > For example, we have socket1 and socket2 both listen on "0.0.0.0:1234", > but

[PATCH net v3 2/2] selftests/net: test TCP reuseport socket selection

2025-08-02 Thread Menglong Dong
The test script is provided by Kuniyuki in [1], which is used to test the selection of the TCP reuseport socket problem. Link: https://lore.kernel.org/netdev/20250801040757.156-1-kun...@google.com/ [1] Signed-off-by: Menglong Dong --- tools/testing/selftests/net/Makefile | 1 + too

[PATCH net v3 1/2] net: tcp: lookup the best matched listen socket

2025-08-02 Thread Menglong Dong
For now, the tcp socket lookup will terminate if the socket is reuse port in inet_lhash2_lookup(), which makes the socket is not the best match. For example, we have socket1 and socket2 both listen on "0.0.0.0:1234", but socket1 bind on "eth0". We create socket1 first, and then socket2. Then, all

[PATCH net v3 0/2] net: tcp: lookup the best matched listen socket

2025-08-02 Thread Menglong Dong
For now, the tcp socket lookup will terminate if the socket is reuse port in inet_lhash2_lookup(), which makes the socket is not the best match. For example, we have socket1 and socket2 both listen on "0.0.0.0:1234", but socket1 bind on "eth0". We create socket1 first, and then socket2. Then, all

[PATCH v6 0/2] libbpf: fix USDT SIB argument handling causing unrecognized register error

2025-08-02 Thread Jiawei Zhao
When using GCC on x86-64 to compile an usdt prog with -O1 or higher optimization, the compiler will generate SIB addressing mode for global array and PC-relative addressing mode for global variable, e.g. "1@-96(%rbp,%rax,8)" and "-1@4+t1(%rip)". The current USDT implementation in libbpf cannot p

[PATCH v6 1/2] libbpf: fix USDT SIB argument handling causing unrecognized register error

2025-08-02 Thread Jiawei Zhao
On x86-64, USDT arguments can be specified using Scale-Index-Base (SIB) addressing, e.g. "1@-96(%rbp,%rax,8)". The current USDT implementation in libbpf cannot parse this format, causing `bpf_program__attach_usdt()` to fail with -ENOENT (unrecognized register). This patch fixes this by implementin

[PATCH v6 2/2] selftests/bpf: Force -O2 for USDT selftests to cover SIB handling logic

2025-08-02 Thread Jiawei Zhao
When using GCC on x86-64 to compile an usdt prog with -O1 or higher optimization, the compiler will generate SIB addressing mode for global array and PC-relative addressing mode for global variable, e.g. "1@-96(%rbp,%rax,8)" and "-1@4+t1(%rip)". In this patch: - force -O2 optimization for usdt.tes

Re: [PATCH v2] arch/x86/kvm/ioapic: Remove license boilerplate with bad FSF address

2025-08-02 Thread Greg Kroah-Hartman
On Fri, Aug 01, 2025 at 01:26:43PM +0200, Thomas Huth wrote: > On 28/07/2025 17.50, Greg Kroah-Hartman wrote: > > On Mon, Jul 28, 2025 at 05:36:47PM +0200, Greg Kroah-Hartman wrote: > > > On Mon, Jul 28, 2025 at 05:28:43PM +0200, Thomas Huth wrote: > > > > From: Thomas Huth > > > > > > > > The Fr