linux/drivers/net/netdevsim/ipsec.c

// SPDX-License-Identifier: GPL-2.0
/* Copyright(c) 2018 Oracle and/or its affiliates. All rights reserved. */

#include <crypto/aead.h>
#include <linux/debugfs.h>
#include <net/xfrm.h>

#include "netdevsim.h"

#define NSIM_IPSEC_AUTH_BITS

static ssize_t nsim_dbg_netdev_ops_read(struct file *filp,
					char __user *buffer,
					size_t count, loff_t *ppos)
{}

static const struct file_operations ipsec_dbg_fops =;

static int nsim_ipsec_find_empty_idx(struct nsim_ipsec *ipsec)
{}

static int nsim_ipsec_parse_proto_keys(struct xfrm_state *xs,
				       u32 *mykey, u32 *mysalt)
{}

static int nsim_ipsec_add_sa(struct xfrm_state *xs,
			     struct netlink_ext_ack *extack)
{}

static void nsim_ipsec_del_sa(struct xfrm_state *xs)
{}

static bool nsim_ipsec_offload_ok(struct sk_buff *skb, struct xfrm_state *xs)
{}

static const struct xfrmdev_ops nsim_xfrmdev_ops =;

bool nsim_ipsec_tx(struct netdevsim *ns, struct sk_buff *skb)
{}

void nsim_ipsec_init(struct netdevsim *ns)
{}

void nsim_ipsec_teardown(struct netdevsim *ns)
{}