Re: [PATCH v2 0/5] Move kvfree_rcu() into SLAB (v2)

2025-01-21 Thread Uladzislau Rezki
On Tue, Jan 21, 2025 at 02:49:13PM +0100, Vlastimil Babka wrote: > On 1/21/25 2:33 PM, Uladzislau Rezki wrote: > > On Mon, Jan 20, 2025 at 11:06:13PM +0100, Vlastimil Babka wrote: > >> On 12/16/24 17:46, Paul E. McKenney wrote: > >>> On Mon, Dec 16, 2024 at 04:55:06PM +0100, Uladzislau Rezki wrote:

Re: [PATCH net-next v18 20/25] ovpn: implement peer add/get/dump/delete via netlink

2025-01-21 Thread Antonio Quartulli
On 21/01/2025 10:59, Sabrina Dubroca wrote: 2025-01-20, 22:20:40 +0100, Antonio Quartulli wrote: On 20/01/2025 11:45, Antonio Quartulli wrote: [...] I'm not sure what this (and the peer flushing on NETDEV_DOWN) is trying to accomplish. Is it a problem to keep peers when the netdevice is down?

Re: [PATCH net-next v18 12/25] ovpn: implement TCP transport

2025-01-21 Thread Sabrina Dubroca
2025-01-20, 15:12:28 +0100, Antonio Quartulli wrote: > On 17/01/2025 18:14, Sabrina Dubroca wrote: > > 2025-01-13, 10:31:31 +0100, Antonio Quartulli wrote: > > > +static int ovpn_tcp_recvmsg(struct sock *sk, struct msghdr *msg, size_t > > > len, > > > + int flags, int *addr_len

Re: [PATCH net-next v18 20/25] ovpn: implement peer add/get/dump/delete via netlink

2025-01-21 Thread Antonio Quartulli
On 21/01/2025 10:39, Sabrina Dubroca wrote: 2025-01-20, 11:45:55 +0100, Antonio Quartulli wrote: On 20/01/2025 11:09, Sabrina Dubroca wrote: 2025-01-19, 14:12:05 +0100, Antonio Quartulli wrote: On 17/01/2025 18:12, Sabrina Dubroca wrote: 2025-01-17, 13:59:35 +0100, Antonio Quartulli wrote: O

[PATCH bpf-next 07/10] selftests/bpf: Optionally select broadcasting flags

2025-01-21 Thread Bastien Curutchet (eBPF Foundation)
Broadcasting flags are hardcoded for each kind for protocol. Create a redirect_flags map that allows to select the broadcasting flags to use in the bpf_redirect_map(). The protocol ID is used as a key. Set the old hardcoded values as default if the map isn't filled by the BPF caller. Signed-off-b

[PATCH bpf-next 05/10] selftests/bpf: test_xdp_veth: Add XDP flags to prog_configuration

2025-01-21 Thread Bastien Curutchet (eBPF Foundation)
XDP flags are hardcoded to 0 at attachment. Add flags attributes to the struct prog_configuration to allow flag modifications for each test case. Signed-off-by: Bastien Curutchet (eBPF Foundation) --- tools/testing/selftests/bpf/prog_tests/test_xdp_veth.c | 14 -- 1 file changed, 1

[PATCH bpf-next 04/10] selftests/bpf: test_xdp_veth: Add prog_config[] table

2025-01-21 Thread Bastien Curutchet (eBPF Foundation)
The BPF program attached to each veth is hardcoded through the use of the struct skeletons. It prevents from re-using the initialization code in new test cases. Replace the struct skeletons by a bpf_object table. Add a struct prog_configuration that holds the name of BPF program to load on a given

[PATCH bpf-next 06/10] selftests/bpf: test_xdp_veth: Add new test cases for XDP flags

2025-01-21 Thread Bastien Curutchet (eBPF Foundation)
The XDP redirection is tested without any flag provided to the xdp_attach() function. Add two subtests that check the correct behaviour with XDP_FLAGS_{DRV/SKB}_MODE flags Signed-off-by: Bastien Curutchet (eBPF Foundation) --- .../selftests/bpf/prog_tests/test_xdp_veth.c | 27 +++

[PATCH bpf-next 10/10] selftests/bpf: Remove test_xdp_redirect_multi.sh

2025-01-21 Thread Bastien Curutchet (eBPF Foundation)
The tests done by test_xdp_redirect_multi.sh are now fully covered by the CI through test_xdp_veth.c. Remove test_xdp_redirect_multi.sh Remove xdp_redirect_multi.c that was used by the script to load and attach the BPF programs. Remove their entries in the Makefile Signed-off-by: Bastien Curutche

[PATCH bpf-next 08/10] selftests/bpf: test_xdp_veth: Add XDP broadcast redirection tests

2025-01-21 Thread Bastien Curutchet (eBPF Foundation)
XDP redirections with BPF_F_BROADCAST and BPF_F_EXCLUDE_INGRESS flags are tested by test_xdp_redirect_multi.sh but not within the test_progs framework. Add a broadcast test case in test_xdp_veth.c to test them. Use the same BPF programs than the one used by test_xdp_redirect_multi.sh. Use a BPF ma

[PATCH bpf-next 09/10] selftests/bpf: test_xdp_veth: Add XDP program on egress test

2025-01-21 Thread Bastien Curutchet (eBPF Foundation)
XDP programs loaded on egress is tested by test_xdp_redirect_multi.sh but not by the test_progs framework. Add a test case in test_xdp_veth.c to test the XDP program on egress. Use the same BPF program than test_xdp_redirect_multi.sh that replaces the source MAC address by one provided through a B

Re: [PATCH v2 0/5] Move kvfree_rcu() into SLAB (v2)

2025-01-21 Thread Uladzislau Rezki
On Mon, Jan 20, 2025 at 11:06:13PM +0100, Vlastimil Babka wrote: > On 12/16/24 17:46, Paul E. McKenney wrote: > > On Mon, Dec 16, 2024 at 04:55:06PM +0100, Uladzislau Rezki wrote: > >> On Mon, Dec 16, 2024 at 04:44:41PM +0100, Vlastimil Babka wrote: > >> > On 12/16/24 16:41, Uladzislau Rezki wrote:

[PATCH] kunit: tool: Build GDB scripts

2025-01-21 Thread Brendan Jackman
#x27;scripts_gdb', + 'ARCH=' + self._linux_arch, 'O=' + build_dir, '--jobs=' + str(jobs)] if make_options: command.extend(make_options) if self._cross_compile: --- base-commit: 521d60e196ecb215f425e04e9ab33e02beaffbe3 change-id: 20250121-kunit-gdb-b27315b4f2d8 Best regards, -- Brendan Jackman

[PATCH bpf-next v2 08/10] selftests/bpf: test_xdp_veth: Add XDP broadcast redirection tests

2025-01-21 Thread Bastien Curutchet (eBPF Foundation)
XDP redirections with BPF_F_BROADCAST and BPF_F_EXCLUDE_INGRESS flags are tested by test_xdp_redirect_multi.sh but not within the test_progs framework. Add a broadcast test case in test_xdp_veth.c to test them. Use the same BPF programs than the one used by test_xdp_redirect_multi.sh. Use a BPF ma

[PATCH bpf-next v2 07/10] selftests/bpf: Optionally select broadcasting flags

2025-01-21 Thread Bastien Curutchet (eBPF Foundation)
Broadcasting flags are hardcoded for each kind for protocol. Create a redirect_flags map that allows to select the broadcasting flags to use in the bpf_redirect_map(). The protocol ID is used as a key. Set the old hardcoded values as default if the map isn't filled by the BPF caller. Signed-off-b

[PATCH bpf-next v2 09/10] selftests/bpf: test_xdp_veth: Add XDP program on egress test

2025-01-21 Thread Bastien Curutchet (eBPF Foundation)
XDP programs loaded on egress is tested by test_xdp_redirect_multi.sh but not by the test_progs framework. Add a test case in test_xdp_veth.c to test the XDP program on egress. Use the same BPF program than test_xdp_redirect_multi.sh that replaces the source MAC address by one provided through a B

[PATCH bpf-next v2 10/10] selftests/bpf: Remove test_xdp_redirect_multi.sh

2025-01-21 Thread Bastien Curutchet (eBPF Foundation)
The tests done by test_xdp_redirect_multi.sh are now fully covered by the CI through test_xdp_veth.c. Remove test_xdp_redirect_multi.sh Remove xdp_redirect_multi.c that was used by the script to load and attach the BPF programs. Remove their entries in the Makefile Signed-off-by: Bastien Curutche

Re: [PATCH net] Bonding: Fix support for gso_partial_features

2025-01-21 Thread Hangbin Liu
On Tue, Jan 21, 2025 at 08:55:25AM +, Hangbin Liu wrote: > The fixed commit adds NETIF_F_GSO_ESP bit for bonding gso_partial_features. > However, if we don't set the dev NETIF_F_GSO_PARTIAL bit, the later > netdev_change_features() -> netdev_fix_features() will remove the > NETIF_F_GSO_ESP bit

Re: [PATCH net-next v18 20/25] ovpn: implement peer add/get/dump/delete via netlink

2025-01-21 Thread Sabrina Dubroca
2025-01-20, 22:20:40 +0100, Antonio Quartulli wrote: > On 20/01/2025 11:45, Antonio Quartulli wrote: > [...] > > > > > > > I'm not sure what this (and the peer flushing on NETDEV_DOWN) is > > > > > > > trying to accomplish. Is it a problem to keep peers > > > > > > > when the netdevice > > > > > >

[PATCH bpf-next 00/10] selftests/bpf: Migrate test_xdp_redirect_multi.sh to test_progs

2025-01-21 Thread Bastien Curutchet (eBPF Foundation)
Hi all, This patch series continues the work to migrate the *.sh tests into prog_tests framework. test_xdp_redirect_multi.sh tests the XDP redirections done through bpf_redirect_map(). This is already partly covered by test_xdp_veth.c that already tests map redirections at XDP level. What isn't

[PATCH bpf-next 01/10] selftests/bpf: test_xdp_veth: Split network configuration

2025-01-21 Thread Bastien Curutchet (eBPF Foundation)
configure_network() does two things : it first creates the network topology and then configures the BPF maps to fit the test needs. This isn't convenient if we want to re-use the same network topology for different test cases. Rename configure_network() create_network(). Move the BPF configuration

[PATCH bpf-next 03/10] selftests/bpf: test_xdp_veth: Rename config[]

2025-01-21 Thread Bastien Curutchet (eBPF Foundation)
The network topology is held by the config[] table. This 'config' name is a bit too generic if we want to add other configuration variable. Rename config[] to net_config[]. Signed-off-by: Bastien Curutchet (eBPF Foundation) --- .../selftests/bpf/prog_tests/test_xdp_veth.c | 30 ++

[PATCH bpf-next 02/10] selftests/bpf: Remove unused argument

2025-01-21 Thread Bastien Curutchet (eBPF Foundation)
check_ping() doesn't use the struct skeletons it has as input. Remove the unused input. Signed-off-by: Bastien Curutchet (eBPF Foundation) --- tools/testing/selftests/bpf/prog_tests/test_xdp_veth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/

Re: [PATCH v2 0/5] Move kvfree_rcu() into SLAB (v2)

2025-01-21 Thread Vlastimil Babka
On 1/21/25 2:33 PM, Uladzislau Rezki wrote: > On Mon, Jan 20, 2025 at 11:06:13PM +0100, Vlastimil Babka wrote: >> On 12/16/24 17:46, Paul E. McKenney wrote: >>> On Mon, Dec 16, 2024 at 04:55:06PM +0100, Uladzislau Rezki wrote: On Mon, Dec 16, 2024 at 04:44:41PM +0100, Vlastimil Babka wrote: >>

[PATCH bpf-next v2 01/10] selftests/bpf: test_xdp_veth: Split network configuration

2025-01-21 Thread Bastien Curutchet (eBPF Foundation)
configure_network() does two things : it first creates the network topology and then configures the BPF maps to fit the test needs. This isn't convenient if we want to re-use the same network topology for different test cases. Rename configure_network() create_network(). Move the BPF configuration

[PATCH bpf-next v2 00/10] selftests/bpf: Migrate test_xdp_redirect_multi.sh to test_progs

2025-01-21 Thread Bastien Curutchet (eBPF Foundation)
et (eBPF Foundation) --- Changes in v2: - Use serial_test_* to avoid conflict between tests - Link to v1: https://lore.kernel.org/r/20250121-redirect-multi-v1-0-b215e35ff...@bootlin.com --- Bastien Curutchet (eBPF Foundation) (10): selftests/bpf: test_xdp_veth: Split network configuration se

[PATCH bpf-next v2 02/10] selftests/bpf: Remove unused argument

2025-01-21 Thread Bastien Curutchet (eBPF Foundation)
check_ping() doesn't use the struct skeletons it has as input. Remove the unused input. Signed-off-by: Bastien Curutchet (eBPF Foundation) --- tools/testing/selftests/bpf/prog_tests/test_xdp_veth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/

[PATCH bpf-next v2 03/10] selftests/bpf: test_xdp_veth: Rename config[]

2025-01-21 Thread Bastien Curutchet (eBPF Foundation)
The network topology is held by the config[] table. This 'config' name is a bit too generic if we want to add other configuration variable. Rename config[] to net_config[]. Signed-off-by: Bastien Curutchet (eBPF Foundation) --- .../selftests/bpf/prog_tests/test_xdp_veth.c | 30 ++

[PATCH bpf-next v2 04/10] selftests/bpf: test_xdp_veth: Add prog_config[] table

2025-01-21 Thread Bastien Curutchet (eBPF Foundation)
The BPF program attached to each veth is hardcoded through the use of the struct skeletons. It prevents from re-using the initialization code in new test cases. Replace the struct skeletons by a bpf_object table. Add a struct prog_configuration that holds the name of BPF program to load on a given

[PATCH bpf-next v2 05/10] selftests/bpf: test_xdp_veth: Add XDP flags to prog_configuration

2025-01-21 Thread Bastien Curutchet (eBPF Foundation)
XDP flags are hardcoded to 0 at attachment. Add flags attributes to the struct prog_configuration to allow flag modifications for each test case. Signed-off-by: Bastien Curutchet (eBPF Foundation) --- tools/testing/selftests/bpf/prog_tests/test_xdp_veth.c | 14 -- 1 file changed, 1

[PATCH bpf-next v2 06/10] selftests/bpf: test_xdp_veth: Add new test cases for XDP flags

2025-01-21 Thread Bastien Curutchet (eBPF Foundation)
The XDP redirection is tested without any flag provided to the xdp_attach() function. Add two subtests that check the correct behaviour with XDP_FLAGS_{DRV/SKB}_MODE flags Signed-off-by: Bastien Curutchet (eBPF Foundation) --- .../selftests/bpf/prog_tests/test_xdp_veth.c | 27 +++

[PATCH net] Bonding: Fix support for gso_partial_features

2025-01-21 Thread Hangbin Liu
The fixed commit adds NETIF_F_GSO_ESP bit for bonding gso_partial_features. However, if we don't set the dev NETIF_F_GSO_PARTIAL bit, the later netdev_change_features() -> netdev_fix_features() will remove the NETIF_F_GSO_ESP bit from the dev features. This causes ethtool to show that the bond does

Re: [GIT PULL] RCU changes for v6.14

2025-01-21 Thread Linus Torvalds
On Fri, 17 Jan 2025 at 09:24, Uladzislau Rezki (Sony) wrote: > > Please pull the latest RCU git tree from: > > git://git.kernel.org/pub/scm/linux/kernel/git/rcu/linux.git > tags/rcu.release.v6.14 Hmm. I have pulled this, and the resulting shortlog matches what you say I should have gotten. But

Re: [GIT PULL] livepatching for 6.14

2025-01-21 Thread pr-tracker-bot
The pull request you sent on Mon, 20 Jan 2025 16:30:24 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/livepatching/livepatching.git > tags/livepatching-for-6.14 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/336088234e9f85f6221135ba698c41dbf3c9e78e Thank you!

Re: [GIT PULL] RCU changes for v6.14

2025-01-21 Thread pr-tracker-bot
The pull request you sent on Fri, 17 Jan 2025 18:24:40 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/rcu/linux.git > tags/rcu.release.v6.14 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/9f3ee94e705a5b2fe352befb37e499163f98b9b6 Thank you! -- Deet-doot-dot,

Re: [GIT PULL] slab updates for 6.14

2025-01-21 Thread pr-tracker-bot
The pull request you sent on Fri, 17 Jan 2025 15:13:18 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab.git > tags/slab-for-6.14 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/ad37df3bcb1c88f3f73bdd04bad0b9eca8eae7b7 Thank you! -- Deet-doot-dot, I

Re: [GIT PULL] slab updates for 6.14

2025-01-21 Thread Christoph Lameter (Ampere)
On Mon, 20 Jan 2025, Sasha Levin wrote: > I've ended up pulling quite a few of the 6.14 PRs into linus-next, and > LKFT started hitting the following issue: Could you reboot with the parameter "slub_debug" to get more information in the syslog?

Re: [PATCH v4] hrtimers: Force migrate away hrtimers queued after CPUHP_AP_HRTIMERS_DYING

2025-01-21 Thread Paul E. McKenney
On Sat, Jan 18, 2025 at 12:24:33AM +0100, Frederic Weisbecker wrote: > hrtimers are migrated away from the dying CPU to any online target at > the CPUHP_AP_HRTIMERS_DYING stage in order not to delay bandwidth timers > handling tasks involved in the CPU hotplug forward progress. > > However wake up

Re: [PATCH net 1/2] vsock/virtio: discard packets if the transport changes

2025-01-21 Thread Michal Luczaj
On 1/21/25 18:30, Luigi Leonardi wrote: > On Thu, Jan 09, 2025 at 02:34:28PM +0100, Michal Luczaj wrote: >> FWIW, I've tried simplifying Hyunwoo's repro to toy with some tests. >> Ended >> up with >> >> ``` >>from threading import * >>from socket import * >>from signal import * >> >> def listener(

Re: [PATCH v2 0/5] Move kvfree_rcu() into SLAB (v2)

2025-01-21 Thread Paul E. McKenney
On Tue, Jan 21, 2025 at 03:14:16PM +0100, Uladzislau Rezki wrote: > On Tue, Jan 21, 2025 at 02:49:13PM +0100, Vlastimil Babka wrote: > > On 1/21/25 2:33 PM, Uladzislau Rezki wrote: > > > On Mon, Jan 20, 2025 at 11:06:13PM +0100, Vlastimil Babka wrote: > > >> On 12/16/24 17:46, Paul E. McKenney wrot

Re: [PATCH v2 3/6] KVM: x86: selftests: Set up AMD VM in pmu_counters_test

2025-01-21 Thread Sean Christopherson
On Mon, Jan 20, 2025, Colton Lewis wrote: > > > +static void test_core_counters(void) > > > +{ > > > + uint8_t nr_counters = nr_core_counters(); > > > + bool core_ext = kvm_cpu_has(X86_FEATURE_PERF_CTR_EXT_CORE); > > > + bool perfmon_v2 = kvm_cpu_has(X86_FEATURE_PERFMON_V2); > > > + struct kvm_vcpu

[GIT PULL] kselftest next update for Linux 6.14-rc1

2025-01-21 Thread Shuah Khan
Hi Linus, Please pull the following kseltest update for Linux 6.14-rc1. - fixes, reporting improvements, and cleanup changes to several tests - adds support for DT_GNU_HASH to selftests/vDSO Note: Stephen reported conflict between the following two commits and the fix is in the linux-next:

[GIT PULL] kunit next update for Linux 6.14-rc1

2025-01-21 Thread Shuah Khan
Hi Linus, Please pull the following kunit next update for Linux 6.14-rc1. - fixes struct completion warning - introduces autorun option - adds fallback for os.sched_getaffinity - enables hardware acceleration when available Note: Stephen reported duplicate patch in kunit and driver-core: The

Re: [PATCH v6 0/4] Migrate PCI Endpoint Subsystem tests to Kselftest

2025-01-21 Thread Bjorn Helgaas
On Thu, Jan 16, 2025 at 10:46:46PM +0530, Manivannan Sadhasivam wrote: > Hi, > > This series carries forward the effort to add Kselftest for PCI Endpoint > Subsystem started by Aman Gupta [1] a while ago. I reworked the initial > version > based on another patch that fixes the return values of IO

Re: [PATCH net 1/2] vsock/virtio: discard packets if the transport changes

2025-01-21 Thread Luigi Leonardi
On Thu, Jan 09, 2025 at 02:34:28PM +0100, Michal Luczaj wrote: FWIW, I've tried simplifying Hyunwoo's repro to toy with some tests. Ended up with ``` from threading import * from socket import * from signal import * def listener(tid): while True: s = socket(AF_VSOCK, SO

Re: [RFC net-next v3 3/4] virtio_net: Map NAPIs to queues

2025-01-21 Thread Gerhard Engleder
On 21.01.25 20:10, Joe Damato wrote: Use netif_queue_set_napi to map NAPIs to queue IDs so that the mapping can be accessed by user apps. $ ethtool -i ens4 | grep driver driver: virtio_net $ sudo ethtool -L ens4 combined 4 $ ./tools/net/ynl/pyynl/cli.py \ --spec Documentation/netlink/s

Re: [RFC net-next v3 4/4] virtio_net: Use persistent NAPI config

2025-01-21 Thread Gerhard Engleder
On 21.01.25 20:10, Joe Damato wrote: Use persistent NAPI config so that NAPI IDs are not renumbered as queue counts change. $ sudo ethtool -l ens4 | tail -5 | egrep -i '(current|combined)' Current hardware settings: Combined: 4 $ ./tools/net/ynl/pyynl/cli.py \ --spec Documentation/n

Re: [GIT PULL] slab updates for 6.14

2025-01-21 Thread Sasha Levin
On Tue, Jan 21, 2025 at 03:53:37PM -0800, Christoph Lameter (Ampere) wrote: On Mon, 20 Jan 2025, Sasha Levin wrote: I've ended up pulling quite a few of the 6.14 PRs into linus-next, and LKFT started hitting the following issue: Could you reboot with the parameter "slub_debug" to get more inf

Re: [PATCH net-next v18 20/25] ovpn: implement peer add/get/dump/delete via netlink

2025-01-21 Thread Antonio Quartulli
On 17/01/2025 12:48, Sabrina Dubroca wrote: [...] With the delayed socket release (which is similar to what was in v11, but now with refcounting on the netdevice which should make rtnl_link_unregister in ovpn_cleanup wait [*]), we may return to userspace as if the peer was gone, but the socket ha

Re: [PATCH net-next v2 3/4] virtio_net: Map NAPIs to queues

2025-01-21 Thread Joe Damato
On Thu, Jan 16, 2025 at 09:28:07PM +0100, Gerhard Engleder wrote: > On 16.01.25 17:09, Joe Damato wrote: > > On Thu, Jan 16, 2025 at 03:53:14PM +0800, Xuan Zhuo wrote: > > > On Thu, 16 Jan 2025 05:52:58 +, Joe Damato wrote: > > > > Use netif_queue_set_napi to map NAPIs to queue IDs so that the

[RFC net-next v3 3/4] virtio_net: Map NAPIs to queues

2025-01-21 Thread Joe Damato
Use netif_queue_set_napi to map NAPIs to queue IDs so that the mapping can be accessed by user apps. $ ethtool -i ens4 | grep driver driver: virtio_net $ sudo ethtool -L ens4 combined 4 $ ./tools/net/ynl/pyynl/cli.py \ --spec Documentation/netlink/specs/netdev.yaml \ --dump queue-g

[RFC net-next v3 4/4] virtio_net: Use persistent NAPI config

2025-01-21 Thread Joe Damato
Use persistent NAPI config so that NAPI IDs are not renumbered as queue counts change. $ sudo ethtool -l ens4 | tail -5 | egrep -i '(current|combined)' Current hardware settings: Combined: 4 $ ./tools/net/ynl/pyynl/cli.py \ --spec Documentation/netlink/specs/netdev.yaml \ --dump qu

[RFC net-next v3 2/4] virtio_net: Prepare for NAPI to queue mapping

2025-01-21 Thread Joe Damato
Slight refactor to prepare the code for NAPI to queue mapping. No functional changes. Signed-off-by: Joe Damato Reviewed-by: Gerhard Engleder Tested-by: Lei Yang --- v2: - Previously patch 1 in the v1. - Added Reviewed-by and Tested-by tags to commit message. No functional changes.

[RFC net-next v3 0/4] virtio_net: Link queues to NAPIs

2025-01-21 Thread Joe Damato
Greetings: Welcome to RFC v3, since net-next is closed. See changelog below. Recently [1], Jakub mentioned that there were a few drivers that are not yet mapping queues to NAPIs. While I don't have any of the other hardware mentioned, I do happen to have a virtio_net laying around ;) I've attem

Re: [PATCH net-next v2 3/4] virtio_net: Map NAPIs to queues

2025-01-21 Thread Joe Damato
On Mon, Jan 20, 2025 at 09:58:13AM +0800, Jason Wang wrote: > On Thu, Jan 16, 2025 at 3:57 PM Xuan Zhuo wrote: > > > > On Thu, 16 Jan 2025 05:52:58 +, Joe Damato wrote: > > > Use netif_queue_set_napi to map NAPIs to queue IDs so that the mapping > > > can be accessed by user apps. > > > > > >

Re: [PATCH 1/3] remoteproc: k3-r5: Fix checks in k3_r5_rproc_{mbox_callback/kick}

2025-01-21 Thread Andrew Davis
On 12/24/24 3:14 AM, Beleswar Padhi wrote: Commit f3f11cfe8907 ("remoteproc: k3-r5: Acquire mailbox handle during probe routine") introduced a check in the "k3_r5_rproc_mbox_callback()" and "k3_r5_rproc_kick()" callbacks to exit if the remote core's state was "RPROC_DETACHED". However, this cause

Re: [PATCH net-next v18 20/25] ovpn: implement peer add/get/dump/delete via netlink

2025-01-21 Thread Sabrina Dubroca
2025-01-20, 11:45:55 +0100, Antonio Quartulli wrote: > On 20/01/2025 11:09, Sabrina Dubroca wrote: > > 2025-01-19, 14:12:05 +0100, Antonio Quartulli wrote: > > > On 17/01/2025 18:12, Sabrina Dubroca wrote: > > > > 2025-01-17, 13:59:35 +0100, Antonio Quartulli wrote: > > > > > On 17/01/2025 12:48, S

[PATCH] vduse: add virtio_fs to allowed dev id

2025-01-21 Thread Eugenio Pérez
A VDUSE device that implements virtiofs device works fine just by adding the device id to the whitelist. Signed-off-by: Eugenio Pérez --- drivers/vdpa/vdpa_user/vduse_dev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/vdpa/vdpa_user/vduse_dev.c b/drivers/vdpa/vdpa_user/vduse_dev.

Re: [GIT PULL] kthread updates for v6.14

2025-01-21 Thread pr-tracker-bot
The pull request you sent on Mon, 20 Jan 2025 00:38:33 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git > tags/kthread-for-6.14-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/1d6d3992235ed08929846f98fecf79682e0b422c Thank you! -

Re: [PATCH v4 7/8] vhost: Add new UAPI to support change to task mode

2025-01-21 Thread Cindy Lu
Ping for review, Hi MST and Jason, do you have any comments on this? Thanks Cindy On Mon, Jan 13, 2025 at 11:09 AM Jason Wang wrote: > > On Mon, Jan 13, 2025 at 10:36 AM Cindy Lu wrote: > > > > On Wed, Jan 8, 2025 at 8:13 PM Michael S. Tsirkin wrote: > > > > > > On Wed, Dec 11, 2024 at 12:41:46A

[PATCH] selftests: gpio: gpio-sim: Fix missing chip disablements

2025-01-21 Thread Koichiro Den
Since upstream commit 8bd76b3d3f3a ("gpio: sim: lock up configfs that an instantiated device depends on"), rmdir for an active virtual devices been prohibited. Update gpio-sim selftest to align with the change. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-lkp/202501221006.a1

Re: [PATCH v4 7/8] vhost: Add new UAPI to support change to task mode

2025-01-21 Thread Michael S. Tsirkin
On Wed, Jan 22, 2025 at 10:07:19AM +0800, Cindy Lu wrote: > Ping for review, Hi MST and Jason, do you have any comments on this? > Thanks > Cindy I see there are unaddressed comments by Jason and Stefano.

Re: [PATCH v4 7/8] vhost: Add new UAPI to support change to task mode

2025-01-21 Thread Cindy Lu
On Wed, Jan 22, 2025 at 3:18 PM Michael S. Tsirkin wrote: > > On Wed, Jan 22, 2025 at 10:07:19AM +0800, Cindy Lu wrote: > > Ping for review, Hi MST and Jason, do you have any comments on this? > > Thanks > > Cindy > > > I see there are unaddressed comments by Jason and Stefano. > sure, thanks, Mst

Re: [PATCH net-next v18 20/25] ovpn: implement peer add/get/dump/delete via netlink

2025-01-21 Thread Antonio Quartulli
On 20/01/2025 15:52, Antonio Quartulli wrote: On 17/01/2025 12:48, Sabrina Dubroca wrote: [...] 8< diff --git a/drivers/net/ovpn/netlink.c b/drivers/net/ovpn/netlink.c index 72357bb5f30b..19aa4ee6d468 100644 --- a/drivers/net/ovpn/netlink.c +++ b/drivers/net/ovpn/netlink.c @@

Re: [RFC net-next v3 2/4] virtio_net: Prepare for NAPI to queue mapping

2025-01-21 Thread Jason Wang
On Wed, Jan 22, 2025 at 3:11 AM Joe Damato wrote: > > Slight refactor to prepare the code for NAPI to queue mapping. No > functional changes. > > Signed-off-by: Joe Damato > Reviewed-by: Gerhard Engleder > Tested-by: Lei Yang > --- > v2: >- Previously patch 1 in the v1. >- Added Review

Re: [RFC net-next v3 3/4] virtio_net: Map NAPIs to queues

2025-01-21 Thread Jason Wang
On Wed, Jan 22, 2025 at 3:11 AM Joe Damato wrote: > > Use netif_queue_set_napi to map NAPIs to queue IDs so that the mapping > can be accessed by user apps. > > $ ethtool -i ens4 | grep driver > driver: virtio_net > > $ sudo ethtool -L ens4 combined 4 > > $ ./tools/net/ynl/pyynl/cli.py \ >

Re: [RFC net-next v3 4/4] virtio_net: Use persistent NAPI config

2025-01-21 Thread Jason Wang
On Wed, Jan 22, 2025 at 3:11 AM Joe Damato wrote: > > Use persistent NAPI config so that NAPI IDs are not renumbered as queue > counts change. > > $ sudo ethtool -l ens4 | tail -5 | egrep -i '(current|combined)' > Current hardware settings: > Combined: 4 > > $ ./tools/net/ynl/pyynl/cli.py \

[PATCH net-next RFC 1/2] virtio-net: factor out logic for stopping TX

2025-01-21 Thread Jason Wang
This patch factors out the logic of checking and stopping TX into a dedicated helper. This will be used by following patch. Signed-off-by: Jason Wang --- drivers/net/virtio_net.c | 26 ++ 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/drivers/net/virtio_ne

[PATCH net-next RFC 2/2] virtio-net: free old xmit skbs only in NAPI

2025-01-21 Thread Jason Wang
When NAPI mode is enabled, we try to free old transmited packets before sending a packet. This has several side effects: - transmitted packets need to be freed before sending a packet, this introduces delay and increases the average packets transmit time. - more time in hold the TX lock that cau

[PATCH net-next RFC 0/2] don't clean packets in start_xmit in TX NAPI mode

2025-01-21 Thread Jason Wang
Hi all: This is an RFC to try to speed up TX by avoid cleaning transmitted packets in start_xmit() when TX NAPI mode is enabled. This increase 25%-62% PPS depending on the setups while keeping the TCP throughput. More numbers could be seen in patch 2. Thanks Jason Wang (2): virtio-net: factor

Re: [PATCH v5 01/10] selftests/mm: make file-backed THP split work by setting force option

2025-01-21 Thread Baolin Wang
On 2025/1/17 05:10, Zi Yan wrote: Commit acd7ccb284b8 ("mm: shmem: add large folio support for tmpfs") changes huge=always to allocate THP/mTHP based on write size and split_huge_page_test does not write PMD size data, so file-back THP is not created during the test. Set /sys/kernel/mm/transp

Re: [PATCH v5 03/10] selftests/mm: test splitting file-backed THP to any lower order.

2025-01-21 Thread Baolin Wang
On 2025/1/17 05:10, Zi Yan wrote: Now split_huge_page*() supports shmem THP split to any lower order. Test it. The test now reads file content out after split to check if the split corrupts the file data. Signed-off-by: Zi Yan LGTM. Reviewed-by: Baolin Wang Tested-by: Baolin Wang ---

Re: [PATCH v5 02/10] mm/huge_memory: allow split shmem large folio to any lower order

2025-01-21 Thread Baolin Wang
On 2025/1/17 05:10, Zi Yan wrote: Commit 4d684b5f92ba ("mm: shmem: add large folio support for tmpfs") has added large folio support to shmem. Remove the restriction in split_huge_page*(). Agree. Signed-off-by: Zi Yan LGTM. Thanks. Reviewed-by: Baolin Wang