Skip to content

ss: add AF_VSOCK support

Stefan Hajnoczi netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v13 patches 6 repliesSuperseded

Changes in v2 from the cover letter

* Use uint64_t instead of __u64 for filter->families
* Added reference to net-next commit that merged vsock_diag.ko

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ss: allow AF_FAMILY constants >32misc/ss.c+28 -260 replies
2/3include: add <linux/vm_sockets_diag.h>include/linux/vm_sockets_diag.h+33 -00 replies
3/3ss: add AF_VSOCK supportman/man8/ss.8 misc/ss.c+188 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH iproute2 v2 0/3] ss: add AF_VSOCK support

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 <linux/vm_sockets_diag.h> 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 <linux/vm_sockets_diag.h>
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
Signature · 1 line
2.13.6