[PATCH net-next 0/3] ioctl support for AF_VSOCK and virtio-based transports

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch series introduce the support for ioctl(s) in AF_VSOCK.
The only ioctl currently available is SIOCOUTQ, which returns
the number of unsent or unacked packets. It is available for
SOCK_STREAM, SOCK_SEQPACKET and SOCK_DGRAM.

As this information is transport-dependent, a new optional callback
is introduced: stream_bytes_unsent.

The first patch add ioctl support in AF_VSOCK, while the second
patch introduce support for SOCK_STREAM and SOCK_SEQPACKET
in all virtio-based transports: virtio_transport (G2H),
vhost-vsock (H2G) and vsock-loopback.

The latest patch introduce two tests for this new feature.
More details can be found in each patch changelog.

Luigi Leonardi (3):
  vsock: add support for SIOCOUTQ ioctl for all vsock socket types.
  vsock/virtio: add SIOCOUTQ support for all virtio based transports
  test/vsock: add ioctl unsent bytes test

 drivers/vhost/vsock.c                   |  3 +-
 include/linux/virtio_vsock.h            |  7 +++
 include/net/af_vsock.h                  |  1 +
 net/vmw_vsock/af_vsock.c                | 42 ++++++++++++-
 net/vmw_vsock/virtio_transport.c        |  3 +-
 net/vmw_vsock/virtio_transport_common.c | 30 +++++++++
 net/vmw_vsock/vsock_loopback.c          |  6 ++
 tools/testing/vsock/util.c              |  6 +-
 tools/testing/vsock/util.h              |  3 +
 tools/testing/vsock/vsock_test.c        | 83 +++++++++++++++++++++++++
 10 files changed, 176 insertions(+), 8 deletions(-)

-- 
2.34.1





[Index of Archives]     [KVM Development]     [Libvirt Development]     [Libvirt Users]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux