Re: [PATCH V2 net 3/4] net: hns3: add wait until mac link down
From: Leon Romanovsky <leon@kernel.org>
Date: 2023-08-08 20:09:15
Also in:
lkml
From: Leon Romanovsky <leon@kernel.org>
Date: 2023-08-08 20:09:15
Also in:
lkml
On Mon, Aug 07, 2023 at 07:34:51PM +0800, Jijie Shao wrote:
From: Jie Wang <redacted>
In some configure flow of hns3 driver, for example, change mtu, it will
disable MAC through firmware before configuration. But firmware disables
MAC asynchronously. The rx traffic may be not stopped in this case.
So fixes it by waiting until mac link is down.
Fixes: a9775bb64aa7 ("net: hns3: fix set and get link ksettings issue")
Signed-off-by: Jie Wang <redacted>
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
---
.../net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)Thanks, Reviewed-by: Leon Romanovsky <leonro@nvidia.com>