aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/iucv
diff options
context:
space:
mode:
authorHendrik Brueckner <brueckner@linux.vnet.ibm.com>2009-04-21 19:26:27 -0400
committerDavid S. Miller <davem@davemloft.net>2009-04-23 07:04:38 -0400
commit09488e2e0fab14ebe41135f0d066cfe2c56ba9e5 (patch)
treed4435618235088720f7cbc2ac9624e4b8cb0bf7a /include/net/iucv
parent802788bf90f78e7f248e78d4d0510bb00e976db8 (diff)
af_iucv: New socket option for setting IUCV MSGLIMITs
The SO_MSGLIMIT socket option modifies the message limit for new IUCV communication paths. The message limit specifies the maximum number of outstanding messages that are allowed for connections. This setting can be lowered by z/VM when an IUCV connection is established. Expects an integer value in the range of 1 to 65535. The default value is 65535. The message limit must be set before calling connect() or listen() for sockets. If sockets are already connected or in state listen, changing the message limit is not supported. For reading the message limit value, unconnected sockets return the limit that has been set or the default limit. For connected sockets, the actual message limit is returned. The actual message limit is assigned by z/VM for each connection and it depends on IUCV MSGLIMIT authorizations specified for the z/VM guest virtual machine. Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com> Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/iucv')
-rw-r--r--include/net/iucv/af_iucv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/iucv/af_iucv.h b/include/net/iucv/af_iucv.h
index b57739e49dc1..21ee49ffcbaf 100644
--- a/include/net/iucv/af_iucv.h
+++ b/include/net/iucv/af_iucv.h
@@ -74,10 +74,12 @@ struct iucv_sock {
74 struct sock_msg_q message_q; 74 struct sock_msg_q message_q;
75 unsigned int send_tag; 75 unsigned int send_tag;
76 u8 flags; 76 u8 flags;
77 u16 msglimit;
77}; 78};
78 79
79/* iucv socket options (SOL_IUCV) */ 80/* iucv socket options (SOL_IUCV) */
80#define SO_IPRMDATA_MSG 0x0080 /* send/recv IPRM_DATA msgs */ 81#define SO_IPRMDATA_MSG 0x0080 /* send/recv IPRM_DATA msgs */
82#define SO_MSGLIMIT 0x1000 /* get/set IUCV MSGLIMIT */
81 83
82/* iucv related control messages (scm) */ 84/* iucv related control messages (scm) */
83#define SCM_IUCV_TRGCLS 0x0001 /* target class control message */ 85#define SCM_IUCV_TRGCLS 0x0001 /* target class control message */