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)
commitf9fd82a9f1e4e228baa8f484f0dbc6e3b26c3b29
tree1f5cb5fccb0a7cefb0eedeab249cb59056bc1c55
parent5bad95a1e55f4d5bb41e130db859d57eaf1b1549
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: 46a3df9f9718 ("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