linux/drivers/net/ethernet/mellanox/mlx5/core/en/devlink.h
<<
>>
Prefs
   1/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
   2/* Copyright (c) 2020, Mellanox Technologies inc.  All rights reserved. */
   3
   4#ifndef __MLX5E_EN_DEVLINK_H
   5#define __MLX5E_EN_DEVLINK_H
   6
   7#include <net/devlink.h>
   8#include "en.h"
   9
  10int mlx5e_devlink_port_register(struct mlx5e_priv *priv);
  11void mlx5e_devlink_port_unregister(struct mlx5e_priv *priv);
  12void mlx5e_devlink_port_type_eth_set(struct mlx5e_priv *priv);
  13struct devlink_port *mlx5e_get_devlink_port(struct net_device *dev);
  14
  15static inline struct devlink_port *
  16mlx5e_devlink_get_dl_port(struct mlx5e_priv *priv)
  17{
  18        return &priv->mdev->mlx5e_res.dl_port;
  19}
  20
  21#endif
  22