]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: fix incorrect hw rss hash type of rx packet
authorJian Shen <shenjian15@huawei.com>
Mon, 14 Nov 2022 08:20:46 +0000 (16:20 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 15 Nov 2022 12:29:26 +0000 (13:29 +0100)
commitc2774acba9e365db4c953804f295e4a392c04a8f
tree9cb10e2bee08f43e40ba0f6175439b810399a1c0
parentad545193e9e11ac5e582d7b2e48b9c9757a86a9d
net: hns3: fix incorrect hw rss hash type of rx packet

Currently, the HNS3 driver reports the rss hash type
of each packet based on the rss hash tuples set. It
always reports PKT_HASH_TYPE_L4, without checking the
type of current packet. It's incorrect.
Fixes it by reporting it base on the packet type.

Fixes: ff3c0d97cdf7 ("net: hns3: support RXD advanced layout")
Fixes: 52f0133a4b0f ("net: hns3: Add HW RSS hash information to RX skb")
Fixes: d05e1dd63700 ("net: hns3: handle the BD info on the last BD of the packet")
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Hao Lan <lanhao@huawei.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/hisilicon/hns3/hnae3.h
drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_rss.c
drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_rss.h
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3_enet.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c