diff options
author | Guangbin Huang <huangguangbin2@huawei.com> | 2020-02-14 04:53:43 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-03-05 18:43:41 +0300 |
commit | 3b4cf3b98895c845d91d4260313bd081e53bc395 (patch) | |
tree | 92103c967470a3433cd85a44c0e93ad44be22a2c /drivers/nvme/host | |
parent | 87a5534a1ae44f6d052286e1287b3fe1f7aa0838 (diff) | |
download | linux-3b4cf3b98895c845d91d4260313bd081e53bc395.tar.xz |
net: hns3: fix a copying IPv6 address error in hclge_fd_get_flow_tuples()
[ Upstream commit 47327c9315b2f3ae4ab659457977a26669631f20 ]
The IPv6 address defined in struct in6_addr is specified as
big endian, but there is no specified endian in struct
hclge_fd_rule_tuples, so it will cause a problem if directly
use memcpy() to copy ipv6 address between these two structures
since this field in struct hclge_fd_rule_tuples is little endian.
This patch fixes this problem by using be32_to_cpu() to convert
endian of IPv6 address of struct in6_addr before copying.
Fixes: d93ed94fbeaf ("net: hns3: add aRFS support for PF")
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/nvme/host')
0 files changed, 0 insertions, 0 deletions