summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/ptp.c
diff options
context:
space:
mode:
authorFuyun Liang <liangfuyun1@huawei.com>2018-01-05 18:18:18 +0800
committerDavid S. Miller <davem@davemloft.net>2018-01-08 14:06:18 -0500
commit40173a2ec70c6386f5b342dfd612c26453a3f6b4 (patch)
tree8ae928e8db1bb216e54966f1ba2c62aac8d08f3d /drivers/net/ethernet/sfc/ptp.c
parentcf72fa63162c9adbc690d0145daa8b1dce9eaf6f (diff)
downloadlinux-40173a2ec70c6386f5b342dfd612c26453a3f6b4.tar.bz2
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>
Diffstat (limited to 'drivers/net/ethernet/sfc/ptp.c')
0 files changed, 0 insertions, 0 deletions