--- v13
+++ v12
@@ -13,7 +13,7 @@
introducing a new socket address family AF_HYPERV.
You can also get the patch by:
-https://github.com/dcui/linux/commits/decui/hv_sock/net-next/20160629_v13
+https://github.com/dcui/linux/commits/decui/hv_sock/net-next/20160620_v12
Note: the VMBus driver side's supporting patches have been in the mainline
tree.
@@ -154,19 +154,9 @@
Instead, we allocate and free the buffers dynamically only when we recv/send
data. This means: when a connection is idle, no memory is consumed as
recv/send buffers at all.
+
Dexuan Cui (1):
hv_sock: introduce Hyper-V Sockets
-
-Changes since v12:
-return ENOMEM on buffer alllocation failure
-
- Actually "man read/write" says "Other errors may occur, depending on the
-object connected to fd". "man send/recv" indeed lists ENOMEM.
- Considering AF_HYPERV is a new socket type, ENOMEM seems OK here.
- In the long run, I think we should add a new API in the VMBus driver,
-allowing data copy from VMBus ringbuffer into user mode buffer directly.
-This way, we can even eliminate this temporary buffer.
-
MAINTAINERS | 2 +
include/linux/hyperv.h | 14 +
@@ -177,8 +167,8 @@
net/Makefile | 1 +
net/hv_sock/Kconfig | 10 +
net/hv_sock/Makefile | 3 +
- net/hv_sock/af_hvsock.c | 1519 +++++++++++++++++++++++++++++++++++++++++++
- 10 files changed, 1637 insertions(+), 1 deletion(-)
+ net/hv_sock/af_hvsock.c | 1514 +++++++++++++++++++++++++++++++++++++++++++
+ 10 files changed, 1632 insertions(+), 1 deletion(-)
create mode 100644 include/net/af_hvsock.h
create mode 100644 net/hv_sock/Kconfig
create mode 100644 net/hv_sock/Makefile