]> 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)
commitf19487b00d5dff3117b58099d79fecfb80e66202
tree6c5be3e9a955feee014abd62f7b0979fccc0db9e
parentc9b03c7a45e5521112c58e7ed3a9738dda54e6b2
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