net/mlx5: Verify goto chain offload support
authorEli Cohen <eli@mellanox.com>
Tue, 18 Feb 2020 09:59:53 +0000 (11:59 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 9 Mar 2020 23:58:36 +0000 (16:58 -0700)
commit2fbbc30da05d9bd32d7fefeef445db3edd28d0bd
treea704951d002ee7447f639b691e2d9dd2e3cb2aa4
parent1e62e222db2e0dc7af0a89c225311d319c5d1c4f
net/mlx5: Verify goto chain offload support

According to PRM, forward to flow table along with either packet
reformat or decap is supported only if reformat_and_fwd_to_table
capability is set for the flow table.

Add dependency on the capability and pack all the conditions for "goto
chain" in a single function.

Fix language in error message in case of not supporting forward to a
lower numbered flow table.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c