numam-dpdk/drivers/net/hns3
Lijun Ou 708e60a4e6 net/hns3: fix RSS key length
When upper application calls the rte_eth_dev_rss_hash_conf_get API
function to get the RSS key parameters, the function should return the
RSS key length supported by the device. Otherwise, an error will occur
when the upper application needs to use the RSS key length supported
by this specified hardware for judgment and configure the specified
key into hardware.

For example, in the following scenario:
When users want to use their own RSS key, but the length of the key is
bigger than the one of the supported by hardware.

As a result, users need to get the RSS key length supported by hardware
according to the above API firstly, and then compare the actual obtained
RSS key length with the length of their own RSS key.

If the driver does not return the actual value, error may occur when
user calls the rte_eth_dev_rss_hash_update API function to configure
their own key into hardware.

Besides, this patch fixes the problem of stepping on memory when the RSS
key array configured by users are less than the RSS key length supported
by the driver at the same time.

Fixes: c37ca66f2b ("net/hns3: support RSS")
Cc: stable@dpdk.org

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
2020-04-21 13:57:07 +02:00
..
hns3_cmd.c net/hns3: fix status after repeated resets 2020-04-21 13:57:04 +02:00
hns3_cmd.h net/hns3: fix Tx interrupt when enabling Rx interrupt 2020-03-18 10:21:42 +01:00
hns3_dcb.c net/hns3: simplify process of some return values 2020-04-21 13:57:07 +02:00
hns3_dcb.h net/hns3: support different numbers of Rx and Tx queues 2020-01-17 19:46:26 +01:00
hns3_ethdev_vf.c net/hns3: add RSS hash offload to capabilities 2020-04-21 13:57:07 +02:00
hns3_ethdev.c net/hns3: add RSS hash offload to capabilities 2020-04-21 13:57:07 +02:00
hns3_ethdev.h net/hns3: fix configuring RSS hash when rules are flushed 2020-04-21 13:57:04 +02:00
hns3_fdir.c net/hns3: clear residual flow rules on init 2020-04-21 13:57:07 +02:00
hns3_fdir.h net/hns3: support RSS 2019-10-07 15:00:56 +02:00
hns3_flow.c net/hns3: fix configuring RSS hash when rules are flushed 2020-04-21 13:57:04 +02:00
hns3_intr.c net/hns3: fix Rx interrupt after reset 2020-04-21 13:57:07 +02:00
hns3_intr.h net/hns3: support device reset 2019-10-07 15:00:57 +02:00
hns3_logs.h net/hns3: register and add log interface 2019-10-07 15:00:56 +02:00
hns3_mbx.c net/hns3: fix mailbox opcode data type 2020-04-21 13:57:04 +02:00
hns3_mbx.h net/hns3: support promiscuous and allmulticast mode for VF 2020-03-18 10:21:42 +01:00
hns3_mp.c net/hns3: support multiple process 2019-10-07 15:00:57 +02:00
hns3_mp.h net/hns3: support multiple process 2019-10-07 15:00:57 +02:00
hns3_regs.c net/hns3: fix dumping VF register information 2020-01-17 19:46:26 +01:00
hns3_regs.h net/hns3: fix Tx interrupt when enabling Rx interrupt 2020-03-18 10:21:42 +01:00
hns3_rss.c net/hns3: fix RSS key length 2020-04-21 13:57:07 +02:00
hns3_rss.h net/hns3: fix RSS indirection table configuration 2020-04-21 13:57:04 +02:00
hns3_rxtx.c net/hns3: fix Rx interrupt after reset 2020-04-21 13:57:07 +02:00
hns3_rxtx.h net/hns3: fix Rx interrupt after reset 2020-04-21 13:57:07 +02:00
hns3_stats.c net/hns3: remove one IO barrier in Rx 2020-01-17 19:46:26 +01:00
hns3_stats.h net/hns3: support device stats 2019-10-07 15:00:57 +02:00
Makefile build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
meson.build build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
rte_pmd_hns3_version.map build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00