diff options
author | Parav Pandit <parav@mellanox.com> | 2020-06-19 03:32:50 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-22 15:29:19 -0700 |
commit | fa997825ebeca820f4001a9e6d285345d3a535ba (patch) | |
tree | 3246fd1737cce269937fce04af3d88c8702e3475 /drivers/net/ethernet/mellanox/mlx5/core/vport.c | |
parent | net/devlink: Support setting hardware address of port function (diff) | |
download | wireguard-linux-fa997825ebeca820f4001a9e6d285345d3a535ba.tar.xz wireguard-linux-fa997825ebeca820f4001a9e6d285345d3a535ba.zip |
net/mlx5: Constify mac address pointer
Since none of the functions need to modify the input mac address,
constify them.
Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/vport.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/vport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/vport.c b/drivers/net/ethernet/mellanox/mlx5/core/vport.c index c107d92dc118..88cdb9bb4c4a 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/vport.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/vport.c @@ -173,7 +173,7 @@ int mlx5_query_mac_address(struct mlx5_core_dev *mdev, u8 *addr) EXPORT_SYMBOL_GPL(mlx5_query_mac_address); int mlx5_modify_nic_vport_mac_address(struct mlx5_core_dev *mdev, - u16 vport, u8 *addr) + u16 vport, const u8 *addr) { void *in; int inlen = MLX5_ST_SZ_BYTES(modify_nic_vport_context_in); |