]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Simplify fdb chain and prio eswitch defines
authorPaul Blakey <paulb@mellanox.com>
Mon, 11 Nov 2019 23:34:24 +0000 (00:34 +0100)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 13 Nov 2019 21:49:32 +0000 (13:49 -0800)
commit5c957408df8fa043962fa2b6d0ebcf409f49a213
treef3cfb5fc9941fac8ad201e2a534f97021eea7f48
parenteacbe4b906978fcd426085be46b0c85922c13f18
net/mlx5: Simplify fdb chain and prio eswitch defines

FDB_MAX_CHAIN and FDB_MAX_PRIO were defined differently depending
on if CONFIG_MLX5_ESWITCH is enabled to save space on allocations.

This is a minor space saving, and there is no real need for it.
Simplify things instead, and define them the same in both cases.

Signed-off-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h