linux_dsm_epyc7002/drivers/net/ethernet/hisilicon/hns3/hns3pf
Fuyun Liang 40173a2ec7 net: hns3: fix for updating fc_mode_last_time
commit a9c782822166 ("net: hns3: add support for set_pauseparam")
adds set_pauseparam support for ethtool cmd, but forgets to update
fc_mode_last_time when PFC mode is disabled in hclge_cfg_pauseparam().
The wrong fc_mode_last_time will be used to update flow control mode
when lldpad has been running. As a result, when using the ethtool
command "-a", user will get a wrong pause parameter.

This patch adds the fc_mode_last_time update when PFC mode is disabled.

Fixes: a9c782822166 ("net: hns3: add support for set_pauseparam")
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>
2018-01-08 14:06:18 -05:00
..
hclge_cmd.c net: hns3: Refactor the initialization of command queue 2017-11-02 21:28:35 +09:00
hclge_cmd.h net: hns3: add vlan offload config command 2017-12-27 10:41:05 -05:00
hclge_dcb.c net: hns3: Add mqprio hardware offload support in hns3 driver 2017-10-19 12:45:45 +01:00
hclge_dcb.h net: hns3: Add hclge_dcb module for the support of DCB feature 2017-09-28 10:35:12 -07:00
hclge_main.c net: hns3: fix for updating fc_mode_last_time 2018-01-08 14:06:18 -05:00
hclge_main.h net: hns3: Modify the update period of packet statistics 2018-01-08 14:06:17 -05:00
hclge_mbx.c net: hns3: Change PF to add ring-vect binding & resetQ to mailbox 2017-12-15 10:55:35 -05:00
hclge_mdio.c net: hns3: add Asym Pause support to phy default features 2017-12-27 10:42:03 -05:00
hclge_mdio.h net: hns3: Add MDIO support to HNS3 Ethernet driver for hip08 SoC 2017-08-03 15:08:17 -07:00
hclge_tm.c net: hns3: Increase the default depth of bucket for TM shaper 2017-12-27 10:42:20 -05:00
hclge_tm.h net: hns3: add support for set_pauseparam 2017-12-27 10:41:47 -05:00
Makefile net: hns3: Add mailbox support to PF driver 2017-12-15 10:55:35 -05:00