mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* vsock: return errors other than -ENOMEM to socket
@ 2023-03-30  7:04 Arseniy Krasnov
  2023-03-30  7:05 ` [RFC PATCH v2 1/3] " Arseniy Krasnov
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Arseniy Krasnov @ 2023-03-30  7:04 UTC (permalink / raw)
  To: Stefan Hajnoczi, Stefano Garzarella, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Bobby Eshleman,
	Bryan Tan, Vishnu Dasa
  Cc: kvm, virtualization, netdev, linux-kernel, kernel, oxffffaa,
	avkrasnov, pv-drivers

Hello,

this patchset removes behaviour, where error code returned from any
transport was always switched to ENOMEM. This works in the same way as
patch from Bobby Eshleman:
commit c43170b7e157 ("vsock: return errors other than -ENOMEM to socket"),
but for receive calls. VMCI transport is also updated (both tx and rx
SOCK_STREAM callbacks), because it returns VMCI specific error code to
af_vsock.c (like VMCI_ERROR_*). At the same time, virtio and Hyper-V
transports are using general error codes, so there is no need to update
them.

vsock_test suite is also updated.

Link to v1:
https://lore.kernel.org/netdev/97f19214-ba04-c47e-7486-72e8aa16c690@sberdevices.ru/

Changelog:

v1 -> v2:
 - Add patch for VMCI as Vishnu Dasa suggested.

Arseniy Krasnov (3):
  vsock: return errors other than -ENOMEM to socket
  vsock/vmci: convert VMCI error code to -ENOMEM
  vsock/test: update expected return values

 net/vmw_vsock/af_vsock.c         |  4 ++--
 net/vmw_vsock/vmci_transport.c   | 19 ++++++++++++++++---
 tools/testing/vsock/vsock_test.c |  4 ++--
 3 files changed, 20 insertions(+), 7 deletions(-)

-- 
2.25.1

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

end of thread, other threads:[~2023-03-30 15:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-30  7:04 vsock: return errors other than -ENOMEM to socket Arseniy Krasnov
2023-03-30  7:05 ` [RFC PATCH v2 1/3] " Arseniy Krasnov
2023-03-30  8:02   ` Stefano Garzarella
2023-03-30  9:08     ` Arseniy Krasnov
2023-03-30  7:07 ` [RFC PATCH v2 2/3] vsock/vmci: convert VMCI error code to -ENOMEM Arseniy Krasnov
2023-03-30  8:19   ` Stefano Garzarella
2023-03-30 15:35     ` Vishnu Dasa
2023-03-30  7:08 ` [RFC PATCH v2 3/3] vsock/test: update expected return values Arseniy Krasnov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®