Patchwork [V8,1/4,net-next] sock.h: Add a new sock zero-copy flag

login
register
mail settings
Submitter Shirley Ma
Date July 6, 2011, 10:17 p.m.
Message ID <1309990650.10209.14.camel@localhost.localdomain>
Download mbox | patch
Permalink /patch/103584/
State Accepted
Delegated to: David Miller
Headers show

Comments

Shirley Ma - July 6, 2011, 10:17 p.m.
Signed-off-by: Shirley Ma <xma@us.ibm.com>
---

 include/net/sock.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)



--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/include/net/sock.h b/include/net/sock.h
index ae56da6..396f735 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -563,6 +563,7 @@  enum sock_flags {
 	SOCK_TIMESTAMPING_SYS_HARDWARE, /* %SOF_TIMESTAMPING_SYS_HARDWARE */
 	SOCK_FASYNC, /* fasync() active */
 	SOCK_RXQ_OVFL,
+	SOCK_ZEROCOPY, /* buffers from userspace */
 };
 
 static inline void sock_copy_flags(struct sock *nsk, struct sock *osk)