Re: [PATCH v6 2/6] iommufd: Add IOMMU_HWPT_INVALIDATE

2023-12-01 Thread Yi Liu
On 2023/12/1 15:10, Tian, Kevin wrote: From: Liu, Yi L Sent: Friday, December 1, 2023 3:05 PM On 2023/12/1 13:19, Tian, Kevin wrote: From: Nicolin Chen Sent: Friday, December 1, 2023 12:50 PM On Fri, Dec 01, 2023 at 11:51:26AM +0800, Yi Liu wrote: On 2023/11/29 08:57, Jason Gunthorpe wrote:

Re: [PATCH v5 5/5] selftests/mm: add UFFDIO_MOVE ioctl test

2023-12-01 Thread Ryan Roberts
On 21/11/2023 17:16, Suren Baghdasaryan wrote: > Add tests for new UFFDIO_MOVE ioctl which uses uffd to move source > into destination buffer while checking the contents of both after > the move. After the operation the content of the destination buffer > should match the original source buffer's c

Re: [PATCH bpf-next v2 0/3] xsk: TX metadata txtime support

2023-12-01 Thread Jesper Dangaard Brouer
On 12/1/23 07:24, Song Yoong Siang wrote: This series expands XDP TX metadata framework to include ETF HW offload. Changes since v1: - rename Time-Based Scheduling (TBS) to Earliest TxTime First (ETF) - rename launch-time to txtime I strongly disagree with this renaming (sorry to disagree

Re: [PATCHv2 net-next 10/14] selftests/net: convert ioam6.sh to run it in unique namespace

2023-12-01 Thread Justin Iurman
On 12/1/23 07:43, Hangbin Liu wrote: On Thu, Nov 30, 2023 at 02:28:51PM +0100, Justin Iurman wrote: On 11/30/23 05:01, Hangbin Liu wrote: Here is the test result after conversion. ]# ./ioam6.sh -- OUTPUT tests ---

Re: [PATCH RFT v4 0/5] fork: Support shadow stacks in clone3()

2023-12-01 Thread Szabolcs Nagy
The 11/30/2023 21:51, Mark Brown wrote: > The concern Rick raised was that allowing user to pick the exact shadow > stack pointer would allow userspace to corrupt or reuse the stack of an > existing thread by starting a new thread with the shadow stack pointing > into the existing shadow stack of t

kselftest/next kselftest-livepatch: 2 runs, 1 regressions (v6.7-rc1-9-g130a83879954a)

2023-12-01 Thread kernelci.org bot
kselftest/next kselftest-livepatch: 2 runs, 1 regressions (v6.7-rc1-9-g130a83879954a) Regressions Summary --- platform| arch | lab | compiler | defconfig | regressions +---+---+--+-

kselftest/next kselftest-cpufreq: 4 runs, 1 regressions (v6.7-rc1-9-g130a83879954a)

2023-12-01 Thread kernelci.org bot
kselftest/next kselftest-cpufreq: 4 runs, 1 regressions (v6.7-rc1-9-g130a83879954a) Regressions Summary --- platform| arch | lab | compiler | defconfig | regressions +---+---+--+---

kselftest/next kselftest-lkdtm: 4 runs, 3 regressions (v6.7-rc1-9-g130a83879954a)

2023-12-01 Thread kernelci.org bot
kselftest/next kselftest-lkdtm: 4 runs, 3 regressions (v6.7-rc1-9-g130a83879954a) Regressions Summary --- platform | arch | lab | compiler | defconfig | regressions -+---+---+--

kselftest/next kselftest-seccomp: 4 runs, 2 regressions (v6.7-rc1-9-g130a83879954a)

2023-12-01 Thread kernelci.org bot
kselftest/next kselftest-seccomp: 4 runs, 2 regressions (v6.7-rc1-9-g130a83879954a) Regressions Summary --- platform | arch | lab | compiler | defconfig | regressions -+---+---+

kselftest/next kselftest-lib: 2 runs, 1 regressions (v6.7-rc1-9-g130a83879954a)

2023-12-01 Thread kernelci.org bot
kselftest/next kselftest-lib: 2 runs, 1 regressions (v6.7-rc1-9-g130a83879954a) Regressions Summary --- platform| arch | lab | compiler | defconfig | regressions +---+---+--+

Re: [PATCH v6 2/6] iommufd: Add IOMMU_HWPT_INVALIDATE

2023-12-01 Thread Jason Gunthorpe
On Thu, Nov 30, 2023 at 08:29:34PM -0800, Nicolin Chen wrote: > On Thu, Nov 30, 2023 at 08:45:23PM -0400, Jason Gunthorpe wrote: > > On Thu, Nov 30, 2023 at 12:41:20PM -0800, Nicolin Chen wrote: > > > > > > So userspace would have to read the event FD > > > > before returning to be correct? > > >

Re: [PATCH v3 3/3] selftests: livepatch: Test livepatching a heavily called syscall

2023-12-01 Thread Marcos Paulo de Souza
On Thu, Nov 30, 2023 at 04:24:26PM -0700, Shuah Khan wrote: > On 10/31/23 15:10, Marcos Paulo de Souza wrote: > > The test proves that a syscall can be livepatched. It is interesting > > because syscalls are called a tricky way. Also the process gets > > livepatched either when sleeping in the user

RE: [PATCH bpf-next v2 0/3] xsk: TX metadata txtime support

2023-12-01 Thread Song, Yoong Siang
On Friday, December 1, 2023 6:46 PM, Jesper Dangaard Brouer wrote: >On 12/1/23 07:24, Song Yoong Siang wrote: >> This series expands XDP TX metadata framework to include ETF HW offload. >> >> Changes since v1: >> - rename Time-Based Scheduling (TBS) to Earliest TxTime First (ETF) >> - rename laun

Re: [PATCH RFT v4 0/5] fork: Support shadow stacks in clone3()

2023-12-01 Thread Mark Brown
On Fri, Dec 01, 2023 at 11:50:25AM +, Szabolcs Nagy wrote: > The 11/30/2023 21:51, Mark Brown wrote: > > The concern Rick raised was that allowing user to pick the exact shadow > > stack pointer would allow userspace to corrupt or reuse the stack of an > > existing thread by starting a new thre

Re: [PATCH RFT v4 0/5] fork: Support shadow stacks in clone3()

2023-12-01 Thread Mark Brown
On Thu, Nov 30, 2023 at 11:37:42PM +, Edgecombe, Rick P wrote: > On Thu, 2023-11-30 at 21:51 +, Mark Brown wrote: > > On Thu, Nov 30, 2023 at 07:00:58PM +, Catalin Marinas wrote: > > explicitly request a new shadow stack.  There was some corner case > > with > > IIRC posix_nspawn() men

Re: [PATCH v2 0/6] IOMMUFD: Deliver IO page faults to user space

2023-12-01 Thread Jason Gunthorpe
On Thu, Oct 26, 2023 at 10:49:24AM +0800, Lu Baolu wrote: > Hi folks, > > This series implements the functionality of delivering IO page faults to > user space through the IOMMUFD framework for nested translation. Nested > translation is a hardware feature that supports two-stage translation > tab

Re: [PATCH v2 1/6] iommu: Add iommu page fault cookie helpers

2023-12-01 Thread Jason Gunthorpe
On Thu, Oct 26, 2023 at 10:49:25AM +0800, Lu Baolu wrote: > +void *iopf_pasid_cookie_get(struct device *dev, ioasid_t pasid) > +{ > + struct iommu_fault_param *iopf_param = iopf_get_dev_fault_param(dev); > + void *curr; > + > + if (!iopf_param) > + return ERR_PTR(-ENODEV);

Re: [PATCH bpf-next v2 2/3] net: stmmac: Add txtime support to XDP ZC

2023-12-01 Thread Jesper Dangaard Brouer
On 12/1/23 07:24, Song Yoong Siang wrote: This patch enables txtime support to XDP zero copy via XDP Tx metadata framework. Signed-off-by: Song Yoong Siang --- drivers/net/ethernet/stmicro/stmmac/stmmac.h | 2 ++ drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 13 +

RE: [PATCH bpf-next v2 0/3] xsk: TX metadata txtime support

2023-12-01 Thread Willem de Bruijn
Song, Yoong Siang wrote: > On Friday, December 1, 2023 6:46 PM, Jesper Dangaard Brouer > wrote: > >On 12/1/23 07:24, Song Yoong Siang wrote: > >> This series expands XDP TX metadata framework to include ETF HW offload. > >> > >> Changes since v1: > >> - rename Time-Based Scheduling (TBS) to Earli

Re: [PATCH v2 2/6] iommufd: Add iommu page fault uapi data

2023-12-01 Thread Jason Gunthorpe
On Thu, Oct 26, 2023 at 10:49:26AM +0800, Lu Baolu wrote: > + * @IOMMU_HWPT_ALLOC_IOPF_CAPABLE: User is capable of handling IO page > faults. This does not seem like the best name? Probably like this given my remark in the cover letter: --- a/include/uapi/linux/iommufd.h +++ b/include/uapi/lin

Re: [PATCH v2 4/6] iommufd: Deliver fault messages to user space

2023-12-01 Thread Jason Gunthorpe
On Thu, Oct 26, 2023 at 10:49:28AM +0800, Lu Baolu wrote: > +static ssize_t hwpt_fault_fops_write(struct file *filep, > + const char __user *buf, > + size_t count, loff_t *ppos) > +{ > + size_t response_size = sizeof(struct iomm

Re: [PATCH bpf-next v2 2/3] net: stmmac: Add txtime support to XDP ZC

2023-12-01 Thread Willem de Bruijn
Jesper Dangaard Brouer wrote: > > > On 12/1/23 07:24, Song Yoong Siang wrote: > > This patch enables txtime support to XDP zero copy via XDP Tx > > metadata framework. > > > > Signed-off-by: Song Yoong Siang > > --- > > drivers/net/ethernet/stmicro/stmmac/stmmac.h | 2 ++ > > drivers/ne

Re: [PATCH v3 2/3] livepatch: Move tests from lib/livepatch to selftests/livepatch

2023-12-01 Thread Joe Lawrence
On Tue, Oct 31, 2023 at 06:10:52PM -0300, Marcos Paulo de Souza wrote: > The modules are being moved from lib/livepatch to > tools/testing/selftests/livepatch/test_modules. > > This code moving will allow writing more complex tests, like for example an > userspace C code that will call a livepatch

Re: [PATCH bpf-next v2 0/3] xsk: TX metadata txtime support

2023-12-01 Thread Jesper Dangaard Brouer
On 12/1/23 16:09, Willem de Bruijn wrote: Song, Yoong Siang wrote: On Friday, December 1, 2023 6:46 PM, Jesper Dangaard Brouer wrote: On 12/1/23 07:24, Song Yoong Siang wrote: This series expands XDP TX metadata framework to include ETF HW offload. Changes since v1: - rename Time-Based S

Re: [PATCH v5 5/5] selftests/mm: add UFFDIO_MOVE ioctl test

2023-12-01 Thread Suren Baghdasaryan
On Fri, Dec 1, 2023 at 1:29 AM Ryan Roberts wrote: > > On 21/11/2023 17:16, Suren Baghdasaryan wrote: > > Add tests for new UFFDIO_MOVE ioctl which uses uffd to move source > > into destination buffer while checking the contents of both after > > the move. After the operation the content of the de

Re: [PATCH v3 3/3] selftests: livepatch: Test livepatching a heavily called syscall

2023-12-01 Thread Shuah Khan
On 12/1/23 06:13, Marcos Paulo de Souza wrote: On Thu, Nov 30, 2023 at 04:24:26PM -0700, Shuah Khan wrote: Missing module name? Is there a reason to not name this module? Can you please elaborate? This new module use the same MODULE_ macros used by the current livepatch selftests. What do y

Re: [PATCH RFT v4 0/5] fork: Support shadow stacks in clone3()

2023-12-01 Thread Catalin Marinas
Thanks all for the clarification. On Thu, Nov 30, 2023 at 09:51:04PM +, Mark Brown wrote: > On Thu, Nov 30, 2023 at 07:00:58PM +, Catalin Marinas wrote: > > My hope when looking at the arm64 patches was that we can completely > > avoid the kernel allocation/deallocation of the shadow stack

Re: [PATCH RFT v4 0/5] fork: Support shadow stacks in clone3()

2023-12-01 Thread Mark Brown
On Fri, Dec 01, 2023 at 05:30:22PM +, Catalin Marinas wrote: > Another concern I had was that map_shadow_stack() currently takes > a flags arg (though only one flag) while the clone/clone3() allocate the > shadow stack with an implicit configuration (other than size). Would > map_shadow_stack(

Re: [PATCH v6 2/6] iommufd: Add IOMMU_HWPT_INVALIDATE

2023-12-01 Thread Nicolin Chen
On Fri, Dec 01, 2023 at 08:55:38AM -0400, Jason Gunthorpe wrote: > On Thu, Nov 30, 2023 at 08:29:34PM -0800, Nicolin Chen wrote: > > On Thu, Nov 30, 2023 at 08:45:23PM -0400, Jason Gunthorpe wrote: > > > On Thu, Nov 30, 2023 at 12:41:20PM -0800, Nicolin Chen wrote: > > > > > > > > So userspace wou

[PATCH ipsec-next v3 4/9] bpf: selftests: test_loader: Support __btf_path() annotation

2023-12-01 Thread Daniel Xu
This commit adds support for per-prog btf_custom_path. This is necessary for testing CO-RE relocations on non-vmlinux types using test_loader infrastructure. Signed-off-by: Daniel Xu --- tools/testing/selftests/bpf/progs/bpf_misc.h | 1 + tools/testing/selftests/bpf/test_loader.c| 7 +++

[PATCH ipsec-next v3 5/9] libbpf: selftests: Add verifier tests for CO-RE bitfield writes

2023-12-01 Thread Daniel Xu
Add some tests that exercise BPF_CORE_WRITE_BITFIELD() macro. Since some non-trivial bit fiddling is going on, make sure various edge cases (such as adjacent bitfields and bitfields at the edge of structs) are exercised. Signed-off-by: Daniel Xu --- .../selftests/bpf/prog_tests/verifier.c

[PATCH ipsec-next v3 0/9] Add bpf_xdp_get_xfrm_state() kfunc

2023-12-01 Thread Daniel Xu
This patchset adds two kfunc helpers, bpf_xdp_get_xfrm_state() and bpf_xdp_xfrm_state_release() that wrap xfrm_state_lookup() and xfrm_state_put(). The intent is to support software RSS (via XDP) for the ongoing/upcoming ipsec pcpu work [0]. Recent experiments performed on (hopefully) reproducible

[PATCH ipsec-next v3 6/9] bpf: selftests: test_tunnel: Setup fresh topology for each subtest

2023-12-01 Thread Daniel Xu
This helps with determinism b/c individual setup/teardown prevents leaking state between different subtests. Signed-off-by: Daniel Xu --- tools/testing/selftests/bpf/prog_tests/test_tunnel.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tools/testing/selftests/bpf/pr

[PATCH ipsec-next v3 7/9] bpf: selftests: test_tunnel: Use vmlinux.h declarations

2023-12-01 Thread Daniel Xu
vmlinux.h declarations are more ergnomic, especially when working with kfuncs. The uapi headers are often incomplete for kfunc definitions. This commit also switches bitfield accesses to use CO-RE helpers. Switching to vmlinux.h definitions makes the verifier very unhappy with raw bitfield accesse

[PATCH ipsec-next v3 8/9] bpf: selftests: Move xfrm tunnel test to test_progs

2023-12-01 Thread Daniel Xu
test_progs is better than a shell script b/c C is a bit easier to maintain than shell. Also it's easier to use new infra like memory mapped global variables from C via bpf skeleton. Co-developed-by: Antony Antony Signed-off-by: Antony Antony Signed-off-by: Daniel Xu --- .../selftests/bpf/prog_

[PATCH ipsec-next v3 9/9] bpf: xfrm: Add selftest for bpf_xdp_get_xfrm_state()

2023-12-01 Thread Daniel Xu
This commit extends test_tunnel selftest to test the new XDP xfrm state lookup kfunc. Co-developed-by: Antony Antony Signed-off-by: Antony Antony Signed-off-by: Daniel Xu --- .../selftests/bpf/prog_tests/test_tunnel.c| 20 ++-- .../selftests/bpf/progs/test_tunnel_kern.c| 51 +++

Re: [PATCH v6 2/6] iommufd: Add IOMMU_HWPT_INVALIDATE

2023-12-01 Thread Jason Gunthorpe
On Fri, Dec 01, 2023 at 11:58:07AM -0800, Nicolin Chen wrote: > > It seems there is not a simple way to realize this error back to > > userspace since we can't block the global command queue and we proceed > > to complete commands that the real HW would not have completed. > > > > To actually emul

Re: [PATCH v5 5/5] selftests/mm: add UFFDIO_MOVE ioctl test

2023-12-01 Thread David Hildenbrand
On 01.12.23 10:29, Ryan Roberts wrote: On 21/11/2023 17:16, Suren Baghdasaryan wrote: Add tests for new UFFDIO_MOVE ioctl which uses uffd to move source into destination buffer while checking the contents of both after the move. After the operation the content of the destination buffer should ma

Re: [PATCH v1 3/9] x86/resctrl: Add resctrl_mbm_flush_cpu() to collect CPUs' MBM events

2023-12-01 Thread Peter Newman
Hi Reinette, On Tue, May 16, 2023 at 5:06 PM Reinette Chatre wrote: > On 5/15/2023 7:42 AM, Peter Newman wrote: > > > > I used a simple parent-child pipe loop benchmark with the parent in > > one monitoring group and the child in another to trigger 2M > > context-switches on the same CPU and comp

Re: [PATCH v5 5/5] selftests/mm: add UFFDIO_MOVE ioctl test

2023-12-01 Thread Suren Baghdasaryan
On Fri, Dec 1, 2023 at 12:47 PM David Hildenbrand wrote: > > On 01.12.23 10:29, Ryan Roberts wrote: > > On 21/11/2023 17:16, Suren Baghdasaryan wrote: > >> Add tests for new UFFDIO_MOVE ioctl which uses uffd to move source > >> into destination buffer while checking the contents of both after > >>

Re: [PATCH v6 2/6] iommufd: Add IOMMU_HWPT_INVALIDATE

2023-12-01 Thread Nicolin Chen
On Fri, Dec 01, 2023 at 04:43:40PM -0400, Jason Gunthorpe wrote: > On Fri, Dec 01, 2023 at 11:58:07AM -0800, Nicolin Chen wrote: > > > It seems there is not a simple way to realize this error back to > > > userspace since we can't block the global command queue and we proceed > > > to complete comm

Re: [PATCH ipsec-next v3 4/9] bpf: selftests: test_loader: Support __btf_path() annotation

2023-12-01 Thread Andrii Nakryiko
On Fri, Dec 1, 2023 at 12:24 PM Daniel Xu wrote: > > This commit adds support for per-prog btf_custom_path. This is necessary > for testing CO-RE relocations on non-vmlinux types using test_loader > infrastructure. > > Signed-off-by: Daniel Xu > --- > tools/testing/selftests/bpf/progs/bpf_misc.h

Re: [PATCH ipsec-next v3 5/9] libbpf: selftests: Add verifier tests for CO-RE bitfield writes

2023-12-01 Thread Andrii Nakryiko
On Fri, Dec 1, 2023 at 12:24 PM Daniel Xu wrote: > > Add some tests that exercise BPF_CORE_WRITE_BITFIELD() macro. Since some > non-trivial bit fiddling is going on, make sure various edge cases (such > as adjacent bitfields and bitfields at the edge of structs) are > exercised. > > Signed-off-by:

[RFC PATCH 0/5] selftests/damon: add Python modules for DAMON control and functionality tests

2023-12-01 Thread SeongJae Park
DAMON provides almost all control to the user via its sysfs interface. For that, the interface provides plenty of files and hierarchies. The interface is simple enough to be controlled by shell commands including 'cat', 'echo', and redirection. However, due to the number of files and the hierarch

[RFC PATCH 1/5] selftests/damon: add a DAMON interface wrapper python module

2023-12-01 Thread SeongJae Park
DAMON sysfs interface supports almost every DAMON functionality. For that, it provides a number of files and hierarchies that not simple to be manually manipulated, or writing shell script every time. For the reason, DAMON is not having good functionality selftests. Adding an existing DAMON user

[RFC PATCH 2/5] selftests/damon/_damon: implement sysfs-based kdamonds start function

2023-12-01 Thread SeongJae Park
Extend the test-writing-purpose DAMON sysfs wrapper Python module to support turning DAMON on with basic parameter inputs. Signed-off-by: SeongJae Park --- tools/testing/selftests/damon/_damon.py | 206 1 file changed, 206 insertions(+) diff --git a/tools/testing/selfte

[RFC PATCH 4/5] selftests/damon: add a test for update_schemes_tried_regions sysfs command

2023-12-01 Thread SeongJae Park
Add a basic test for verifying accuracy of DAMON's access monitoring functionality. The test starts a program of artificial access pattern, monitor the accesses using DAMON, and check if DAMON gets working set size with reasonable amount of error rate. Note that the acceptable error rate is set w

[RFC PATCH 3/5] selftests/damon/_damon: implement sysfs updat_schemes_tried_bytes command

2023-12-01 Thread SeongJae Park
Implement update_schemes_tried_bytes command in the test-writing-purpose DAMON sysfs interface wrapper Python module. It is not only making the update, but also read the updated value from the sysfs interface and store on the Kdamond python objects so that user of the module can get it by reading

[RFC PATCH 5/5] selftests/damon: add a test for update_schemes_tried_regions hang bug

2023-12-01 Thread SeongJae Park
The update_schemees_tried_{regions,bytes} command was able to be indefinitely hang in some corner cases. It has fixed by introducing a timeout for the command[1]. Add a test for the corner case to not introduce the problem again. [1] https://lore.kernel.org/damon/20231124213840.39157-1...@kernel

Re: [PATCH ipsec-next v3 0/9] Add bpf_xdp_get_xfrm_state() kfunc

2023-12-01 Thread Alexei Starovoitov
On Fri, Dec 1, 2023 at 12:23 PM Daniel Xu wrote: > > This patchset adds two kfunc helpers, bpf_xdp_get_xfrm_state() and > bpf_xdp_xfrm_state_release() that wrap xfrm_state_lookup() and > xfrm_state_put(). The intent is to support software RSS (via XDP) for > the ongoing/upcoming ipsec pcpu work [0

Re: [PATCH ipsec-next v3 5/9] libbpf: selftests: Add verifier tests for CO-RE bitfield writes

2023-12-01 Thread Daniel Xu
Hi Andrii, On Fri, Dec 01, 2023 at 03:52:25PM -0800, Andrii Nakryiko wrote: > On Fri, Dec 1, 2023 at 12:24 PM Daniel Xu wrote: > > > > Add some tests that exercise BPF_CORE_WRITE_BITFIELD() macro. Since some > > non-trivial bit fiddling is going on, make sure various edge cases (such > > as adjac

Re: [PATCH ipsec-next v3 0/9] Add bpf_xdp_get_xfrm_state() kfunc

2023-12-01 Thread Daniel Xu
On Fri, Dec 01, 2023 at 04:10:18PM -0800, Alexei Starovoitov wrote: > On Fri, Dec 1, 2023 at 12:23 PM Daniel Xu wrote: > > > > This patchset adds two kfunc helpers, bpf_xdp_get_xfrm_state() and > > bpf_xdp_xfrm_state_release() that wrap xfrm_state_lookup() and > > xfrm_state_put(). The intent is t

Re: [PATCH ipsec-next v3 5/9] libbpf: selftests: Add verifier tests for CO-RE bitfield writes

2023-12-01 Thread Eduard Zingerman
On Fri, 2023-12-01 at 17:10 -0700, Daniel Xu wrote: [...] > > > +SEC("tc") > > > +__description("single CO-RE bitfield roundtrip") > > > +__btf_path("btf__core_reloc_bitfields.bpf.o") > > > +__success __failure_unpriv > > > > do we want __failure_unpriv at all? Is this failure related to > > *bitf

[PATCHv3 net-next 00/14] Conver net selftests to run in unique namespace (Part 1)

2023-12-01 Thread Hangbin Liu
As Guillaume pointed, many selftests create namespaces with very common names (like "client" or "server") or even (partially) run directly in init_net. This makes these tests prone to failure if another namespace with the same name already exists. It also makes it impossible to run several instance

[PATCHv3 net-next 01/14] selftests/net: add lib.sh

2023-12-01 Thread Hangbin Liu
Add a lib.sh for net selftests. This file can be used to define commonly used variables and functions. Some commonly used functions can be moved from forwarding/lib.sh to this lib file. e.g. busywait(). Add function setup_ns() for user to create unique namespaces with given prefix name. Reviewed-

[PATCHv3 net-next 02/14] selftests/net: convert arp_ndisc_evict_nocarrier.sh to run it in unique namespace

2023-12-01 Thread Hangbin Liu
Here is the test result after conversion. ]# ./arp_ndisc_evict_nocarrier.sh run arp_evict_nocarrier=1 test ok run arp_evict_nocarrier=0 test ok run all.arp_evict_nocarrier=0 test ok run ndisc_evict_nocarrier=1 test ok run ndisc_evict_nocarrier=0 test ok run all.ndisc_evict_nocarrier=0 test ok Ack

[PATCHv3 net-next 03/14] selftests/net: specify the interface when do arping

2023-12-01 Thread Hangbin Liu
When do arping, the interface need to be specified. Or we will get error: Interface "lo" is not ARPable. And the test failed. ]# ./arp_ndisc_untracked_subnets.sh TEST: test_arp: accept_arp=0 [ OK ] TEST: test_arp: accept_arp=1

[PATCHv3 net-next 04/14] selftests/net: convert arp_ndisc_untracked_subnets.sh to run it in unique namespace

2023-12-01 Thread Hangbin Liu
Here is the test result after conversion. 2 tests also failed without this patch ]# ./arp_ndisc_untracked_subnets.sh TEST: test_arp: accept_arp=0 [ OK ] TEST: test_arp: accept_arp=1 [ OK ] TEST: test_arp: a

[PATCHv3 net-next 05/14] selftests/net: convert cmsg tests to make them run in unique namespace

2023-12-01 Thread Hangbin Liu
Here is the test result after conversion. ]# ./cmsg_ipv6.sh OK ]# ./cmsg_so_mark.sh OK ]# ./cmsg_time.sh OK Acked-by: David Ahern Signed-off-by: Hangbin Liu --- tools/testing/selftests/net/cmsg_ipv6.sh| 10 -- tools/testing/selftests/net/cmsg_so_mark.sh | 7 --- tools/testing/

[PATCHv3 net-next 06/14] selftests/net: convert drop_monitor_tests.sh to run it in unique namespace

2023-12-01 Thread Hangbin Liu
Here is the test result after conversion. ]# ./drop_monitor_tests.sh Software drops test TEST: Capturing active software drops [ OK ] TEST: Capturing inactive software drops [ OK ] Hardware drops test TEST: Capturing active ha

[PATCHv3 net-next 07/14] selftests/net: convert traceroute.sh to run it in unique namespace

2023-12-01 Thread Hangbin Liu
Here is the test result after conversion. ]# ./traceroute.sh TEST: IPV6 traceroute [ OK ] TEST: IPV4 traceroute [ OK ] Tests passed: 2 Tests failed: 0 Acked-by: David Ahern Signed-off-by: Hangbin Liu

[PATCHv3 net-next 08/14] selftests/net: convert icmp_redirect.sh to run it in unique namespace

2023-12-01 Thread Hangbin Liu
Here is the test result after conversion. # ./icmp_redirect.sh ### Legacy routing ### TEST: IPv4: redirect exception

[PATCHv3 net-next 09/14] sleftests/net: convert icmp.sh to run it in unique namespace

2023-12-01 Thread Hangbin Liu
Here is the test result after conversion. ]# ./icmp.sh OK Acked-by: David Ahern Signed-off-by: Hangbin Liu --- tools/testing/selftests/net/icmp.sh | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tools/testing/selftests/net/icmp.sh b/tools/testing/selftests/net/i

[PATCHv3 net-next 10/14] selftests/net: convert ioam6.sh to run it in unique namespace

2023-12-01 Thread Hangbin Liu
Here is the test result after conversion. ]# ./ioam6.sh -- OUTPUT tests -- TEST: Unknown IOAM namespace (inline mode) [ OK ] TES

[PATCHv3 net-next 11/14] selftests/net: convert l2tp.sh to run it in unique namespace

2023-12-01 Thread Hangbin Liu
Here is the test result after conversion. ]# ./l2tp.sh TEST: IPv4 basic L2TP tunnel[ OK ] TEST: IPv4 route through L2TP tunnel[ OK ] TEST: IPv6 basic L2TP tunnel[ OK ] TEST: IPv6 route t

[PATCHv3 net-next 12/14] selftests/net: convert ndisc_unsolicited_na_test.sh to run it in unique namespace

2023-12-01 Thread Hangbin Liu
Here is the test result after conversion. ]# ./ndisc_unsolicited_na_test.sh TEST: test_unsolicited_na: drop_unsolicited_na=0 accept_untracked_na=1 forwarding=1 [ OK ] TEST: test_unsolicited_na: drop_unsolicited_na=0 accept_untracked_na=0 forwarding=0 [ OK ] TEST: test_unsolic

[PATCHv3 net-next 13/14] selftests/net: convert sctp_vrf.sh to run it in unique namespace

2023-12-01 Thread Hangbin Liu
Here is the test result after conversion. ]# ./sctp_vrf.sh Testing For SCTP VRF: TEST 01: nobind, connect from client 1, l3mdev_accept=1, Y [PASS] ... TEST 12: bind vrf-2 & 1 in server, connect from client 1 & 2, N [PASS] ***v6 Tests Done*** Acked-by: David Ahern Reviewed-by: Xin Long Signed-of

[PATCHv3 net-next 14/14] selftests/net: convert unicast_extensions.sh to run it in unique namespace

2023-12-01 Thread Hangbin Liu
Here is the test result after conversion. # ./unicast_extensions.sh /usr/bin/which: no nettest in (/root/.local/bin:/root/bin:/usr/share/Modules/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin) ### Unicast address e

Re: [PATCH bpf-next 1/3] xsk: add launch time support to XDP Tx metadata

2023-12-01 Thread Jakub Kicinski
On Fri, 1 Dec 2023 00:20:26 +0800 Song Yoong Siang wrote: > +name: launch-time > +doc: > + HW Time-Based Scheduling (TBS) is supported by the driver. Does this mean fifo "gating" or HW can do reordering?

Re: [PATCH v7 0/6] workload-specific and memory pressure-driven zswap writeback

2023-12-01 Thread Bagas Sanjaya
On Mon, Nov 27, 2023 at 03:45:54PM -0800, Nhat Pham wrote: > Changelog: > v7: >* Added the mem_cgroup_iter_online() function to the API for the new > behavior (suggested by Andrew Morton) (patch 2) >* Fixed a missing list_lru_del -> list_lru_del_obj (patch 1) > v6: >* Rebase on top