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:
Arseniy Krasnov 2024-01-24 22:32:55 +03:00 committed by Jakub Kicinski
parent 85da9d9ff2
commit 767ec326f9
1 changed files with 2 additions and 0 deletions

View File

@ -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";
}