]> git.droids-corp.org - dpdk.git/commit
net/hns3: fix max packet size rollback in PF
authorHuisong Li <lihuisong@huawei.com>
Fri, 28 Jan 2022 02:07:03 +0000 (10:07 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 31 Jan 2022 13:22:21 +0000 (14:22 +0100)
commite8f1f783d1cd61faf12658df64726bca88b7ff63
tree196c9465aa3a3989a13e31e83d945d735f863d8a
parent22572e84fbda2c195707ffbb0dd6af4433d7a219
net/hns3: fix max packet size rollback in PF

HNS3 PF driver use the hns->pf.mps to restore the MTU when a reset
occurs.
If user fails to configure the MTU, the MPS of PF may not be restored to
the original value.

Fixes: 25fb790f7868 ("net/hns3: fix HW buffer size on MTU update")
Fixes: 1f5ca0b460cd ("net/hns3: support some device operations")
Fixes: d51867db65c1 ("net/hns3: add initialization")
Cc: stable@dpdk.org
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_ethdev.c