linux/drivers/infiniband/hw/mlx5/macsec.c

// SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
/* Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. */

#include "macsec.h"
#include <linux/mlx5/macsec.h>

struct mlx5_reserved_gids {};

struct mlx5_roce_gids {};

struct mlx5_macsec_device {};

static void cleanup_macsec_device(struct mlx5_macsec_device *macsec_device)
{}

static struct mlx5_macsec_device *get_macsec_device(void *macdev,
						    struct list_head *macsec_devices_list)
{}

static void mlx5_macsec_del_roce_gid(struct mlx5_macsec_device *macsec_device, u16 gid_idx)
{}

static void mlx5_macsec_save_roce_gid(struct mlx5_macsec_device *macsec_device,
				      const struct sockaddr *addr, u16 gid_idx)
{}

static void handle_macsec_gids(struct list_head *macsec_devices_list,
			       struct mlx5_macsec_event_data *data)
{}

static void del_sa_roce_rule(struct list_head *macsec_devices_list,
			     struct mlx5_macsec_event_data *data)
{}

static int macsec_event(struct notifier_block *nb, unsigned long event, void *data)
{}

void mlx5r_macsec_event_register(struct mlx5_ib_dev *dev)
{}

void mlx5r_macsec_event_unregister(struct mlx5_ib_dev *dev)
{}

int mlx5r_macsec_init_gids_and_devlist(struct mlx5_ib_dev *dev)
{}

void mlx5r_macsec_dealloc_gids(struct mlx5_ib_dev *dev)
{}

int mlx5r_add_gid_macsec_operations(const struct ib_gid_attr *attr)
{}

void mlx5r_del_gid_macsec_operations(const struct ib_gid_attr *attr)
{}