linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls.c

// SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
// Copyright (c) 2019 Mellanox Technologies.

#include <linux/debugfs.h>
#include "en.h"
#include "lib/mlx5.h"
#include "lib/crypto.h"
#include "en_accel/ktls.h"
#include "en_accel/ktls_utils.h"
#include "en_accel/fs_tcp.h"

struct mlx5_crypto_dek *mlx5_ktls_create_key(struct mlx5_crypto_dek_pool *dek_pool,
					     struct tls_crypto_info *crypto_info)
{}

void mlx5_ktls_destroy_key(struct mlx5_crypto_dek_pool *dek_pool,
			   struct mlx5_crypto_dek *dek)
{}

static int mlx5e_ktls_add(struct net_device *netdev, struct sock *sk,
			  enum tls_offload_ctx_dir direction,
			  struct tls_crypto_info *crypto_info,
			  u32 start_offload_tcp_sn)
{}

static void mlx5e_ktls_del(struct net_device *netdev,
			   struct tls_context *tls_ctx,
			   enum tls_offload_ctx_dir direction)
{}

static int mlx5e_ktls_resync(struct net_device *netdev,
			     struct sock *sk, u32 seq, u8 *rcd_sn,
			     enum tls_offload_ctx_dir direction)
{}

static const struct tlsdev_ops mlx5e_ktls_ops =;

bool mlx5e_is_ktls_rx(struct mlx5_core_dev *mdev)
{}

void mlx5e_ktls_build_netdev(struct mlx5e_priv *priv)
{}

int mlx5e_ktls_set_feature_rx(struct net_device *netdev, bool enable)
{}

int mlx5e_ktls_init_rx(struct mlx5e_priv *priv)
{}

void mlx5e_ktls_cleanup_rx(struct mlx5e_priv *priv)
{}

static void mlx5e_tls_debugfs_init(struct mlx5e_tls *tls,
				   struct dentry *dfs_root)
{}

int mlx5e_ktls_init(struct mlx5e_priv *priv)
{}

void mlx5e_ktls_cleanup(struct mlx5e_priv *priv)
{}