mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Cross-merge networking fixes after downstream PR. Conflicts: net/mac80211/rx.c91535613b6("wifi: mac80211: don't drop all unprotected public action frames")6c02fab724("wifi: mac80211: split ieee80211_drop_unencrypted_mgmt() return value") Adjacent changes: drivers/net/ethernet/apm/xgene/xgene_enet_main.c61471264c0("net: ethernet: apm: Convert to platform remove callback returning void")d2ca43f306("net: xgene: Fix unused xgene_enet_of_match warning for !CONFIG_OF") net/vmw_vsock/virtio_transport.c64c99d2d6a("vsock/virtio: support to send non-linear skb")53b08c4985("vsock/virtio: initialize the_virtio_vsock before using VQs") Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
@@ -927,10 +927,11 @@ int tcp_send_mss(struct sock *sk, int *size_goal, int flags)
|
||||
return mss_now;
|
||||
}
|
||||
|
||||
/* In some cases, both sendmsg() could have added an skb to the write queue,
|
||||
* but failed adding payload on it. We need to remove it to consume less
|
||||
/* In some cases, sendmsg() could have added an skb to the write queue,
|
||||
* but failed adding payload on it. We need to remove it to consume less
|
||||
* memory, but more importantly be able to generate EPOLLOUT for Edge Trigger
|
||||
* epoll() users.
|
||||
* epoll() users. Another reason is that tcp_write_xmit() does not like
|
||||
* finding an empty skb in the write queue.
|
||||
*/
|
||||
void tcp_remove_empty_skb(struct sock *sk)
|
||||
{
|
||||
@@ -1289,6 +1290,7 @@ new_segment:
|
||||
|
||||
wait_for_space:
|
||||
set_bit(SOCK_NOSPACE, &sk->sk_socket->flags);
|
||||
tcp_remove_empty_skb(sk);
|
||||
if (copied)
|
||||
tcp_push(sk, flags & ~MSG_MORE, mss_now,
|
||||
TCP_NAGLE_PUSH, size_goal);
|
||||
|
||||
Reference in New Issue
Block a user