]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: fix for not setting pause parameters
authorFuyun Liang <liangfuyun1@huawei.com>
Fri, 5 Jan 2018 10:18:22 +0000 (18:18 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Jan 2018 19:06:19 +0000 (14:06 -0500)
commit89fc752a25f3f73e30760350c27c32720f8c92ad
tree717e03eaa7e601394dc32bc84bc81894a853234f
parent290d325bb7031ebe1bb779b6009f5916284d18b3
net: hns3: fix for not setting pause parameters

Pause parameters include source address, transmit gap and pause time.
The default value of the pause source address is zero in the hardware.
Default pause parameters need to be set to the hardware. Also, when
setting new mac address, the pause source address need to be updated.

Fixes: eda20620a1da ("net: hns3: Add support for PFC setting in TM module")
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
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.h