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 <[email protected]> Reviewed-by: Dragos Tatulea <[email protected]> Signed-off-by: Tariq Toukan <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent 08ae62e commit f95633a

File tree

1 file changed

+1
-0
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+1
-0
lines changed

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)