From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrien Mazarguil Subject: Re: [PATCH] net/mlx5: fix hash key size retrieval Date: Fri, 14 Oct 2016 10:20:32 +0200 Message-ID: <20161014082032.GD17252@6wind.com> References: <494dd0993d87719c80fc6caa9b4586bd3deaa016.1476430165.git.nelio.laranjeiro@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org To: Nelio Laranjeiro Return-path: Received: from mail-qk0-f182.google.com (mail-qk0-f182.google.com [209.85.220.182]) by dpdk.org (Postfix) with ESMTP id 35EBC1518 for ; Fri, 14 Oct 2016 10:20:39 +0200 (CEST) Received: by mail-qk0-f182.google.com with SMTP id o68so179671289qkf.3 for ; Fri, 14 Oct 2016 01:20:39 -0700 (PDT) Content-Disposition: inline In-Reply-To: <494dd0993d87719c80fc6caa9b4586bd3deaa016.1476430165.git.nelio.laranjeiro@6wind.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Fri, Oct 14, 2016 at 09:30:14AM +0200, Nelio Laranjeiro wrote: > Return RSS key size in struct rte_eth_dev_info. > > Fixes: 0f6f219e7919 ("app/testpmd: fix RSS hash key size") > > Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil > --- > drivers/net/mlx5/mlx5_ethdev.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/net/mlx5/mlx5_ethdev.c b/drivers/net/mlx5/mlx5_ethdev.c > index c1c2d26..b8b3ea9 100644 > --- a/drivers/net/mlx5/mlx5_ethdev.c > +++ b/drivers/net/mlx5/mlx5_ethdev.c > @@ -601,6 +601,9 @@ mlx5_dev_infos_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *info) > * size if it is not fixed. > * The API should be updated to solve this problem. */ > info->reta_size = priv->ind_table_max_size; > + info->hash_key_size = ((*priv->rss_conf) ? > + (*priv->rss_conf)[0]->rss_key_len : > + 0); > info->speed_capa = > ETH_LINK_SPEED_1G | > ETH_LINK_SPEED_10G | > -- > 2.1.4 > -- Adrien Mazarguil 6WIND