]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net/mlx5: E-Switch, Get counters for offloaded flows from callers
authorMark Bloch <markb@mellanox.com>
Tue, 2 Oct 2018 22:57:24 +0000 (22:57 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 17 Oct 2018 21:15:48 +0000 (14:15 -0700)
commitb8aee82250b7d90a32b11ba208656f52dbaca342
tree90b757122f3e156fd4d98ecf7856a476722ff30c
parent186daf0c20507072e72a3c74db4ac50a5b6dae07
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>
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/fs_core.c
include/linux/mlx5/fs.h