From: Ferruh Yigit Date: Tue, 1 May 2018 13:33:43 +0000 (+0100) Subject: ethdev: remove error return on RSS hash check X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=af7551e2bfceef7ddeb7941b26b06a9b6d6dee5e;p=dpdk.git ethdev: remove error return on RSS hash check Many sample applications fail because of dev_info.flow_type_rss_offloads check in rte_eth_dev_configure() The sample applications need to be fixed/updated before returning error on rte_eth_dev_configure() and rte_eth_dev_rss_hash_update(). This patch keeps the error logs but removes returning errors. Fixes: 8863a1fbfc66 ("ethdev: add supported hash function check") Signed-off-by: Ferruh Yigit Signed-off-by: Thomas Monjalon --- diff --git a/lib/librte_ethdev/rte_ethdev.c b/lib/librte_ethdev/rte_ethdev.c index 59810dde86..e5605242db 100644 --- a/lib/librte_ethdev/rte_ethdev.c +++ b/lib/librte_ethdev/rte_ethdev.c @@ -1148,7 +1148,6 @@ rte_eth_dev_configure(uint16_t port_id, uint16_t nb_rx_q, uint16_t nb_tx_q, port_id, dev_conf->rx_adv_conf.rss_conf.rss_hf, dev_info.flow_type_rss_offloads); - return -EINVAL; } /* @@ -2789,7 +2788,6 @@ rte_eth_dev_rss_hash_update(uint16_t port_id, port_id, rss_conf->rss_hf, dev_info.flow_type_rss_offloads); - return -EINVAL; } RTE_FUNC_PTR_OR_ERR_RET(*dev->dev_ops->rss_hash_update, -ENOTSUP); return eth_err(port_id, (*dev->dev_ops->rss_hash_update)(dev,