[dpdk-dev] [PATCH v2 4/4] ethdev: remove unnecessary check for new flow type
Ferruh Yigit
ferruh.yigit at intel.com
Fri Sep 8 19:01:33 CEST 2017
On 9/1/2017 4:02 PM, Kirill Rybalchenko wrote:
> Remove unnecessary check for new flow type for rss hash
> filter update.
>
> Signed-off-by: Kirill Rybalchenko <kirill.rybalchenko at intel.com>
> ---
> lib/librte_ether/rte_ethdev.c | 8 --------
> 1 file changed, 8 deletions(-)
>
> diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c
> index 0597641..c470997 100644
> --- a/lib/librte_ether/rte_ethdev.c
> +++ b/lib/librte_ether/rte_ethdev.c
> @@ -2263,16 +2263,8 @@ int
> rte_eth_dev_rss_hash_update(uint8_t port_id, struct rte_eth_rss_conf *rss_conf)
> {
> struct rte_eth_dev *dev;
> - uint16_t rss_hash_protos;
>
> RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV);
> - rss_hash_protos = rss_conf->rss_hf;
> - if ((rss_hash_protos != 0) &&
> - ((rss_hash_protos & ETH_RSS_PROTO_MASK) == 0)) {
Can intention here be:
((rss_hash_protos & ~(ETH_RSS_PROTO_MASK)) != 0)
> - RTE_PMD_DEBUG_TRACE("Invalid rss_hash_protos=0x%x\n",
> - rss_hash_protos);
> - return -EINVAL;
> - }
> dev = &rte_eth_devices[port_id];
> RTE_FUNC_PTR_OR_ERR_RET(*dev->dev_ops->rss_hash_update, -ENOTSUP);
> return (*dev->dev_ops->rss_hash_update)(dev, rss_conf);
>
More information about the dev
mailing list