mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 04:18:39 +08:00
vsock/test: print type for SOCK_SEQPACKET
SOCK_SEQPACKET is supported for virtio transport, so do not interpret such type of socket as unknown. Signed-off-by: Arseniy Krasnov <avkrasnov@salutedevices.com> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Link: https://lore.kernel.org/r/20240124193255.3417803-1-avkrasnov@salutedevices.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
85da9d9ff2
commit
767ec326f9
@ -39,6 +39,8 @@ static const char *sock_type_str(int type)
|
||||
return "DGRAM";
|
||||
case SOCK_STREAM:
|
||||
return "STREAM";
|
||||
case SOCK_SEQPACKET:
|
||||
return "SEQPACKET";
|
||||
default:
|
||||
return "INVALID TYPE";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user