From: Bobby Eshleman
From: Jiang Wang
This commit adds tests for vsock datagram.
Signed-off-by: Bobby Eshleman
Signed-off-by: Jiang Wang
Signed-off-by: Amery Hung
---
tools/testing/vsock/util.c | 177 -
tools/testing/vsock/util.h | 10 +
tools/testing/vsock/vsock_test.c
From: Bobby Eshleman
This commit implements datagram support with a new version of
->dgram_allow().
Additionally, it drops virtio_transport_dgram_allow() as an exported
symbol because it is no longer used in other transports.
Signed-off-by: Bobby Eshleman
Signed-off-by: Amery Hung
---
includ
From: Bobby Eshleman
This commit implements datagram support for vsock loopback.
Not much more than simply toggling on "dgram_allow" and continuing to
use the common virtio functions.
Signed-off-by: Bobby Eshleman
Signed-off-by: Amery Hung
---
net/vmw_vsock/vsock_loopback.c | 7 ++-
1 fi
From: Bobby Eshleman
This commit implements datagram support for vhost/vsock by teaching
vhost to use the common virtio transport datagram functions.
If the virtio RX buffer is too small, then the transmission is
abandoned, the packet dropped, and EHOSTUNREACH is added to the socket's
error queu
From: Bobby Eshleman
This commit adds a feature bit for virtio vsock to support datagrams.
Signed-off-by: Jiang Wang
Signed-off-by: Bobby Eshleman
---
include/uapi/linux/virtio_vsock.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/uapi/linux/virtio_vsock.h
b/include/uapi/linux/
From: Bobby Eshleman
This commit adds the common datagram receive functionality for virtio
transports. It does not add the vhost/virtio users of that
functionality.
This functionality includes:
- changes to the virtio_transport_recv_pkt() path for finding the
bound socket receiver for incoming
From: Bobby Eshleman
This commit implements the common function
virtio_transport_dgram_enqueue for enqueueing datagrams. It does not add
usage in either vhost or virtio yet.
Signed-off-by: Bobby Eshleman
Signed-off-by: Amery Hung
---
include/linux/virtio_vsock.h| 1 +
include/net
From: Bobby Eshleman
This commit adds vsock_find_bound_dgram_socket() which allows transports
to find bound dgram sockets in the global dgram bind table. It is
intended to be used for "routing" incoming packets to the correct
sockets if the transport uses the global bind table.
Signed-off-by: Bo
From: Bobby Eshleman
This commit adds the datagram packet type for inclusion in virtio vsock
packet headers. It is included here as a standalone commit because
multiple future but distinct commits depend on it.
Signed-off-by: Bobby Eshleman
---
include/uapi/linux/virtio_vsock.h | 1 +
1 file c
From: Bobby Eshleman
This commit adds support for bound dgram sockets to be tracked in a
separate bind table from connectible sockets in order to avoid address
collisions. With this commit, users can simultaneously bind a dgram
socket and connectible socket to the same CID and port.
Signed-off-b
From: Bobby Eshleman
This commit makes the bind table management functions in vsock usable
for different bind tables. Future work will introduce a new table for
datagrams to avoid address collisions, and these functions will be used
there.
Signed-off-by: Bobby Eshleman
---
net/vmw_vsock/af_vso
From: Bobby Eshleman
This patch adds support for multi-transport datagrams.
This includes:
- Allow transport to be undecided (i.e., empty) for non-VMCI datagram
use cases during socket creation.
- connect() now assigns the transport for (similar to connectible
sockets)
- Per-packet lookup of
From: Bobby Eshleman
Introduce new reusable function vsock_connectible_lookup_transport()
that performs the transport lookup logic.
No functional change intended.
Reviewed-by: Stefano Garzarella
Signed-off-by: Bobby Eshleman
---
net/vmw_vsock/af_vsock.c | 25 ++---
1 file
From: Bobby Eshleman
This commit drops the transport->dgram_dequeue callback and makes
vsock_dgram_recvmsg() generic to all transports.
To make this possible, two transport-level changes are introduced:
- transport in the receiving path now stores the cid and port into
the control buffer of an
Hey all!
This series introduces support for datagrams to virtio/vsock.
It is a spin-off (and smaller version) of this series from the summer:
https://lore.kernel.org/all/cover.1660362668.git.bobby.eshle...@bytedance.com/
Please note that this is an RFC and should not be merged until
associated
15 matches
Mail list logo