From: Igor Russkikh Date: Fri, 19 Mar 2021 09:46:56 +0000 (+0100) Subject: net/qede: accept bigger RSS table X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=6ceb7ab83f168fa6b8e90e4bd5a1392de1a48c70;p=dpdk.git net/qede: accept bigger RSS table Some dpdk applications blindly pass fixed side RSS hash tables, and do not check driver/device capabilities. Moreover, many other drivers do not do such a strong check as well. Fix it by making qede accept any size rss_key. For larger key tables we just crop it with notice trace message. Cc: stable@dpdk.org Signed-off-by: Igor Russkikh Acked-by: Rasesh Mody --- diff --git a/drivers/net/qede/qede_ethdev.c b/drivers/net/qede/qede_ethdev.c index ab5f5b1065..bfd38a9772 100644 --- a/drivers/net/qede/qede_ethdev.c +++ b/drivers/net/qede/qede_ethdev.c @@ -2139,8 +2139,10 @@ int qede_rss_hash_update(struct rte_eth_dev *eth_dev, /* RSS hash key */ if (key) { if (len > (ECORE_RSS_KEY_SIZE * sizeof(uint32_t))) { - DP_ERR(edev, "RSS key length exceeds limit\n"); - return -EINVAL; + len = ECORE_RSS_KEY_SIZE * sizeof(uint32_t); + DP_NOTICE(edev, false, + "RSS key length too big, trimmed to %d\n", + len); } DP_INFO(edev, "Applying user supplied hash key\n"); rss_params.update_rss_key = 1;