net: hns: Clean rx fbd when ae stopped.
authorYonglong Liu <liuyonglong@huawei.com>
Sat, 15 Dec 2018 03:53:24 +0000 (11:53 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Jan 2019 09:00:59 +0000 (10:00 +0100)
commit5ddca1a9915f48f583186c627865d20f1e435d23
tree8db262b235b03517ad4df96bfd65fe88bcf162fd
parent1ef17642df395627055661c3c20dfd183e78b07a
net: hns: Clean rx fbd when ae stopped.

[ Upstream commit 31f6b61d810654fb3ef43f4d8afda0f44b142fad ]

If there are packets in hardware when changing the speed or duplex,
it may cause hardware hang up.

This patch adds the code to wait rx fbd clean up when ae stopped.

Signed-off-by: Yonglong Liu <liuyonglong@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c