diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2015-10-29 11:57:42 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-11-01 12:14:47 -0500 |
commit | ea3803c193df18d8353d6c8d77034066a08c19f5 (patch) | |
tree | 9af9acb0d01bd0190ccb035b0c1a21508cbc0af6 /include/net | |
parent | 24c39de0091197f4c1f1a18a7c31e540000dc3b8 (diff) | |
download | linux-stable-ea3803c193df18d8353d6c8d77034066a08c19f5.tar.gz linux-stable-ea3803c193df18d8353d6c8d77034066a08c19f5.tar.bz2 linux-stable-ea3803c193df18d8353d6c8d77034066a08c19f5.zip |
VSOCK: define VSOCK_SS_LISTEN once only
The SS_LISTEN socket state is defined by both af_vsock.c and
vmci_transport.c. This is risky since the value could be changed in one
file and the other would be out of sync.
Rename from SS_LISTEN to VSOCK_SS_LISTEN since the constant is not part
of enum socket_state (SS_CONNECTED, ...). This way it is clear that the
constant is vsock-specific.
The big text reflow in af_vsock.c was necessary to keep to the maximum
line length. Text is unchanged except for s/SS_LISTEN/VSOCK_SS_LISTEN/.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/af_vsock.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/af_vsock.h b/include/net/af_vsock.h index db639a4c5ab8..e9eb2d6791b3 100644 --- a/include/net/af_vsock.h +++ b/include/net/af_vsock.h @@ -22,6 +22,9 @@ #include "vsock_addr.h" +/* vsock-specific sock->sk_state constants */ +#define VSOCK_SS_LISTEN 255 + #define LAST_RESERVED_PORT 1023 #define vsock_sk(__sk) ((struct vsock_sock *)__sk) |