History

virtio/vsock: defines and constants for SEQPACKET

Add set of defines and constants for SOCK_SEQPACKET support in vsock.

Arseny Krasnov committed 5 years ago

Commit f07b2a51 parent c10844c1 file · +9 −0Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/linux/virtio_vsock.h+9−0
@@ -38,6 +38,9 @@ · 37 unmodified lines
38#include <linux/virtio_ids.h>38#include <linux/virtio_ids.h>
39#include <linux/virtio_config.h>39#include <linux/virtio_config.h>
40 40
41/* The feature bitmap for virtio vsock */
42#define VIRTIO_VSOCK_F_SEQPACKET 1 /* SOCK_SEQPACKET supported */
43
41struct virtio_vsock_config {44struct virtio_vsock_config {
42 __le64 guest_cid;45 __le64 guest_cid;
43} __attribute__((packed));46} __attribute__((packed));
@@ -65,6 +68,7 @@ struct virtio_vsock_hdr { · 21 unmodified lines
65 68
66enum virtio_vsock_type {69enum virtio_vsock_type {
67 VIRTIO_VSOCK_TYPE_STREAM = 1,70 VIRTIO_VSOCK_TYPE_STREAM = 1,
71 VIRTIO_VSOCK_TYPE_SEQPACKET = 2,
68};72};
69 73
70enum virtio_vsock_op {74enum virtio_vsock_op {
@@ -91,4 +95,9 @@ enum virtio_vsock_shutdown { · 20 unmodified lines
91 VIRTIO_VSOCK_SHUTDOWN_SEND = 2,95 VIRTIO_VSOCK_SHUTDOWN_SEND = 2,
92};96};
93 97
98/* VIRTIO_VSOCK_OP_RW flags values */
99enum virtio_vsock_rw {
100 VIRTIO_VSOCK_SEQ_EOR = 1,
101};
102
94#endif /* _UAPI_LINUX_VIRTIO_VSOCK_H */103#endif /* _UAPI_LINUX_VIRTIO_VSOCK_H */