File Index
Files and directories
Sign in
FILE

fs_tcp.h

File preview with syntax highlighting.

linux-6.19.14/drivers/net/ethernet/mellanox/mlx5/core/en_accel/fs_tcp.h C
 1/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
 2/* Copyright (c) 2020, Mellanox Technologies inc. All rights reserved. */
 3
 4#ifndef __MLX5E_ACCEL_FS_TCP_H__
 5#define __MLX5E_ACCEL_FS_TCP_H__
 6
 7#include "en/fs.h"
 8
 9#ifdef CONFIG_MLX5_EN_TLS
10int mlx5e_accel_fs_tcp_create(struct mlx5e_flow_steering *fs);
11void mlx5e_accel_fs_tcp_destroy(struct mlx5e_flow_steering *fs);
12struct mlx5_flow_handle *mlx5e_accel_fs_add_sk(struct mlx5e_flow_steering *fs,
13					       struct sock *sk, u32 tirn,
14					       u32 flow_tag);
15void mlx5e_accel_fs_del_sk(struct mlx5_flow_handle *rule);
16#else
17static inline int mlx5e_accel_fs_tcp_create(struct mlx5e_flow_steering *fs) { return 0; }
18static inline void mlx5e_accel_fs_tcp_destroy(struct mlx5e_flow_steering *fs) {}
19static inline struct mlx5_flow_handle *mlx5e_accel_fs_add_sk(struct mlx5e_flow_steering *fs,
20							     struct sock *sk, u32 tirn,
21							     u32 flow_tag)
22{ return ERR_PTR(-EOPNOTSUPP); }
23static inline void mlx5e_accel_fs_del_sk(struct mlx5_flow_handle *rule) {}
24#endif
25
26#endif /* __MLX5E_ACCEL_FS_TCP_H__ */
27
~/ Read-only file preview.