]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: modify how pause options is displayed
authorYonglong Liu <liuyonglong@huawei.com>
Fri, 9 Aug 2019 02:31:11 +0000 (10:31 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Aug 2019 20:44:32 +0000 (13:44 -0700)
commit38f7091bc4d410337fd8cdd761a0aa91aafa0a60
tree3526eaf7d32dba3b292eb9065a13961417a94192
parent64a0c87bec67f73d7fcb074787ca57e30ff4e63a
net: hns3: modify how pause options is displayed

Currently, the pause options of HNS3 shown like this:
"RX/TX" is always the same with "RX negotiated/TX negotiated".
Because of the driver covered the value of "RX/TX" with the value
of "RX negotiated/TX negotiated" after adjust link.

This patch records the pause configurations of the user, and never
covered them in adjust link.

Signed-off-by: Yonglong Liu <liuyonglong@huawei.com>
Reviewed-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c