Skip to content

Commit f95633a

Browse files
mark-blochPaolo Abeni
authored andcommitted
net/mlx5e: Allow setting MAC address of representors
A representor netdev does not correspond to real hardware that needs to be updated when setting the MAC address. The default eth_mac_addr() is sufficient for simply updating the netdev's MAC address with validation. Signed-off-by: Mark Bloch <mbloch@nvidia.com> Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com> Signed-off-by: Tariq Toukan <tariqt@nvidia.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/1747898036-1121904-1-git-send-email-tariqt@nvidia.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
1 parent 08ae62e commit f95633a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • drivers/net/ethernet/mellanox/mlx5/core

drivers/net/ethernet/mellanox/mlx5/core/en_rep.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -804,6 +804,7 @@ static const struct net_device_ops mlx5e_netdev_ops_rep = {
804804
.ndo_stop = mlx5e_rep_close,
805805
.ndo_start_xmit = mlx5e_xmit,
806806
.ndo_setup_tc = mlx5e_rep_setup_tc,
807+
.ndo_set_mac_address = eth_mac_addr,
807808
.ndo_get_stats64 = mlx5e_rep_get_stats,
808809
.ndo_has_offload_stats = mlx5e_rep_has_offload_stats,
809810
.ndo_get_offload_stats = mlx5e_rep_get_offload_stats,

0 commit comments

Comments
 (0)