summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.h
diff options
context:
space:
mode:
authorJie Wang <wangjie125@huawei.com>2022-05-09 15:55:29 +0800
committerDavid S. Miller <davem@davemloft.net>2022-05-09 14:30:37 +0100
commit767975e582c50b39d633f6e1c4bb99cc1f156efb (patch)
treedd0db1861fb88d91fa0e2229329ea6d69c026a8e /drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.h
parentbbed702412041c370d336f076b783bc9e5e04c21 (diff)
downloadlinux-stable-767975e582c50b39d633f6e1c4bb99cc1f156efb.tar.gz
linux-stable-767975e582c50b39d633f6e1c4bb99cc1f156efb.tar.bz2
linux-stable-767975e582c50b39d633f6e1c4bb99cc1f156efb.zip
net: hns3: add byte order conversion for PF to VF mailbox message
Currently, hns3 mailbox processing between PF and VF missed to convert message byte order and use data type u16 instead of __le16 for mailbox data process. These processes may cause problems between different architectures. So this patch uses __le16/__le32 data type to define mailbox data structures. To be compatible with old hns3 driver, these structures use one-byte alignment. Then byte order conversions are added to mailbox messages from PF to VF. 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>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.h')
0 files changed, 0 insertions, 0 deletions