sock.h: Add a new sock zero-copy flag
authorShirley Ma <mashirle@us.ibm.com>
Wed, 6 Jul 2011 12:17:30 +0000 (12:17 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Jul 2011 11:40:21 +0000 (04:40 -0700)
Signed-off-by: Shirley Ma <xma@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h

index ae56da6ec958536c4c489229bde8e8c37fa893ae..396f735e0cd5994fc72abafbaa08420967c57def 100644 (file)
@@ -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)