linux_dsm_epyc7002/drivers/net/ethernet/hisilicon/hns3
Guangbin Huang 47327c9315 net: hns3: fix a copying IPv6 address error in hclge_fd_get_flow_tuples()
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: d93ed94fbe ("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>
2020-02-14 07:05:17 -08:00
..
hns3pf net: hns3: fix a copying IPv6 address error in hclge_fd_get_flow_tuples() 2020-02-14 07:05:17 -08:00
hns3vf net: hns3: cleanup some coding style issue 2020-01-21 11:46:21 +01:00
hclge_mbx.h net: hns3: cleanup some print format warning 2019-10-31 12:03:23 -07:00
hnae3.c net: hns3: add or modify some comments 2019-10-31 12:03:23 -07:00
hnae3.h net: hns3: refactor the procedure of VF FLR 2020-01-11 14:52:22 -08:00
hns3_dcbnl.c net: hns3: fix some coding style issues 2019-06-09 13:20:59 -07:00
hns3_debugfs.c net: hns3: delete unnecessary blank line and space for cleanup 2020-01-21 11:46:21 +01:00
hns3_enet.c net: hns3: cleanup some coding style issue 2020-01-21 11:46:21 +01:00
hns3_enet.h net: hns3: add trace event support for HNS3 driver 2020-01-06 13:26:25 -08:00
hns3_ethtool.c net: hns3: replace snprintf with scnprintf in hns3_update_strings 2020-01-21 10:48:40 +01:00
hns3_trace.h net: hns3: add trace event support for HNS3 driver 2020-01-06 13:26:25 -08:00
Makefile net: hns3: add trace event support for HNS3 driver 2020-01-06 13:26:25 -08:00