diff options
author | guodeqing <geffrey.guo@huawei.com> | 2020-07-16 11:12:08 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-07-22 02:21:34 +0300 |
commit | 8210e344ccb798c672ab237b1a4f241bda08909b (patch) | |
tree | 26b904986060703f6c31bfd0538e24f222e3cd2c /net/mac802154 | |
parent | 1e9451cbda456a170518b2bfd643e2cb980880bf (diff) | |
download | linux-8210e344ccb798c672ab237b1a4f241bda08909b.tar.xz |
ipvs: fix the connection sync failed in some cases
The sync_thread_backup only checks sk_receive_queue is empty or not,
there is a situation which cannot sync the connection entries when
sk_receive_queue is empty and sk_rmem_alloc is larger than sk_rcvbuf,
the sync packets are dropped in __udp_enqueue_schedule_skb, this is
because the packets in reader_queue is not read, so the rmem is
not reclaimed.
Here I add the check of whether the reader_queue of the udp sock is
empty or not to solve this problem.
Fixes: 2276f58ac589 ("udp: use a separate rx queue for packet reception")
Reported-by: zhouxudong <zhouxudong8@huawei.com>
Signed-off-by: guodeqing <geffrey.guo@huawei.com>
Acked-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/mac802154')
0 files changed, 0 insertions, 0 deletions