summaryrefslogtreecommitdiffstats
path: root/arch/mn10300
diff options
context:
space:
mode:
authorChenbo Feng2017-04-06 04:00:55 +0200
committerDavid S. Miller2017-04-08 17:07:01 +0200
commit5daab9db7b65df87da26fd8cfa695fb9546a1ddb (patch)
tree92c586ee206c95658ffd47df5c8fd33fa85b64a3 /arch/mn10300
parentMerge tag 'mlx5-updates-2017-04-16' of git://git.kernel.org/pub/scm/linux/ker... (diff)
downloadkernel-qcow2-linux-5daab9db7b65df87da26fd8cfa695fb9546a1ddb.tar.gz
kernel-qcow2-linux-5daab9db7b65df87da26fd8cfa695fb9546a1ddb.tar.xz
kernel-qcow2-linux-5daab9db7b65df87da26fd8cfa695fb9546a1ddb.zip
New getsockopt option to get socket cookie
Introduce a new getsockopt operation to retrieve the socket cookie for a specific socket based on the socket fd. It returns a unique non-decreasing cookie for each socket. Tested: https://android-review.googlesource.com/#/c/358163/ Acked-by: Willem de Bruijn <willemb@google.com> Signed-off-by: Chenbo Feng <fengc@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/mn10300')
-rw-r--r--arch/mn10300/include/uapi/asm/socket.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mn10300/include/uapi/asm/socket.h b/arch/mn10300/include/uapi/asm/socket.h
index e4ac1843ee01..4526e92301a6 100644
--- a/arch/mn10300/include/uapi/asm/socket.h
+++ b/arch/mn10300/include/uapi/asm/socket.h
@@ -96,4 +96,6 @@
#define SO_INCOMING_NAPI_ID 56
+#define SO_COOKIE 57
+
#endif /* _ASM_SOCKET_H */