net/mlx5e: Rename representor get devlink port function
Rename representor's mlx5e_get_devlink_port() to mlx5e_rep_get_devlink_port(). The downstream patch will add a non-representor mlx5e function called mlx5e_get_devlink_phy_port(). Signed-off-by: Vladyslav Tarasiuk <vladyslavt@mellanox.com> Reviewed-by: Moshe Shemesh <moshe@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
This commit is contained in:
parent
297eaf5b95
commit
ab8f963a11
|
@ -1422,7 +1422,7 @@ static int mlx5e_uplink_rep_set_vf_vlan(struct net_device *dev, int vf, u16 vlan
|
|||
return 0;
|
||||
}
|
||||
|
||||
static struct devlink_port *mlx5e_get_devlink_port(struct net_device *dev)
|
||||
static struct devlink_port *mlx5e_rep_get_devlink_port(struct net_device *dev)
|
||||
{
|
||||
struct mlx5e_priv *priv = netdev_priv(dev);
|
||||
struct mlx5e_rep_priv *rpriv = priv->ppriv;
|
||||
|
@ -1435,7 +1435,7 @@ static const struct net_device_ops mlx5e_netdev_ops_rep = {
|
|||
.ndo_stop = mlx5e_rep_close,
|
||||
.ndo_start_xmit = mlx5e_xmit,
|
||||
.ndo_setup_tc = mlx5e_rep_setup_tc,
|
||||
.ndo_get_devlink_port = mlx5e_get_devlink_port,
|
||||
.ndo_get_devlink_port = mlx5e_rep_get_devlink_port,
|
||||
.ndo_get_stats64 = mlx5e_rep_get_stats,
|
||||
.ndo_has_offload_stats = mlx5e_rep_has_offload_stats,
|
||||
.ndo_get_offload_stats = mlx5e_rep_get_offload_stats,
|
||||
|
@ -1448,7 +1448,7 @@ static const struct net_device_ops mlx5e_netdev_ops_uplink_rep = {
|
|||
.ndo_start_xmit = mlx5e_xmit,
|
||||
.ndo_set_mac_address = mlx5e_uplink_rep_set_mac,
|
||||
.ndo_setup_tc = mlx5e_rep_setup_tc,
|
||||
.ndo_get_devlink_port = mlx5e_get_devlink_port,
|
||||
.ndo_get_devlink_port = mlx5e_rep_get_devlink_port,
|
||||
.ndo_get_stats64 = mlx5e_get_stats,
|
||||
.ndo_has_offload_stats = mlx5e_rep_has_offload_stats,
|
||||
.ndo_get_offload_stats = mlx5e_rep_get_offload_stats,
|
||||
|
|
Loading…
Reference in New Issue