OSDN Git Service

net: hns: Clean rx fbd when ae stopped.
authorYonglong Liu <liuyonglong@huawei.com>
Sat, 15 Dec 2018 03:53:24 +0000 (11:53 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Dec 2018 20:07:32 +0000 (12:07 -0800)
commit31f6b61d810654fb3ef43f4d8afda0f44b142fad
tree4f99af285fd4d6505b306db61f7f4f8bbd699905
parent5778b13b64eca5549d242686f2f91a2c80c8fa40
net: hns: Clean rx fbd when ae stopped.

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>
drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c