]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: add MTU initialization for hardware
authorFuyun Liang <liangfuyun1@huawei.com>
Fri, 5 Jan 2018 10:18:21 +0000 (18:18 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Jan 2018 19:06:19 +0000 (14:06 -0500)
commitb7a3fba67ba336fe45cadec82d7da8ea4731a22b
tree1f5cb5fccb0a7cefb0eedeab249cb59056bc1c55
parent3b4f5a6b2efdf447c8cdd9cd42c1d5b7efb9456c
net: hns3: add MTU initialization for hardware

When initializing the MAC, the MTU vlaue need to be set to the hardware
too. Otherwise, the MTU value of software will be different from the MTU
value of hardware.

Fixes: 575d84053c84 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support")
Signed-off-by: Fuyun Liang <liangfuyun1@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c