From patchwork Fri Oct 6 15:48:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 822508 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3y7vQf28J5z9s7G for ; Sat, 7 Oct 2017 02:56:58 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751766AbdJFPsr (ORCPT ); Fri, 6 Oct 2017 11:48:47 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55750 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751484AbdJFPsq (ORCPT ); Fri, 6 Oct 2017 11:48:46 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3839E7E390; Fri, 6 Oct 2017 15:48:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 3839E7E390 Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=stefanha@redhat.com Received: from localhost (ovpn-116-204.ams2.redhat.com [10.36.116.204]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1E4A060FB3; Fri, 6 Oct 2017 15:48:42 +0000 (UTC) From: Stefan Hajnoczi To: netdev@vger.kernel.org Cc: Stephen Hemminger , Jorgen Hansen , Dexuan Cui , Stefan Hajnoczi Subject: [PATCH iproute2 v2 0/3] ss: add AF_VSOCK support Date: Fri, 6 Oct 2017 11:48:38 -0400 Message-Id: <20171006154841.10495-1-stefanha@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Fri, 06 Oct 2017 15:48:46 +0000 (UTC) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org v2: * Use uint64_t instead of __u64 for filter->families * Added reference to net-next commit that merged vsock_diag.ko This patch series adds AF_VSOCK support to ss(8). AF_VSOCK is a host<->guest communications channel supported by VMware, KVM (virtio-vsock), and Hyper-V. To dump AF_VSOCK sockets: $ ss --vsock The vsock_diag.ko module has now been merged in the Linux net-next tree. I have verified that the header copy in this patch series is in sync with Linux net-next. See commit 5820299a271fd3dc9b1733e1e10cd7b983edd028 ("Merge branch 'VSOCK-sock_diag'"). Stefan Hajnoczi (3): ss: allow AF_FAMILY constants >32 include: add ss: add AF_VSOCK support include/linux/vm_sockets_diag.h | 33 ++++++ misc/ss.c | 238 +++++++++++++++++++++++++++++++++++----- man/man8/ss.8 | 8 +- 3 files changed, 249 insertions(+), 30 deletions(-) create mode 100644 include/linux/vm_sockets_diag.h