diff options
author | Or Gerlitz | 2016-07-14 09:32:41 +0200 |
---|---|---|
committer | David S. Miller | 2016-07-14 22:34:28 +0200 |
commit | 3d80d1a2f59ab350f452e1dbc085ba68e5fd8169 (patch) | |
tree | 41b9c8b1d1f2c85c2c5e88930f03a971e5bd0603 /drivers/net/ethernet/mellanox/mlx5/core/eswitch.h | |
parent | net/mlx5: E-Switch, Use two priorities for SRIOV offloads mode (diff) | |
download | kernel-qcow2-linux-3d80d1a2f59ab350f452e1dbc085ba68e5fd8169.tar.gz kernel-qcow2-linux-3d80d1a2f59ab350f452e1dbc085ba68e5fd8169.tar.xz kernel-qcow2-linux-3d80d1a2f59ab350f452e1dbc085ba68e5fd8169.zip |
net/mlx5: E-Switch, Add API to configure rules for the offloaded mode
This allows for upper levels in the driver, e.g the TC offload code to add
e-switch offloaded steering rules. The caller provides the rule spec for
matching, action, source and destination vports.
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/eswitch.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/eswitch.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h index 035e536a9911..c0b05603fc31 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h @@ -222,6 +222,12 @@ int mlx5_eswitch_get_vport_stats(struct mlx5_eswitch *esw, int vport, struct ifla_vf_stats *vf_stats); +struct mlx5_flow_spec; + +struct mlx5_flow_rule * +mlx5_eswitch_add_offloaded_rule(struct mlx5_eswitch *esw, + struct mlx5_flow_spec *spec, + u32 action, u32 src_vport, u32 dst_vport); struct mlx5_flow_rule * mlx5_eswitch_create_vport_rx_rule(struct mlx5_eswitch *esw, int vport, u32 tirn); |