summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_rss.c
diff options
context:
space:
mode:
authorNĂ©lio Laranjeiro <nelio.laranjeiro@6wind.com>2016-03-18 13:54:43 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-03-25 19:01:37 +0100
commitfbd2319037897e038963a35a2866d39c509ae373 (patch)
tree32f0e3cd5027ec0353343c84af0472cd1fb3d3be /drivers/net/mlx5/mlx5_rss.c
parentc64ccc0eca2fe98f3bd3bbc6287b9a26dd46b3a9 (diff)
downloaddpdk-next-eventdev-fbd2319037897e038963a35a2866d39c509ae373.zip
dpdk-next-eventdev-fbd2319037897e038963a35a2866d39c509ae373.tar.gz
dpdk-next-eventdev-fbd2319037897e038963a35a2866d39c509ae373.tar.xz
mlx5: fix null RSS key handling
Update function can be called with no key to enable or disable a RSS protocol, or with a key to be applied to the desired protocols. Fixes: 2f97422e7759 ("mlx5: support RSS hash update and get") Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com> Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_rss.c')
-rw-r--r--drivers/net/mlx5/mlx5_rss.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/mlx5/mlx5_rss.c b/drivers/net/mlx5/mlx5_rss.c
index e73cd9d..639e935 100644
--- a/drivers/net/mlx5/mlx5_rss.c
+++ b/drivers/net/mlx5/mlx5_rss.c
@@ -156,12 +156,6 @@ mlx5_rss_hash_update(struct rte_eth_dev *dev,
rss_conf->rss_key,
rss_conf->rss_key_len,
rss_conf->rss_hf);
- else
- err = rss_hash_rss_conf_new_key(priv,
- rss_hash_default_key,
- rss_hash_default_key_len,
- ETH_RSS_PROTO_MASK);
-
/* Store protocols for which RSS is enabled. */
priv->rss_hf = rss_conf->rss_hf;
priv_unlock(priv);