]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: ft: Use getter function to get ft chain
authorPaul Blakey <paulb@mellanox.com>
Tue, 26 Nov 2019 12:13:42 +0000 (14:13 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 16 Jan 2020 23:48:58 +0000 (15:48 -0800)
commit775a3b12b9813101807a4c28aefd5d195d70ea9a
tree6c5be3e9a955feee014abd62f7b0979fccc0db9e
parent76db88ee6c0cf25b32b631d14e8a376804382b68
net/mlx5: ft: Use getter function to get ft chain

FT chain is defined as the next chain after tc.

To prepare for next patches that will increase the number of tc
chains available at runtime, use a getter function to get this
value.

The define is still used in static fs_core allocation,
to calculate the number of chains. This static allocation
will be used if the relevant capabilities won't be available
to support dynamic chains.

Signed-off-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c