net/hns3: fix MAC enable failure rollback
authorHuisong Li <lihuisong@huawei.com>
Thu, 29 Apr 2021 09:03:59 +0000 (17:03 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 May 2021 14:12:04 +0000 (16:12 +0200)
commitc70d8e99fbde1830389be95ef2878767787bf2c6
treec1121ea4fd02fe5153f34726cd8918f3cb8719db
parent21938cf4e43e84fa2214527aa31d315f7e54dc47
net/hns3: fix MAC enable failure rollback

If driver fails to enable MAC, it does not need to rollback the MAC
configuration. This patch fixes it.

Fixes: bdaf190f8235 ("net/hns3: support link speed autoneg for PF")

Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_ethdev.c