OSDN Git Service

net: hns3: cleanup for endian issue for VF RSS
authorJian Shen <shenjian15@huawei.com>
Tue, 9 Feb 2021 02:42:01 +0000 (10:42 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Feb 2021 23:34:07 +0000 (15:34 -0800)
commit55ff3ed57b5031c3d48aa064333c35c6a547e3ee
tree7788c0ff09311f10776540221077a014fc51f398
parent7ceb40b8207ea4aefed96c6dd22625b93aa121f9
net: hns3: cleanup for endian issue for VF RSS

Currently the RSS commands of VF are using host byte order.
According to the user manual, it should use little endian in
the command to firmware. For the host and firmware are both
using little endian, so it can work well in this case.

Do cleanup to make it more explicitly.

Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Huazhong tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.h
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c