Home
last modified time | relevance | path

Searched hist:"0 c9d8765" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dlegacy.c0c9d8765 Wed Jun 22 05:11:18 CDT 2022 Paul Blakey <paulb@nvidia.com> net/mlx5e: Fix enabling sriov while tc nic rules are offloaded

There is a total of four 4M entries flow tables. In sriov disabled
mode, ct, ct_nat and post_act take three of them. When adding the
first tc nic rule in this mode, it will take another 4M table
for the tc <chain,prio> table. If user then enables sriov, the legacy
flow table tries to take another 4M and fails, and so enablement fails.

To fix that, have legacy fdb take the next available maximum
size from the fs ft pool.

Fixes: 4a98544d1827 ("net/mlx5: Move chains ft pool to be used by all firmware steering")
Signed-off-by: Paul Blakey <paulb@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>