OSDN Git Service

net: hns3: change the value of the SEPARATOR_VALUE macro in hclgevf_main.c
authorHuazhong Tan <tanhuazhong@huawei.com>
Sat, 17 Apr 2021 07:09:24 +0000 (15:09 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Apr 2021 22:38:05 +0000 (15:38 -0700)
The SEPARATOR_VALUE macro is used as separator when getting
the register value, but the value of this macro is different
between pf and vf, it is a bit confusing for the user, so
synchronize the value of vf with pf.

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c

index 07066c4..0db51ef 100644 (file)
@@ -3646,7 +3646,7 @@ static void hclgevf_get_link_mode(struct hnae3_handle *handle,
 }
 
 #define MAX_SEPARATE_NUM       4
-#define SEPARATOR_VALUE                0xFFFFFFFF
+#define SEPARATOR_VALUE                0xFDFCFBFA
 #define REG_NUM_PER_LINE       4
 #define REG_LEN_PER_LINE       (REG_NUM_PER_LINE * sizeof(u32))