diff options
author | David S. Miller <davem@davemloft.net> | 2016-05-09 15:59:24 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-05-09 15:59:24 -0400 |
commit | e800072c18f0d7b89a80fa46dceb3d080c80e09c (patch) | |
tree | 8da6cb7944762a60ec37594720c1ad2757631c2f /net/vmw_vsock | |
parent | e8ed77dfa90dd79c5343415a4bbbfdab9787b35a (diff) | |
parent | b507146bb6b9ac0c0197100ba3e299825a21fed3 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
In netdevice.h we removed the structure in net-next that is being
changes in 'net'. In macsec.c and rtnetlink.c we have overlaps
between fixes in 'net' and the u64 attribute changes in 'net-next'.
The mlx5 conflicts have to do with vxlan support dependencies.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/vmw_vsock')
-rw-r--r-- | net/vmw_vsock/af_vsock.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/net/vmw_vsock/af_vsock.c b/net/vmw_vsock/af_vsock.c index 3dce53ebea92..b5f1221f48d4 100644 --- a/net/vmw_vsock/af_vsock.c +++ b/net/vmw_vsock/af_vsock.c | |||
@@ -1808,27 +1808,8 @@ vsock_stream_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, | |||
1808 | else if (sk->sk_shutdown & RCV_SHUTDOWN) | 1808 | else if (sk->sk_shutdown & RCV_SHUTDOWN) |
1809 | err = 0; | 1809 | err = 0; |
1810 | 1810 | ||
1811 | if (copied > 0) { | 1811 | if (copied > 0) |
1812 | /* We only do these additional bookkeeping/notification steps | ||
1813 | * if we actually copied something out of the queue pair | ||
1814 | * instead of just peeking ahead. | ||
1815 | */ | ||
1816 | |||
1817 | if (!(flags & MSG_PEEK)) { | ||
1818 | /* If the other side has shutdown for sending and there | ||
1819 | * is nothing more to read, then modify the socket | ||
1820 | * state. | ||
1821 | */ | ||
1822 | if (vsk->peer_shutdown & SEND_SHUTDOWN) { | ||
1823 | if (vsock_stream_has_data(vsk) <= 0) { | ||
1824 | sk->sk_state = SS_UNCONNECTED; | ||
1825 | sock_set_flag(sk, SOCK_DONE); | ||
1826 | sk->sk_state_change(sk); | ||
1827 | } | ||
1828 | } | ||
1829 | } | ||
1830 | err = copied; | 1812 | err = copied; |
1831 | } | ||
1832 | 1813 | ||
1833 | out: | 1814 | out: |
1834 | release_sock(sk); | 1815 | release_sock(sk); |