Skip to content

Commit 1afff42

Browse files
finlaymdavem330
authored andcommitted
net/mlx5e: Protect en header file from redefinitions
add ifndef to en.h. needed for upcoming vxlan patchset. Signed-off-by: Matthew Finlay <matt@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 5f6d12d commit 1afff42

File tree

1 file changed

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

1 file changed

+5
-1
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, Mellanox Technologies. All rights reserved.
2+
* Copyright (c) 2015-2016, Mellanox Technologies. All rights reserved.
33
*
44
* This software is available to you under a choice of one of two
55
* licenses. You may choose to be licensed under the terms of the GNU
@@ -29,6 +29,8 @@
2929
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3030
* SOFTWARE.
3131
*/
32+
#ifndef __MLX5_EN_H__
33+
#define __MLX5_EN_H__
3234

3335
#include <linux/if_vlan.h>
3436
#include <linux/etherdevice.h>
@@ -678,3 +680,5 @@ int mlx5e_dcbnl_ieee_setets_core(struct mlx5e_priv *priv, struct ieee_ets *ets);
678680
#endif
679681

680682
u16 mlx5e_get_max_inline_cap(struct mlx5_core_dev *mdev);
683+
684+
#endif /* __MLX5_EN_H__ */

0 commit comments

Comments
 (0)