]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Only update mac configuation when necessary
authorYunsheng Lin <linyunsheng@huawei.com>
Mon, 3 Sep 2018 10:21:53 +0000 (11:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Sep 2018 05:04:45 +0000 (22:04 -0700)
commit7a8a55bfe243e9d861324d8c15fd4c0b1d118191
tree64d407022951307ff6a848f5c70cb66910d6daf5
parentab481fdd1e4dc6986c212fb6db0ceb9d7ff6e9ac
net: hns3: Only update mac configuation when necessary

Currently only fiber port checks if it is necessay to set the
mac through firmware when link is changed, this patch unify the
checking to allow the copper port do the checking too.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c