]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blame - drivers/net/ethernet/mellanox/mlx5/core/en/fs_tt_redirect.h
net/mlx5e: Introduce Flow Steering ANY API
[mirror_ubuntu-jammy-kernel.git] / drivers / net / ethernet / mellanox / mlx5 / core / en / fs_tt_redirect.h
CommitLineData
1c80bd68
AL
1/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
2/* Copyright (c) 2021 Mellanox Technologies. */
3
4#ifndef __MLX5E_FS_TT_REDIRECT_H__
5#define __MLX5E_FS_TT_REDIRECT_H__
6
7#include "en.h"
8#include "en/fs.h"
9
10void mlx5e_fs_tt_redirect_del_rule(struct mlx5_flow_handle *rule);
11
12/* UDP traffic type redirect */
13struct mlx5_flow_handle *
14mlx5e_fs_tt_redirect_udp_add_rule(struct mlx5e_priv *priv,
15 enum mlx5e_traffic_types ttc_type,
16 u32 tir_num, u16 d_port);
17void mlx5e_fs_tt_redirect_udp_destroy(struct mlx5e_priv *priv);
18int mlx5e_fs_tt_redirect_udp_create(struct mlx5e_priv *priv);
0f575c20
AL
19
20/* ANY traffic type redirect*/
21struct mlx5_flow_handle *
22mlx5e_fs_tt_redirect_any_add_rule(struct mlx5e_priv *priv,
23 u32 tir_num, u16 ether_type);
24void mlx5e_fs_tt_redirect_any_destroy(struct mlx5e_priv *priv);
25int mlx5e_fs_tt_redirect_any_create(struct mlx5e_priv *priv);
1c80bd68 26#endif