]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-Switch, Refactor chains and priorities
authorPaul Blakey <paulb@mellanox.com>
Wed, 8 Jan 2020 10:11:04 +0000 (12:11 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 16 Jan 2020 23:48:58 +0000 (15:48 -0800)
commit5c29d0c3d1d322cb684b95e6b86e150d3405262a
tree98859b6615e86d8d182d90e8f34c690161e4f2e3
parent3c3ed9cd00f3bfd21bd99e9f7e99faeed4e28067
net/mlx5: E-Switch, Refactor chains and priorities

To support the entire chain and prio range (32bit + 16bit),
instead of a using a static array of chains/prios of limited size, create
them dynamically, and use a rhashtable to search for existing chains/prio
combinations.

This will be used in next patch to actually increase the number using
unamanged tables support and ignore flow level capability.

Signed-off-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Oz Shlomo <ozsh@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/Makefile
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_chains.c [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_chains.h [new file with mode: 0644]