#include <mlx5_core.h>
#include "en_accel/fs_tcp.h"
#include "fs_core.h"
enum accel_fs_tcp_type { … };
struct mlx5e_accel_fs_tcp { … };
static enum mlx5_traffic_types fs_accel2tt(enum accel_fs_tcp_type i)
{ … }
static void accel_fs_tcp_set_ipv4_flow(struct mlx5_flow_spec *spec, struct sock *sk)
{ … }
#if IS_ENABLED(CONFIG_IPV6)
static void accel_fs_tcp_set_ipv6_flow(struct mlx5_flow_spec *spec, struct sock *sk)
{ … }
#endif
void mlx5e_accel_fs_del_sk(struct mlx5_flow_handle *rule)
{ … }
struct mlx5_flow_handle *mlx5e_accel_fs_add_sk(struct mlx5e_flow_steering *fs,
struct sock *sk, u32 tirn,
u32 flow_tag)
{ … }
static int accel_fs_tcp_add_default_rule(struct mlx5e_flow_steering *fs,
enum accel_fs_tcp_type type)
{ … }
#define MLX5E_ACCEL_FS_TCP_NUM_GROUPS …
#define MLX5E_ACCEL_FS_TCP_GROUP1_SIZE …
#define MLX5E_ACCEL_FS_TCP_GROUP2_SIZE …
#define MLX5E_ACCEL_FS_TCP_TABLE_SIZE …
static int accel_fs_tcp_create_groups(struct mlx5e_flow_table *ft,
enum accel_fs_tcp_type type)
{ … }
static int accel_fs_tcp_create_table(struct mlx5e_flow_steering *fs, enum accel_fs_tcp_type type)
{ … }
static int accel_fs_tcp_disable(struct mlx5e_flow_steering *fs)
{ … }
static int accel_fs_tcp_enable(struct mlx5e_flow_steering *fs)
{ … }
static void accel_fs_tcp_destroy_table(struct mlx5e_flow_steering *fs, int i)
{ … }
void mlx5e_accel_fs_tcp_destroy(struct mlx5e_flow_steering *fs)
{ … }
int mlx5e_accel_fs_tcp_create(struct mlx5e_flow_steering *fs)
{ … }