]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: fix data endian problem of some functions of debugfs
authorJie Wang <wangjie125@huawei.com>
Wed, 27 Oct 2021 12:11:46 +0000 (20:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Oct 2021 13:47:33 +0000 (14:47 +0100)
commit994021c10246d7b5dcc72ca00c3cefd90e40e615
treefeaacf0e17711b3453e0b9916b840b04272bd4d2
parent61493bd9c5626532517ff336b52ef98d0f9d4c4e
net: hns3: fix data endian problem of some functions of debugfs

The member data in struct hclge_desc is type of __le32, it needs endian
conversion before using it, and some functions of debugfs didn't do that,
so this patch fixes it.

Fixes: a4a38c124ebb ("net: hns3: Add "dcb register" status information query function")
Signed-off-by: Jie Wang <wangjie125@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c