[PATCH] vhost: Fix typos in comments and clarity on alignof usage

2025-06-15 Thread Alok Tiwari
") with a clear description. - Use __alignof__ correctly on dereferenced pointer types for better readability and alignment with kernel documentation. These changes enhance code readability and maintainability. Signed-off-by: Alok Tiwari --- drivers/vhost/vhost.c | 16 1 f

[PATCH v2] selftests: nettest: Fix typo in log and error messages for clarity

2025-06-15 Thread Alok Tiwari
the correct description ("Invalid prefix length"). - remove Redundant wording like "status from status" and clarifies context in IPC error messages. These changes improve readability and aid in debugging test output. Signed-off-by: Alok Tiwari --- v1 ->v2

[PATCH 2/2] vhost-scsi: Improve error handling in vhost_scsi_make_nexus and tpg

2025-06-11 Thread Alok Tiwari
, allowing callers to use IS_ERR and PTR_ERR for proper error handling. Signed-off-by: Alok Tiwari --- drivers/vhost/scsi.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/vhost/scsi.c b/drivers/vhost/scsi.c index 508ff3b29f39..fd9e435d28bf 100644 --- a/drivers/vhost

[PATCH 1/2] vhost-scsi: Fix typos and formatting in comments and logs

2025-06-11 Thread Alok Tiwari
s - Correcting log formatting specifier from "%dd" to "%d" - Adding a missing space in the sysfs emit string to prevent misinterpreted output like "X86_64on ". changing to "X86_64 on " - Cleaning up stray semicolons in struct definition endings These changes

[PATCH] vhost-scsi: Fix check for inline_sg_cnt exceeding preallocated limit

2025-06-07 Thread Alok Tiwari
inline_sg_cnt. Fixes: bca939d5bcd0 ("vhost-scsi: Dynamically allocate scatterlists") Signed-off-by: Alok Tiwari --- drivers/vhost/scsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/vhost/scsi.c b/drivers/vhost/scsi.c index c12a0d4e6386..8d655b2d15d9 100644 ---

[PATCH v2 3/3] virtio_ring: Fix typos in comments and documentation

2025-05-29 Thread Alok Tiwari
Corrected several typos in virtio_ring.c for improved clarity and consistency. Fixes include: - "dind't" -> "didn't" - "use" -> "uses" in DMA mapping context - "can been used" -> "can be used" - "buf size for sync&

[PATCH v2 2/3] virtio-mem: fix multiple typos in struct comments and function docs

2025-05-29 Thread Alok Tiwari
clarity. These changes are purely cosmetic and do not affect functionality. Signed-off-by: Alok Tiwari --- v1 -> v2 retained original wording "getting onlined" per David's comment. --- drivers/virtio/virtio_mem.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletio

[PATCH v2 1/3] virtio: Fix typo in register_virtio_device() doc comment

2025-05-29 Thread Alok Tiwari
Corrected "suceess" to "success" in the function documentation for clarity. Signed-off-by: Alok Tiwari Acked-by: Jason Wang --- v1 -> v2 No changes; only added Acked-by: Jason Wang. --- drivers/virtio/virtio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [RFC PATCH net-next v2 2/2] selftests: net: add XDP socket tests for virtio-net

2025-05-28 Thread ALOK TIWARI
On 27-05-2025 21:49, Bui Quang Minh wrote: +def main(): +with NetDrvEpEnv(__file__, nsim_test=False) as cfg: +cfg.bin_local = path.abspath(path.dirname(__file__) ++ "/../../../drivers/net/hw/xsk_receive") +cfg.bin_remote = cfg.remote.deploy(cfg.b

Re: [RFC PATCH net-next v2 1/2] virtio-net: support zerocopy multi buffer XDP in mergeable

2025-05-28 Thread ALOK TIWARI
On 27-05-2025 21:49, Bui Quang Minh wrote: Currently, in zerocopy mode with mergeable receive buffer, virtio-net does not support multi buffer but a single buffer only. This commit adds support for multi mergeable receive buffer in the zerocopy XDP path by utilizing XDP buffer with frags. Sig

Re: [External] : Re: [PATCH 2/3] virtio-mem: fix multiple typos in struct comments and function docs

2025-05-27 Thread ALOK TIWARI
On 28-05-2025 00:42, David Hildenbrand wrote:   /*    * Test if we could add memory without creating too much offline memory - - * to avoid running OOM if memory is getting onlined deferred. + * to avoid running OOM if memory is getting online deferred. The system/user is onlining the me

[PATCH 2/3] virtio-mem: fix multiple typos in struct comments and function docs

2025-05-27 Thread Alok Tiwari
clarity. These changes are purely cosmetic and do not affect functionality. Signed-off-by: Alok Tiwari --- drivers/virtio/virtio_mem.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/virtio/virtio_mem.c b/drivers/virtio/virtio_mem.c index 56d0dbe62

[PATCH 3/3] virtio_ring: Fix typos in comments and documentation

2025-05-27 Thread Alok Tiwari
Corrected several typos in virtio_ring.c for improved clarity and consistency. Fixes include: - "dind't" -> "didn't" - "use" -> "uses" in DMA mapping context - "can been used" -> "can be used" - "buf size for sync&

[PATCH 1/3] virtio: Fix typo in register_virtio_device() doc comment

2025-05-27 Thread Alok Tiwari
Corrected "suceess" to "success" in the function documentation for clarity. Signed-off-by: Alok Tiwari --- drivers/virtio/virtio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c index 95d5d7993e5b..2c022

[PATCH RESEND] selftests: nettest: Fix typo in log and error messages for clarity

2025-05-26 Thread Alok Tiwari
;) with the correct description ("Invalid prefix length"). - remove Redundant wording like "status from status" and clarifies context in IPC error messages. These changes improve readability and aid in debugging test output. Signed-off-by: Alok Tiwari --- Resending: Previ

[PATCH] selftests: nettest: Fix typo in log and error messages for clarity

2025-05-26 Thread Alok Tiwari
;) with the correct description ("Invalid prefix length"). - remove Redundant wording like "status from status" and clarifies context in IPC error messages. These changes improve readability and aid in debugging test output. Signed-off-by: Alok Tiwari --- tools/testing/sel

Re: [PATCH v2 1/3] selftests: coredump: Properly initialize pointer

2025-04-11 Thread ALOK TIWARI
On 11-04-2025 20:39, Nam Cao wrote: /* Step 4: Make sure all stack pointer values are non-zero */ + line = NULL; such case it should initialize at declaration time. better to move up char *test_dir, *line = NULL; for (i = 0; -1 != getline(&line, &line_length, file); +

Re: [PATCH net-next v25 05/23] ovpn: introduce the ovpn_peer object

2025-04-10 Thread ALOK TIWARI
On 08-04-2025 01:16, Antonio Quartulli wrote: An ovpn_peer object holds the whole status of a remote peer (regardless whether it is a server or a client). This includes status for crypto, tx/rx buffers, napi, etc. Only support for one peer is introduced (P2P mode). Multi peer support is intr

Re: [PATCH net-next v25 02/23] ovpn: add basic netlink support

2025-04-10 Thread ALOK TIWARI
On 08-04-2025 01:16, Antonio Quartulli wrote: +/** + * ovpn_nl_register - perform any needed registration in the NL subsustem typo subsustem -> subsystem + * + * Return: 0 on success, a negative error code otherwise + */ +int __init ovpn_nl_register(void) +{ + int ret = genl_register

Re: [PATCH net-next v25 01/23] net: introduce OpenVPN Data Channel Offload (ovpn)

2025-04-10 Thread ALOK TIWARI
On 08-04-2025 01:16, Antonio Quartulli wrote: Although it wasn't easy to convince the community, `ovpn` implements only a limited number of the data-channel features supported by the userspace program. Each feature that made it to `ovpn` was attentively vetted to avoid carrying too much legac