summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns3/hnae3.h
diff options
context:
space:
mode:
authorJian Shen <shenjian15@huawei.com>2022-11-14 16:20:46 +0800
committerPaolo Abeni <pabeni@redhat.com>2022-11-15 13:29:26 +0100
commita56cad694767ebdb7d80f27ffc239db46fff64de (patch)
tree9cb10e2bee08f43e40ba0f6175439b810399a1c0 /drivers/net/ethernet/hisilicon/hns3/hnae3.h
parent18c532e44939caa17f1fa380f7ac50dbc0718dbb (diff)
downloadlinux-stable-a56cad694767ebdb7d80f27ffc239db46fff64de.tar.gz
linux-stable-a56cad694767ebdb7d80f27ffc239db46fff64de.tar.bz2
linux-stable-a56cad694767ebdb7d80f27ffc239db46fff64de.zip
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: 796640778c26 ("net: hns3: support RXD advanced layout") Fixes: 232fc64b6e62 ("net: hns3: Add HW RSS hash information to RX skb") Fixes: ea4858670717 ("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>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hnae3.h')
-rw-r--r--drivers/net/ethernet/hisilicon/hns3/hnae3.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hnae3.h b/drivers/net/ethernet/hisilicon/hns3/hnae3.h
index 0179fc288f5f..17137de9338c 100644
--- a/drivers/net/ethernet/hisilicon/hns3/hnae3.h
+++ b/drivers/net/ethernet/hisilicon/hns3/hnae3.h
@@ -819,7 +819,6 @@ struct hnae3_knic_private_info {
const struct hnae3_dcb_ops *dcb_ops;
u16 int_rl_setting;
- enum pkt_hash_types rss_type;
void __iomem *io_base;
};