mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-18 19:27:13 +00:00
net/mlx5e: Remove unused mlx5e_dcbnl_build_rep_netdev function
Commit 7a9fb35e8c3a ("net/mlx5e: Do not reload ethernet ports when changing eswitch mode") removed the usage of mlx5e_dcbnl_build_rep_netdev() from the driver, delete the function. Signed-off-by: Gal Pressman <gal@nvidia.com> Reviewed-by: Tariq Toukan <tariqt@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
This commit is contained in:
parent
84a137f051
commit
a90889b4e8
@ -40,13 +40,11 @@ struct mlx5e_dcbx_dp {
|
||||
};
|
||||
|
||||
void mlx5e_dcbnl_build_netdev(struct net_device *netdev);
|
||||
void mlx5e_dcbnl_build_rep_netdev(struct net_device *netdev);
|
||||
void mlx5e_dcbnl_initialize(struct mlx5e_priv *priv);
|
||||
void mlx5e_dcbnl_init_app(struct mlx5e_priv *priv);
|
||||
void mlx5e_dcbnl_delete_app(struct mlx5e_priv *priv);
|
||||
#else
|
||||
static inline void mlx5e_dcbnl_build_netdev(struct net_device *netdev) {}
|
||||
static inline void mlx5e_dcbnl_build_rep_netdev(struct net_device *netdev) {}
|
||||
static inline void mlx5e_dcbnl_initialize(struct mlx5e_priv *priv) {}
|
||||
static inline void mlx5e_dcbnl_init_app(struct mlx5e_priv *priv) {}
|
||||
static inline void mlx5e_dcbnl_delete_app(struct mlx5e_priv *priv) {}
|
||||
|
@ -1026,15 +1026,6 @@ void mlx5e_dcbnl_build_netdev(struct net_device *netdev)
|
||||
netdev->dcbnl_ops = &mlx5e_dcbnl_ops;
|
||||
}
|
||||
|
||||
void mlx5e_dcbnl_build_rep_netdev(struct net_device *netdev)
|
||||
{
|
||||
struct mlx5e_priv *priv = netdev_priv(netdev);
|
||||
struct mlx5_core_dev *mdev = priv->mdev;
|
||||
|
||||
if (MLX5_CAP_GEN(mdev, qos))
|
||||
netdev->dcbnl_ops = &mlx5e_dcbnl_ops;
|
||||
}
|
||||
|
||||
static void mlx5e_dcbnl_query_dcbx_mode(struct mlx5e_priv *priv,
|
||||
enum mlx5_dcbx_oper_mode *mode)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user