linux/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib_vlan.c

/*
 * Copyright (c) 2017, Mellanox Technologies. All rights reserved.
 *
 * This software is available to you under a choice of one of two
 * licenses.  You may choose to be licensed under the terms of the GNU
 * General Public License (GPL) Version 2, available from the file
 * COPYING in the main directory of this source tree, or the
 * OpenIB.org BSD license below:
 *
 *     Redistribution and use in source and binary forms, with or
 *     without modification, are permitted provided that the following
 *     conditions are met:
 *
 *      - Redistributions of source code must retain the above
 *        copyright notice, this list of conditions and the following
 *        disclaimer.
 *
 *      - Redistributions in binary form must reproduce the above
 *        copyright notice, this list of conditions and the following
 *        disclaimer in the documentation and/or other materials
 *        provided with the distribution.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

#include <linux/hash.h>
#include "ipoib.h"

#define MLX5I_MAX_LOG_PKEY_SUP

struct qpn_to_netdev {};

struct mlx5i_pkey_qpn_ht {};

int mlx5i_pkey_qpn_ht_init(struct net_device *netdev)
{}

void mlx5i_pkey_qpn_ht_cleanup(struct net_device *netdev)
{}

static struct qpn_to_netdev *mlx5i_find_qpn_to_netdev_node(struct hlist_head *buckets,
							   u32 qpn)
{}

int mlx5i_pkey_add_qpn(struct net_device *netdev, u32 qpn)
{}

int mlx5i_pkey_del_qpn(struct net_device *netdev, u32 qpn)
{}

struct net_device *mlx5i_pkey_get_netdev(struct net_device *netdev, u32 qpn)
{}

static int mlx5i_pkey_open(struct net_device *netdev);
static int mlx5i_pkey_close(struct net_device *netdev);
static int mlx5i_pkey_dev_init(struct net_device *dev);
static void mlx5i_pkey_dev_cleanup(struct net_device *netdev);
static int mlx5i_pkey_change_mtu(struct net_device *netdev, int new_mtu);
static int mlx5i_pkey_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd);

static const struct net_device_ops mlx5i_pkey_netdev_ops =;

/* Child NDOs */
static int mlx5i_pkey_dev_init(struct net_device *dev)
{}

static int mlx5i_pkey_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
{}

static void mlx5i_pkey_dev_cleanup(struct net_device *netdev)
{}

static int mlx5i_pkey_open(struct net_device *netdev)
{}

static int mlx5i_pkey_close(struct net_device *netdev)
{}

static int mlx5i_pkey_change_mtu(struct net_device *netdev, int new_mtu)
{}

/* Called directly after IPoIB netdevice was created to initialize SW structs */
static int mlx5i_pkey_init(struct mlx5_core_dev *mdev,
			   struct net_device *netdev)
{}

/* Called directly before IPoIB netdevice is destroyed to cleanup SW structs */
static void mlx5i_pkey_cleanup(struct mlx5e_priv *priv)
{}

static int mlx5i_pkey_init_tx(struct mlx5e_priv *priv)
{}

static void mlx5i_pkey_cleanup_tx(struct mlx5e_priv *priv)
{}

static int mlx5i_pkey_init_rx(struct mlx5e_priv *priv)
{}

static void mlx5i_pkey_cleanup_rx(struct mlx5e_priv *priv)
{}

static const struct mlx5e_profile mlx5i_pkey_nic_profile =;

const struct mlx5e_profile *mlx5i_pkey_get_profile(void)
{}