vsock/test: print type for SOCK_SEQPACKET
authorArseniy Krasnov <avkrasnov@salutedevices.com>
Wed, 24 Jan 2024 19:32:55 +0000 (22:32 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 26 Jan 2024 00:39:21 +0000 (16:39 -0800)
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>
tools/testing/vsock/vsock_diag_test.c

index 9d61b1f1c4c33427a7f7ad1c59f5e949361db25d..081e045f46960ec32e8c6c06efcdb5652d7c421a 100644 (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";
        }