Skip to content

Commit

Permalink
net/mlx5: fix RSS RETA update
Browse files Browse the repository at this point in the history
[ upstream commit 5aeb7fa ]

This patch fixes RETA updating for entries above 64.
Without that, these entries are never updated as
calculated mask value will always be 0.

Fixes: 634efbc ("mlx5: support RETA query and update")

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
  • Loading branch information
mcoquelin authored and cpaelzer committed Nov 30, 2021
1 parent 9fbe544 commit 2fb2e78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/mlx5/mlx5_rss.c
Expand Up @@ -216,7 +216,7 @@ mlx5_dev_rss_reta_update(struct rte_eth_dev *dev,
for (idx = 0, i = 0; (i != reta_size); ++i) {
idx = i / RTE_RETA_GROUP_SIZE;
pos = i % RTE_RETA_GROUP_SIZE;
if (((reta_conf[idx].mask >> i) & 0x1) == 0)
if (((reta_conf[idx].mask >> pos) & 0x1) == 0)
continue;
assert(reta_conf[idx].reta[pos] < priv->rxqs_n);
(*priv->reta_idx)[i] = reta_conf[idx].reta[pos];
Expand Down

0 comments on commit 2fb2e78

Please sign in to comment.