diff options
author | Mark Bloch | 2018-10-03 00:57:24 +0200 |
---|---|---|
committer | Saeed Mahameed | 2018-10-17 23:15:48 +0200 |
commit | b8aee82250b7d90a32b11ba208656f52dbaca342 (patch) | |
tree | 90b757122f3e156fd4d98ecf7856a476722ff30c /drivers/net/ethernet/mellanox/mlx5/core/eswitch.h | |
parent | Merge branch 'mlx5-next' of git://git.kernel.org/pub/scm/linux/kernel/git/mel... (diff) | |
download | kernel-qcow2-linux-b8aee82250b7d90a32b11ba208656f52dbaca342.tar.gz kernel-qcow2-linux-b8aee82250b7d90a32b11ba208656f52dbaca342.tar.xz kernel-qcow2-linux-b8aee82250b7d90a32b11ba208656f52dbaca342.zip |
net/mlx5: E-Switch, Get counters for offloaded flows from callers
There's no real reason for the e-switch logic to manage the creation of
counters for offloaded flows. The API already has the directive for the
caller to denote they want to attach a counter to the created flow.
As such, we go and move the management of flow counters to the mlx5e
tc offload logic. This also lets us remove an inelegant interface where
the FS layer had to provide a way to retrieve a counter from a flow rule.
Signed-off-by: Mark Bloch <markb@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/eswitch.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/eswitch.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h index dfc642de4e6d..c1b627577003 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h @@ -266,6 +266,7 @@ struct mlx5_esw_flow_attr { u32 encap_id; u32 mod_hdr_id; u8 match_level; + struct mlx5_fc *counter; struct mlx5e_tc_flow_parse_attr *parse_attr; }; |