]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix lowest FDB pool size
authorPaul Blakey <paulb@mellanox.com>
Tue, 31 Dec 2019 15:04:15 +0000 (17:04 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 24 Jan 2020 20:04:20 +0000 (12:04 -0800)
commit9c14a6ae6487c0205ddae733e7c5235fc21984e0
tree5439891c7db936874a34a6358bf898387e325515
parentca02990d7d3856b777f33fdf7d2e80426e9c74b8
net/mlx5: Fix lowest FDB pool size

The pool sizes represent the pool sizes in the fw. when we request
a pool size from fw, it will return the next possible group.
We track how many pools the fw has left and start requesting groups
from the big to the small.
When we start request 4k group, which doesn't exists in fw, fw
wants to allocate the next possible size, 64k, but will fail since
its exhausted. The correct smallest pool size in fw is 128 and not 4k.

Fixes: c25558d90640 ("net/mlx5: E-Switch, Add chains and priorities")
Signed-off-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c