Messages in this thread | | | Date | Tue, 8 Aug 2023 21:41:05 +0300 | From | Leon Romanovsky <> | Subject | Re: [PATCH V2 net 3/4] net: hns3: add wait until mac link down |
| |
On Mon, Aug 07, 2023 at 07:34:51PM +0800, Jijie Shao wrote: > From: Jie Wang <wangjie125@huawei.com> > > 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 <wangjie125@huawei.com> > 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>
| |