Skip to content

Commit

Permalink
net/mlx5e: Fix del vxlan port command buffer memset
Browse files Browse the repository at this point in the history
memset the command buffers rather than the pointers to them.

Fixes: b3f63c3 ("net/mlx5e: Add netdev support for VXLAN tunneling")
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Saeed Mahameed authored and David S. Miller committed Jul 20, 2016
1 parent edbe774 commit 882b0f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/mellanox/mlx5/core/vxlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ static int mlx5e_vxlan_core_del_port_cmd(struct mlx5_core_dev *mdev, u16 port)
u32 in[MLX5_ST_SZ_DW(delete_vxlan_udp_dport_in)];
u32 out[MLX5_ST_SZ_DW(delete_vxlan_udp_dport_out)];

memset(&in, 0, sizeof(in));
memset(&out, 0, sizeof(out));
memset(in, 0, sizeof(in));
memset(out, 0, sizeof(out));

MLX5_SET(delete_vxlan_udp_dport_in, in, opcode,
MLX5_CMD_OP_DELETE_VXLAN_UDP_DPORT);
Expand Down

0 comments on commit 882b0f2

Please sign in to comment.